Back to all examples
Map theme from colours, an image or CSS
Theme the whole map from a few colours (a brand, an artist, a mood), an image's dominant colours or a website's stylesheet
Pick a palette, type colours or drop an image or a CSS file, and the whole map takes that theme, pins and route included.
- The Map Theme plugin’s
deriveMapColorsgives any handful of colours a map colour role each and derives the rest with readable labels. deriveMapColorsFromImageandderiveMapColorsFromCsspick those colours: an image’s dominant ones, a stylesheet’s most used.setMapColorsapplies them as knobs surviving a style switch, and sets the accent the area, pins and route draw in.mapColorsLightDarktells a dark theme from a light one, so a dark theme recoloursstreetDark.
Related examples
Layer group toggling
Control individual base map layer groups
Customization
Base Map
Map Style
Web
Map layer groups visibility animation
Making key layers of the map appear in an animation.
Base Map
Customization
Map Style
Web
Map Chat Agent
Interactive map assistant using AI to control maps and services
AI
Places and Search
Map Style
Base Map
Geometry
Traffic
Routing
Web
Playground
Plugins
Map Chat Agent State Playground
Interactive map assistant using AI to control maps and services
AI
Places and Search
Map Style
Base Map
Geometry
Traffic
Routing
Web
Playground
Plugins