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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users