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.
Solved! Go to Solution.
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.
Deepika,
Unfortunately scaleUtils is marked as Coming Soon.
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.
Thanks for the solution, it worked like a charm!