Select to view content in your preferred language

4.28 sketch visibleElements selectionTools

830
5
Jump to solution
10-27-2023 09:42 AM
MatthewDriscoll
MVP Alum

sketch.visibleElements={selectionTools:{ "lasso-selection": false }}, is not removing the lasso tool from the menu in 4.28.

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Regular Contributor

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!

View solution in original post

5 Replies
AnneFitz
Esri Regular Contributor

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? 

0 Kudos
MatthewDriscoll
MVP Alum

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
    });

 

0 Kudos
MatthewDriscoll
MVP Alum

Did you have the same results taking it outside the property object of the sketch widget in 4.28?

0 Kudos
AnneFitz
Esri Regular Contributor

Yes, seems like a bug. We are looking into it!

AnneFitz
Esri Regular Contributor

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!