Layer switcher #929
Replies: 3 comments
-
I do it like this in my map. HTML
Javascript
Basically, the value of the dropdown is the style of the map. then in the javascript there is an Event listener that uses that values you can see it here (https://wifidb.net/wifidb/opt/map.php?func=wifidbmap). I'd post a stackblitz for you but I don't think the demo site has multiple styles |
Beta Was this translation helpful? Give feedback.
-
I had the same question and share my solution here. |
Beta Was this translation helpful? Give feedback.
-
Brilliant, thanks Astrid! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any demo for a simple layer switcher that can toggle map styles ?
Beta Was this translation helpful? Give feedback.
All reactions