Back to all examples
Multiple maps: four themes per style
Four maps of Amsterdam moving together, with four colour themes for each standard style, in a grid that fits any screen
Pick a standard style and all four maps switch to it, each in its own theme. Pan or zoom any of them and the other three follow, so the themes compare street for street.
- Each theme is a set of
map colours passed to
applyConfig, which replaces the whole config, so the colours a theme leaves out go back to the style’s own. The mono themes setlandalone and the style derives the other nine from it. The satellite themes recolour only the roads and labels drawn over the imagery. - The themes are set before
setStyle, so they carry into the new style with the rest of the map’s state. - Each map’s camera is on
mapLibreMap, and onemovehandler per map copies it to the other three withjumpTo.
Related examples
Globe and 3D terrain
Switch the map to a globe with an atmosphere with the styling foundations module's view knobs, or raise it in 3D with the terrain module
Customization
Map Style
Terrain and 3D
Web
Map colours
Recolour the whole base map with ten semantic colours in one call: every shade, outline and variant the style derived from one of them follows it
Customization
Map Style
Web
Mixed map effects
Paint the map in watercolour with your own shader, under the plugin's bloom, grade and vignette.
Customization
Map Style
Plugins
Web
Borrowed looks
Places, a route and fetched traffic incidents drawn in the style's own look, following the styling knobs that restyle it, live
Customization
Map Style
Places and POIs
Routing
Traffic
Web