how to locate using input coordinate latitude langitude

1454
1
12-06-2016 07:21 PM
nanasyazana
New Contributor

hi, how to code the locate function using input coordinate using openstreetmap. Example in the web is for google map. i want the same function but execute openstreetmap in arcgis.

Example for google map as below:

Google Maps - GPS coordinates, latitude and longitude 

thanks,

Regards,

Nana

Tags (1)
0 Kudos
1 Reply
FC_Basson
MVP Regular Contributor

The deafult projection for most Web base maps like OSM is Web Mercator, which is completely different from LatLon geographic coordinate system (GCS).  Have a look at  esri/geometry/webMercatorUtils | API Reference | ArcGIS API for JavaScript 3.18 for converting between geographic and Web Mercator coordinates,