Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localized map #5

Open
jbelien opened this issue Feb 28, 2020 · 3 comments
Open

Localized map #5

jbelien opened this issue Feb 28, 2020 · 3 comments
Labels
enhancement New feature or request website Relative to city website

Comments

@jbelien
Copy link
Member

jbelien commented Feb 28, 2020

There is a Mapbox plugin to have a map that displays labels in a specific language.
Unfortunately, it doesn't support NL at the moment (see documentation).

(it also doesn't support dark-v10 at the moment, only dark-v9 - see documentation).

@jbelien jbelien added the enhancement New feature or request label Feb 28, 2020
@1ec5
Copy link

1ec5 commented Mar 3, 2020

Unfortunately the Mapbox Streets source doesn’t have a dedicated Dutch field either, so it’s only possible for GL JS to show streets in the local language, French, or English if you show roads directly from Mapbox Streets vector tiles. However, if you’re showing roads from another source, such as an Overpass query, then you could use gl-language as long as you override the supportedLanguages option to include nl and override getLanguageField to use name: as the key prefix instead of name_.

@jbelien
Copy link
Member Author

jbelien commented Mar 3, 2020

Thanks a lot for the feedback @1ec5 !

@jbelien
Copy link
Member Author

jbelien commented Mar 3, 2020

Meanwhile I discovered that base maps from @maptiler are available in FR and NL (and are more up-to-date) so it's maybe best just to switch to those base maps (see https://www.maptiler.com/cloud/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request website Relative to city website
Development

No branches or pull requests

2 participants