Select to view content in your preferred language

Calculate resolution based on map extent

1213
2
07-23-2013 03:05 AM
prashantk
Occasional Contributor
Hi all,

I want to set MinimumResolution for graphics layer.

I am trying to calculate the resolution value from map extent so user can zoom to particular location and set the value for graphics layer.

Any help would be appreciated.

Regards,
Prashant
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
The resolution is the size of one pixel in map coordinates.
so something like: var res = extent.Width/MyMap.Width;

The current map resoluton is also exposed as MyMap.Resolution.
0 Kudos
prashantk
Occasional Contributor
Hi,

Thanks for your quick reply.It works for me.For different zoom level i am getting resolution value.Now i can easliy set this value to minimum / maximum resolution for graphics layer to set visibility.

Thanks once again,
Prashant
0 Kudos