Skip to content
Discussion options

You must be logged in to vote

Is there a reason you don't use map.setLayoutProperty?

map.setLayoutProperty("<LAYER_NAME>", "visibility", "none");

*This also eliminates the need to call redraw.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sudharsanprabhu
Comment options

Answer selected by sudharsanprabhu
Comment options

You must be logged in to vote
1 reply
@sudharsanprabhu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6922 on December 30, 2025 17:56.