I'm migrating an application from leaflet to esri and there's a function L.layerPointToLatLng that returns a geographical coordinate. I was wondering what's Esri equivalent? I tried using toMap from MapView and it doesn't return anywhere close to the same results.
Solved! Go to Solution.
The value returned from toMap will be a point class with coordinates of the map (normally wkid 102100 web mercator) not wgs84. You can use the point class getLatitude and getLongitude methods to get what you are looking for.
Thanks for your prompt response Robert. Sounds like that would work but it looks like the getLatitude and getLongitude methods are only in version 3 of the API. I couldn't find those methods in the version 4 point class.