Water, land, buildings, road lines, labels and shields each leave the map on their own while the rest keeps drawing.
- One
BaseMapModule.getcovers all of them. ItssetVisibletakes the group to act on, so a toggle per group needs no module per group. baseMapLayerGroupNamesis the list the panel is generated from, so the controls track the groups the SDK actually has.isVisiblereads each group’s real starting state, so a toggle for a group that ships hidden renders off.- Hovering a toggle shows what the group holds, read from
baseMapKnobCatalogueby the group’s setting id,groups.<group>.visible.
Related examples
Attribution playground
The map's copyright logos in any corner, clear of your app's own panels, on every standard style
Playground
Base Map
Web
Geopolitical views playground
Fly to a disputed territory and see its borders, names and address from each country's view
Playground
Base Map
Search and Geocoding
Web
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React