Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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??

I would appreciate any help.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

enter image description hereAchieved 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)));
share|improve this answer
2  
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

 
discard

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.