I can't seem to find the method for returning the zoom level or center in lat/lng for a user's map.
To clarify goTo() does the reverse of what i want.
Any help?
Thanks
Nataniel,
You get the views properties for center and zoom. The point class that is returned from view center has properties of Latitude and Longitude if the view is in web mercator or WGS 84.
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#center
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom
Awesome, thanks Robert. The properties, so simple.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.