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.
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.
Functionality matrix | ArcGIS API for JavaScript 4.3
Thanks for the solution, it worked like a charm!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.