I am trying to get polygon points as Lat and Long coordinates, but cannot find doco that explains how.
this is how far i got to:
var polygonGeo = graphicGeometry as Polygon;
console.log(polygonGeo.rings.toString());
for (var i = 0; i < polygonGeo.rings.length; i++) {
for (var p = 0; p < polygonGeo.rings[i].length; p++) {
var LatLon = String(polygonGeo.rings[i][p]);
console.log(LatLon);
}
}
All this does it outputs it as:
16816274.629485022,-4041754.114785292,16822695.33986097,-4041754.114785292,16822695.33986097,-4045050.461630086,16816274.629485022,-4045050.461630086
How can i get to convert it to Lat and Long?