Not getting Latitude and Longitude for view map event click using Wkid 3414

175
1
05-25-2023 01:31 AM
LayEngTan
New Contributor

I am unable to get the value of latitude and longitude for view map event when spatial reference is using 3414. May I know what is the cause? It has value when spatial reference is in wkid 3857.

Wkid_3414.PNG

0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

You can use the projection engine to convert the geometries.

https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project

https://developers.arcgis.com/javascript/latest/sample-code/client-projection/

The only time you will automatically get the lat/long is when the spatial reference is web mercator.

0 Kudos