Hello,
I just noticed that the Editor widget cannot be destroyed: an error occurs and the widget is not destroyed:
Thanks,
Nicolas
Solved! Go to Solution.
Hi there,
Thank you for reporting this issue. We will address it in our next release.
-Undral
However, if you try to use the editor after destroying it, it's not working. Adding in a console.log(editor) after destroying it will give you
TypeError: null has no properties
You just have to manually remove the editor from the view.ui before destroying it.
setTimeout(() => {
alert("Editor should be destroyed");
view.ui.remove(editor);
editor.destroy();
console.log(editor);
}, 10000);
Thanks for the suggestion Ken Buja but then clicking on the map returns an error because the widget is not properly destroyed
Hi there,
Thank you for reporting this issue. We will address it in our next release.
-Undral
Hi Undral Batsukh,
Thanks for the update!