AnsweredAssumed Answered

Get Geographic Coordinates From Polygon Rings

Question asked by messaddek on Nov 18, 2018
Latest reply on Nov 18, 2018 by rscheitlin

Hi All,

I would like to get geographic coordinates from a drawn polygon using the SketchViiewModel. But actually the api gets only ring.

switch (sketchViewModel.graphic.symbol.type)
{
case "symple-marker": {
$("#Longitude").val(event.geometry.longitude);
$("#Latitude").val(event.geometry.latitude);
break;
}
case "polygon": {

event.geometry.rings; // ??

break;
}
}

Is there anyway to do it?

Regards.

Outcomes