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

The maps translation does't fit to the rest of the website. #7

Open
thomasrosen opened this issue Apr 30, 2020 · 0 comments
Open

The maps translation does't fit to the rest of the website. #7

thomasrosen opened this issue Apr 30, 2020 · 0 comments

Comments

@thomasrosen
Copy link
Member

Problem

We are currently using Leaflet.js to render the map. This limits us to raster-tiles and we can't dynamically change the language of the labels.

Suggestion

➡️ Switch from Leaflet.js to Mapbox-GL-JS.
⚠️ Some browsers or devices do not support WebGL. Do we need have a fallback for them?


A few links for implementing Mapbox-GL-JS:

Installing Mapbox-GL-JS
https://docs.mapbox.com/help/tutorials/use-mapbox-gl-js-with-react/
https://docs.mapbox.com/mapbox-gl-js/example/check-for-support/

Changing the language in Mapbox-GL-JS
https://docs.mapbox.com/mapbox-gl-js/example/language-switch/
https://github.com/mapbox/mapbox-gl-language

@thomasrosen thomasrosen changed the title The labels on the map aren't translated to the rest of the website. The maps translation does't fit to the rest of the website. Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant