[mapguide-users] Steps to query and zoom Mapguide layer on Fusion?

marcebil marcebil at gmail.com
Fri Aug 30 08:43:48 PDT 2013


I am using MapGuide OS 2.4
>From the task Pane, i am doing as you recomend:

         var mapWidget = parent.Fusion.getWidgetById('Map');
         var mapOL = mapWidget.oMapOL;
         var mgLayers = mapOL.getLayersByClass('OpenLayers.Layer.MapGuide');
         var mapguideLayer = mgLayers[0]

Everything ok till here, but when i do
     mapguideLayer.clearSelection(); 

it says thah object does not recognize function "clearSelection"
I try replacing first line with:
	        var mapWidget = window.top.Fusion.getWidgetById('Map');  
with same result.

BUt, i can call "clearSelection()" directly from mapWidget, as in
        mapWidget.clearSelection()

But another functions I want to call, as simple as "getSessionId()" i can
not found it in either variable.
So. i must be doing something very wrong, but cant figure out what is it.











--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Steps-to-query-and-zoom-Mapguide-layer-on-Fusion-tp4188529p5075253.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list