[Mapserver-users] how to get extents after using zoomscale()
Daniel Morissette
morissette@dmsolutions.ca
Mon, 15 Dec 2003 09:38:14 -0500
Stephen Clark wrote:
> // get the extent after the zoom operation
>
> $my_RectObj_after_zoom = ms_newRectObj();
> $my_RectObj_after_zoom = $map->extent;
>
> // print out the map extent now
> print " the map extent after zoom is [0] : $my_RectObj_after_zoom[0]
> <br>";
> print " the map extent after zoom is [1] : $my_RectObj_after_zoom[1] <br>";
> print " the map extent after zoom is [2] : $my_RectObj_after_zoom[2] <br>";
> print " the map extent after zoom is [3] : $my_RectObj_after_zoom[3] <br>";
>
>
The rectObj is not an array: it's an object with 4 member variables:
Try using instead:
$my_RectObj_after_zoom->minx
$my_RectObj_after_zoom->miny
$my_RectObj_after_zoom->maxx
$my_RectObj_after_zoom->maxy
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette@dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users