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!
Yes, seems like a bug. We are looking into it!
Did you have the same results taking it outside the property object of the sketch widget in 4.28?
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 });
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?
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.