[mapguide-users] ZoomToView

GordonL gordon.luckett at arrowgeomatics.com
Mon Sep 10 20:29:20 PDT 2012


Since you are using the AJAX version its a little harder to zoom in on load
since there is not a URL Parameter like the Fusion site (extent=)

So you will have to do a little work:
1. First catch the X and Y you are passing for example X=-115.443&Y=45.8789



2. Then set up EVENT HOOKING to call your zoomtoview when
OnMapInitialized()(http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking)

The zoom to view can be called once the map is finished loading...

gordon






--
View this message in context: http://osgeo-org.1560.n6.nabble.com/ZoomToView-tp4999411p5000965.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list