function createToolbar(themap){ toolbar = new esri.toolbars.Draw(map); dojo.connect(toolbar,"onDrawEnd", addToMap); } function addToMap(geometry){ toolbar.deactivate(); var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25])); var graphic = new esri.Graphic(geometry,symbol); map.graphics.add(graphic); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.