Forum Discussion
AndrewBlemings-
12 hours agoCommunity Member
Showing/Hiding Layers
Just to confirm, there's not a way to show and hide layers via the API or DOM, right?
I'm a veteran of creating a boolean and toggling that to show and hide a layer, but a single line of JavaScript would be amazing.
1 Reply
- SamHillLegend
Nope. No public API anyway. I think via the variable is safest as there may be other stuff executed when a layer is shown/hidden, when those triggers are fired, that wouldn't be, if you went a more direct route.
Related Content
- 1 month ago
- 2 months ago
- 4 months ago
- 10 years ago