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

View on GitHub
Map theme plugin 0.3.9Public previewSDK 1.0.0

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 deriveMapColors gives any handful of colours a map colour role each and derives the rest with readable labels.
  • deriveMapColorsFromImage and deriveMapColorsFromCss pick those colours, taking an image’s dominant ones or a stylesheet’s most used.
  • setMapColors applies them as knobs that survive a style switch, and sets the accent the area, pins and route draw in. The route’s summary bubble takes the theme’s label halo and label colours.
  • mapColorsLightDark tells a dark theme from a light one, so a dark theme recolours streetDark.

Related examples