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
Solved! Go to Solution.
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
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.