Themed map

Open the map in your own colours and typeface: a warm Lisbon palette from the very first frame, with no flash of the default style, and every label in Fraunces

View on GitHub
SDK 1.0.0

Lisbon opens in limestone, Atlantic blue and terracotta, already themed on the first frame the map draws, with its labels set in Fraunces.

  • StylingFoundationsModule.get resolves 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.
  • setMapColors takes ten semantic colours and re-derives every outline, tunnel and road class the style built from each, by the style’s own offsets.
  • A labels.customTypeface sets every label in an open-source font, from files the map downloads itself.

Related examples