[mapguide-users] Map Extents

Alain Lebatard alain.lebatard at autodesk.com
Thu Jun 8 13:30:46 EDT 2006


Unfortunately GetMapWidth() and GetMapHeight() return the full extent of
the map, not the current view extent.

We need to add an API for that, as you suggested.

Juan, does your application need to run with both viewers? For the AJAX
viewer you can grab the variables extX1, extY1, extX2 and extY2 (in
mapFrame) which represent the coordinates of the current view. For the
DWF viewer there is an API to get the bounds of the current view.

Alain

-----Original Message-----
From: Andy Morsell [mailto:amorsell at spatialgis.com] 
Sent: Thursday, June 08, 2006 10:20 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Map Extents

Using the viewer API, could you use a combination of GetCenter() and
GetMapWidth() and GetMapHeight() and then calculate it?  It would be
nice if
there was a GetMapBounds() or something that returned an array of the 4
corner coordinates. 


Andy 

-----Original Message-----
From: Juan Butler [mailto:jpbutler at pinellascounty.org] 
Sent: Thursday, June 08, 2006 9:49 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Map Extents


Sorry if this is a repost, but I didn't see it appear in the list.  
Something is going on with my email system here at work.

 Has anyone been able to grab the CURRENT map extent of the map window?

I've tried multiple ways, but it comes back with the full extent of the
map
each time and not getting the current coordinates.   Any help is
appreciated.

- Juan

--
View this message in context:
http://www.nabble.com/Map-Extents-t1756260.html#a4776283
Sent from the OSGeo MapGuide forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide-users mailing list