Hello, is there a function in the JS API that convert a certain extent object to the lat, lng, zoom,I found the center which contains the lat & lng,I am searching for somehow convert the "width" & "height" to "zoom" value.
Kind Regards
Khaled
Is this so you can zoom the map to a particular extent? If so, MapView.goTo() works with the Extent object.
Zoom to extent of all features | ArcGIS API for JavaScript
When you say object extent, what are you referring to exactly? Found this codepen Watching map view extents where you can add an output for view.zoom, change the initial extent to your values and then maybe get the zoom. ... But the Zoom levels (LOD) are predetermined by the map service, so that could be interesting.
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.