group Two layers in L.control.layers #8860
-
Hello, I'm not good at java script. I'm looking to group 2 layers into one with the ability to choose.
|
Beta Was this translation helpful? Give feedback.
Answered by
Falke-Design
Feb 23, 2023
Replies: 1 comment 1 reply
-
Add first the two layers into a LayerGroup and then add the group to the baseLayers:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cayenne17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add first the two layers into a LayerGroup and then add the group to the baseLayers: