sketch.visibleElements={selectionTools:{ "lasso-selection": false }}, is not removing the lasso tool from the menu in 4.28.
Hi @MatthewDriscoll - a fix for this is available on npm @arcgis/core version 4.28.6 and should be available on the CDN this evening. Thanks for letting us know!
Seems to be working as expected for me - https://codepen.io/annefitz/pen/YzBwWPx?editors=1000
Could you provide a repro case of the issue you're seeing?
It does seem to work if you use it that way. Must be a bug in 4.28. If you take it out and do this it does not.
sketch.visibleElements = ({ createTools:{ circle: false, rectangle: false, }, selectionTools :{ "lasso-selection": false }, creationMode: "update", undoRedoMenu: false, settingsMenu: false });
Did you have the same results taking it outside the property object of the sketch widget in 4.28?
Yes, seems like a bug. We are looking into it!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.