[mapguide-users] How to zoom to coordinates

Andy Morsell amorsell at spatialgis.com
Mon Aug 11 12:21:38 EDT 2008


How about creating a selection of the objects and then use
ExecuteMapAction(10) instead?  This will zoom to the selection.

Andy Morsell, P.E.
Spatial Integrators, Inc.
www.SpatialGIS.com


-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Dragan
Podvezanec
Sent: Monday, August 11, 2008 1:09 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] How to zoom to coordinates


Hi all. I have custom query which returns different objects from different
layers. I know boundary coordinates of this objects (minx,miny,maxx,maxy),
but I don't see any function to zoom to this known extents. Can this be done
and is there any example?

What I'm trying to do now is to calculate diagonal and center (x,y) from
this extents, and then to calculate zoom scale which would be passed to
ZoomToView(x,y,scale) , but this seems too complicated. 
-- 
View this message in context:
http://www.nabble.com/How-to-zoom-to-coordinates-tp18921246p18921246.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




More information about the mapguide-users mailing list