I am using ArcGIS maps and trying to follow JS API. I am trying to understand how can I add a protractor on the map which will help in angles while drawing polygons. I understand I could add a Feature layer but how do I add an image to it? How can I make the protractor movable, without it being scale up/down with the map?
Achieved it by adding a pictureMarker of protractor PNG image.
protactorLayer = new esri.layers.GraphicsLayer(); map.addLayer(this.protractorLayer); protractorGraphic = protactorLayer.add(new esri.Graphic(geometry, new esri.symbol.PictureMarkerSymbol('images/protractor.png', 250, 250)));