When I instantiate an extent, I provide the min/max coordinates to the Extent constructor as such
{xMin: -104.6279632, xMax: -103.2536728, yMin: 32.1424875714, yMax: 32.96790257160003}
However when I view the Extent obj instance, the min/max values are now magnitudes larger than the values I've passed:
How does the input min/max coordinates related to the min/max coordinates on the Extent instance?
I'm trying to cache the Extent after view becomes stationary. As such, I'm caching the larger min/max pairs from the extent object. This value can not be subsequently used to re-instantiate an Extent via the constructor method.
Is there some translation algorithm to map between the input min/max and the instantiated min/max? Thanks
Solved! Go to Solution.
Yang,
The difference between the values is WGS84 (what you are using) and Web Mercator (which is being returned from the extent). Your map is in Web Mercator so the WGS84 value you are providing are being projected to Web Mercator.
Yang,
The difference between the values is WGS84 (what you are using) and Web Mercator (which is being returned from the extent). Your map is in Web Mercator so the WGS84 value you are providing are being projected to Web Mercator.