Hi Patrick, how did you know of the existence of stopEditing() and _disableMapClickHandler() method?. Those methods don´t exist in the javascript api Editor | API Reference | ArcGIS API for JavaScript 3.20 . Excuse my English and I appreciate your response.
//var editModeIsEdit (bool) true|false => editing session ? function manageEditor(){ if(editModeIsEdit){ if(editorWidget!=undefined){ editorWidget._disableMapClickHandler(); editorWidget._enableMapClickHandler(); } }else{ if(templatePicker!=undefined){ templatePicker.clearSelection(false); } if(editorWidget!=undefined){ editorWidget.stopEditing(false); editorWidget._disableMapClickHandler(); } } }
stopEditing : function(_6) { this._updateCurrentFeature(_2.hitch(this, function() { this._clearSelection(false); _6 && _6(); })); },
editor._updateCurrentFeature(dojo.hitch(this,function(){ editor._clearSelection(false); }));
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.