i would like to do it in order to edit graphics and not have the infoWindow pops up when i edit a graphic. thx for any help
I have try .disableMouseEvents(); but it's not working
My listener :
this.graphicLayerObj.on("click",lang.hitch(this,function(evt){
if(dom.byId("drawingContainer").innerHTML=="" && domStyle.get(widgetTool.drawingToolsNode,"backgroundColor")=="rgba(71, 71, 71, 0.4)"){
this.activateToolbar(evt.graphic);
}
}));
activateToolbar: function(graphic) {
var tool = 0;
tool = tool | Edit.MOVE;
tool = tool | Edit.EDIT_VERTICES;
tool = tool | Edit.SCALE;
tool = tool | Edit.ROTATE;
// enable text editing if a graphic uses a text symbol
if (graphic.symbol.declaredClass === "esri.symbol.TextSymbol") {
tool = tool | Edit.EDIT_TEXT;
//specify toolbar options
var options = {
allowAddVertices : true,
allowDeleteVertices : true,
uniformScaling : true
};
editToolbar.activate(tool, graphic, options);
},
Can you post your code?
it's a good option but i have to use the left click
To solve that, I use right click to edit graphics. Would that be an option?
Advanced Draw - JSFiddle
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.