Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

enter image description hereAchieved it by adding a pictureMarker of protractor PNG image.

protactorLayer = new esri.layers.GraphicsLayer();
protractorGraphic = protactorLayer.add(new esri.Graphic(geometry, new esri.symbol.PictureMarkerSymbol('images/protractor.png', 250, 250)));
share|improve this answer
Nice. Thanks for sharing, please mark this as the answer by clicking on that green tick to the left of the voting buttons. If your feeling keen, edit your answer to include a screenshot as well... – Simon Oct 19 '12 at 0:23
Added screenshot! Thanks! – Moiz Oct 19 '12 at 15:16
Thats nice. Simple yet effective. I might pinch that concept. – Simon Oct 20 '12 at 0:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.