AnsweredAssumed Answered

convert x y to lat long

Question asked by rdevita on May 29, 2013
Latest reply on May 31, 2013 by jacobsj
I have a map with multiple layers.  I got this from an example.

streetMap =    new esri.layers.ArcGISTiledMapServiceLayer("", {id:"streetMap"});


The layers display and I can switch between layers.  all is fine.

I can draw on the map.  I want to save to points of the polygon.  However the points I get from the geometry object are x y not
latitude and longitude.

dojo.connect(tb, "onDrawEnd", addGraphic);

function addGraphic(geometry) {

  var pts = geometry.rings; 

pts is a array of x and y coords.

How do i get the graphics object to return Latitude and longitude ?  Or how do I convert x y to latitude and logitude ?

Thank you