Yes I was able to reproduce the problem and it is a bug in the JSAPI that we'll get fixed for the next release. Kelly
Hey Kelly, I was curious if you were able to recreate that bug I had mentioned or if it seems like I may be doing something wrong on my end? I had a meeting with my project manager the other day and it seems they really like the editor widget and would prefer I use that than building my own reshape and cut tool and connecting them to the geometry service. I was able to build a workaround for now by hiding the select box that was causing the error and placing a few buttons(one for each option that was in my select) in the toolbar that when clicked, will force the drawToolbar to activate a different drawing tool. This works for now but seems like kind of a hack.
.infowindow{ visibility: hidden !important; }
var settings = { map: map, templatePicker: templatePicker, layerInfos: [{featureLayer: editableLayer}], toolbarVisible: true, showAttributesOnClick: false, createOptions: { polygonDrawTools:[esri.dijit.editing.Editor.CREATE_TOOL_FREEHAND_POLYGON,esri.dijit.editing.Editor.CREATE_TOOL_AUTOCOMPLETE] }, toolbarOptions: { reshapeVisible: true, cutVisible: true, selectVisible: false } }; var params = {settings: settings}; var myEditor = new esri.dijit.editing.Editor(params,"editingTools"); myEditor.startup();
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.