ijnuhb

Convert coordinates

Discussion created by ijnuhb on Dec 14, 2011
Latest reply on Dec 15, 2011 by DSwingley-esristaff
Hi there,
i'm kinda new to this and i'm trying to get the "Current Location with temporal renderer" sample for mobiles to work with a custom map. The map i'm using has a different spatial reference. So when the position is displayed, it is way off.

As far as i can tell, the coordinates in the sample are converted from WGS84 (format in the Geolocation API) to Web Mercator. Is there any way to convert them to the spatial reference my map is using?

Here's the sample i used (i just changed the map URL in the code):

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/mobile_geolocaterenderer.html

Outcomes