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?
Solved! Go to Solution.
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.
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.