Polygon getExtent() Returns what Units?

2034
1
Jump to solution
05-20-2016 09:30 AM
LauraMiles1
Occasional Contributor III


Hi, using polygon's getExtent() method, I'm getting xmin/ymin etc with coordinates I'm unable to identify. I'm working in the area of -123, 49.2, all my features are within a 100km radius of that point, but getting xmin, ymin, xmax, ymax looking like: -13703852.48, 6323231.08, -13703717.43, 6323601.12. Trying to print the spatialReference to the console just gives me [object Object] in both Chrome and IE. Can I convert these to my map units?

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Laura,

  If you are using an esri basemap then the maps units are in meters and the maps spatial reference is Web Mercator WKID:102100 / 3857.

If you need to convert the extent to Geographic then you need to use webMercatorUtils to do so.

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Emeritus

Laura,

  If you are using an esri basemap then the maps units are in meters and the maps spatial reference is Web Mercator WKID:102100 / 3857.

If you need to convert the extent to Geographic then you need to use webMercatorUtils to do so.