AnsweredAssumed Answered

How to Make Point Graphic Added to Map Ediotable

Question asked by behClevest on Jan 17, 2017
Latest reply on Jan 17, 2017 by cgishack

Using ArcGIS JavaScript 3.19 I am trying to create my own tool instead of using ArcGIS Toolbar. I am able to add some graphics (point) on the map using this code

var schoolMarker = new SimpleMarkerSymbol();
schoolMarker.setStyle(SimpleMarkerSymbol.STYLE_CIRCLE);
schoolMarker.setSize(8);
schoolMarker.setOutline(null);
schoolMarker.setColor(new Color([156, 255, 0, 1]));

var schoolGraphicLayer = new GraphicsLayer();
schoolGraphicLayer.id = 'SchoolGLayer';

map.addLayer(schoolGraphicLayer);

map.on("click", addGraphic);
function addGraphic(evt) {
    var schoolMarker = new SimpleMarkerSymbol();
    var graphic = new Graphic(evt.mapPoint, schoolMarker);
    schoolGraphicLayer.add(graphic)
}

now what I need is to  Make the Points Editable(Moveable)  Can you please let me know how to fix this? Thanks

Outcomes