mapbox-gl-language

A Mapbox GL JS plugin that switches the language of map labels in a style. It can also pick the language from the user's browser settings.

Share on XLicense: BSD-3-Clause

Overview

Mapbox GL Language is a plugin for Mapbox GL JS that switches the language of labels in a map style. You add it to an existing map as a control, and it can transform the style automatically for a chosen language or follow the language of the user's browser. It can be loaded from a CDN or installed from npm as @mapbox/mapbox-gl-language. It requires mapbox-gl-js.

Key features

  • Switches map label language in a style
  • Can follow the user's browser language
  • Loads from a CDN or npm module
  • Added to a map as a control

Best for

Web developers who want multilingual Mapbox GL JS maps. It works only with Mapbox GL JS; other platforms are covered by a separate help document.

Upstream
mapbox/mapbox-gl-language
Fork on GitHub
Guo-astro/mapbox-gl-language
Upstream stars
204
Category
Maps and geospatial
Language
JavaScript
License
BSD-3-Clause
Forked
2020-11-01
Sync status
In syncLast synced 2026-09-29