dugtoni

Reading coordinates off of extent

Discussion created by dugtoni on Jan 11, 2013
Latest reply on Jan 14, 2013 by dugtoni
I am creating a web page where I draw a rectangle on a map, and I then would like to be able to read the min and max x and y coordinates off of that rectangle.  I drew the rectangle with the esri.toolbars.Draw.EXTENT function.  Then I was thinking that I needed to convert from web mercator to geographic.  I had to do this to read the coordinates of a point that I created using the esri.geometry.webMercatorToGeographic(evt.mapPoint) command.  That command does not seem to work when I try to feed it the rectangle I draw.  Does anyone know how I convert the rectangle to a geographic coordinate system and then read the min and max x and y coordinates off of that rectangle?  Any help would be greatly appreciated!  Thanks!!

Outcomes