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
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,