Back to all examples
Themed map
Open the map in your own colours: a warm Lisbon palette from the very first frame, with no flash of the default style
Lisbon opens in limestone, Atlantic blue and terracotta, already themed on the first frame the map draws.
StylingFoundationsModule.getresolves once the style has loaded and before it is drawn, and colours set ahead of that first frame land at once rather than fading in from the default palette.setMapColorstakes ten semantic colours and re-derives every outline, tunnel and road class the style built from each, by the style’s own offsets.
Related examples
3D terrain map
Render the map surface in 3D using terrain elevation data
Getting Started
Map Style
Plugins
Web
Basic geometry
Show geometry around the search area
Getting Started
Places and Search
Map Style
Geometry
Web
Geometry config playground
Style a place's geometry
Playground
Base Map
Map Style
Geometry
Web
Hillshade map
Display a hillshade map
Getting Started
Map Style
Web