mapbox-omt-lang
v1.1.1
Published
Update the language of your OpenMapTiles vector tiles for Mapbox GL JS.
Downloads
12
Maintainers
Readme
mapbox-omt-lang
Update the language of your OpenMapTiles vector tiles for Mapbox GL JS.
Getting started
$ npm install mapbox-omt-lang
Usage
This library exposes a MapboxOmtLang
class that is used as a Mapbox GL JS map control.
const map = new mapboxgl.Map({/* options */})
const mapLang = new MapboxOmtLang('fr')
map.addControl(mapLang)
See also
- mapbox-gl-language: Switch language of your Mapbox GL JS style
- openmaptiles-language: Javascript library for changing language of OpenMapTiles map in mapbox-gl-js
Why another library
- mapbox-gl-language doesn’t work with openmaptiles styles.
- openmaptiles-language modifies mapboxgl.Map’s prototype and isn’t published as an NPM package.
License
MIT
Miscellaneous
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝