Map typeface

Every label on the map in one typeface, from open-source font files or the style's own Noto faces, with a route, museums and a district in Paris following along or set apart

View on GitHub
SDK 1.0.0

Pick a typeface and the street names, the route’s waypoints, the museums and the 7th arrondissement redraw in it together. Give the waypoints, the museums or the district a typeface of their own and only their labels change.

  • labels.customTypeface takes your own font files by URL, one per weight. Each label keeps its weight and slant, and the map downloads the files itself. Read more in the typeface guide.
  • The labels.typeface knob switches to the serif and italic Noto faces the map style already serves.
  • RoutingModule, PlacesModule and GeometriesModule follow the map until you set a typeface or a customTypeface in their label settings. That one wins for their labels alone. Read more in Your routes, places and geometries.
  • The ten families come from Fontsource, all under the SIL Open Font License. The SDK ships no font of its own.

Related examples