3

I am pulling a JSON list of features into a web page. The points come as esriMeters and the rest of my app uses Lat/Lng. How can I do this conversion in the browser (javascript)?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Joe Beuckman
  • 133
  • 7

2 Answers2

3

If you're executing a query against an ArcGIS service, just set the output spatial reference to the geographic coordinate system of your choice (e.g. 4326 for WGS84). This will give you lat / long.

Craig Williams
  • 2,258
  • 15
  • 14
1

Try the proj4js library (JavaScript port of the PROJ.4 C library).

blah238
  • 35,793
  • 7
  • 94
  • 195