can i get the map width at a particular scale without actually zooming the map to that scale

1287
3
Jump to solution
03-15-2017 05:09 AM
DeepikaJain1
New Contributor

Hi

I am using ArcGIS JavaScript API 4.2 and need to get the width of the map at multiple scales on load without actually zoomin the map to that scale.

0 Kudos
1 Solution

Accepted Solutions
thejuskambi
Occasional Contributor III

If you are using, cached map service. Then you could use the LOD.resolution to calculate the width of the map. Just multiple it with the pixel width of the map and you will get the map extent width.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Deepika,

  Unfortunately scaleUtils is marked as Coming Soon.

Functionality matrix | ArcGIS API for JavaScript 4.3 

thejuskambi
Occasional Contributor III

If you are using, cached map service. Then you could use the LOD.resolution to calculate the width of the map. Just multiple it with the pixel width of the map and you will get the map extent width.

DeepikaJain1
New Contributor

Thanks for the solution, it worked like a charm!

0 Kudos