[mapguide-users] Select specific layer and feature by passing value to flexible layout (AIMS2014)

GordonL gordon.luckett at arrowgeomatics.com
Sun Jun 2 09:24:36 PDT 2013


Hi all,
I just use an onload function in Javascript and pass the MAPNAME, SESSION,
LAYER, KEYNAME and KEY to a PHP page to get the selected XML, and then I
just run a setselectionxml function in fusion, which will automatically zoom
in.  
(Not for points - the Fusion API changed for points in the setselectionXML
and ignores the extents if it's a point)


The trick its to wait to call the function until the map is loaded. 

I just set a timeout and check if:

var mapWidget = Fusion.getWidgetById('Map'); 
	if (mapWidget && mapWidget.isMapLoaded()) 
	

regards
gordon




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Select-specific-layer-and-feature-by-passing-value-to-flexible-layout-AIMS2014-tp5055669p5057358.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list