[mapguide-users] Zoom to Extents

David Hequet david.hequet at free.fr
Thu May 31 06:17:42 EDT 2007


I'm trying do the same thing with the DWF viewer.

If you are using the ajax viewer, look at the "ZoomSelection()" in
"ajaxmappane.templ" file. This method ask the mapagent for the selecion
extents, calculate the scale, then use ZoomToView().
But with the DWF viewer, i found no tricks to reproduce the calculteScale()
method.



Nichols, Mark A. wrote:
> 
> I see documentation on zooming to an x,y point at a particular scale.
> What I have is the extents already calculated and I'd like to zoom to
> that particular extent.  I use postgis to get the extents of an object.
> Results look like
> county_geometry_extents=631637.01873067,287635.157843,687024.28129651,33
> 7031.91208509.
> 
> Can I zoom not to a point, but instead to a set of points that make up
> the extents.
> 
> 
> Mark Nichols
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Zoom-to-Extents-tf3447457s16610.html#a10891104
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list