View: Max/Min Coordinates

745
1
04-02-2019 04:16 PM
AndyHinkle
New Contributor

Hello,

I'm trying to access the min/max Lat/Lon Coordinates of the MapView to use in a separate database.

The mapview has a center which is accessed by using `view.extent.center` but there doesn't seem to be coordinates for the entire mapview. I need to know the min/max lat/lon for the mapview of where it's zoomed in at. There is a extent xmax/xmin, ymax/xmin but i'm unable to convert those over to Lat/Lon GPS Coordinates for the 4 points. 

Does anyone have an example for this?

Thanks!

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Andy,

   You can use WebMercatorUtils to convert the extents min and max values to X and Y to lat lon.

0 Kudos