rdevita

Saving points while drawing a polygon

Discussion created by rdevita on Apr 23, 2013
Latest reply on Apr 24, 2013 by jskinner-esristaff
I downloaded the sample cod: Add graphics to a map
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/graphics_add.html

I want to save the points (lat and lon)  of a polygon as its being drawn or at "ondrawend"   and get a list of all the points.
Not a free style line drawing,  just a straight line polygon.

In the function addGraphic (geometry)   is there   a way to do this

var points[] =  geometry.getPoints();


I need to save the points to a jsonstore.

Thank You

Outcomes