equalstreetnames
equalstreetnames copied to clipboard
MapLibre upgrade to version 2 and drop of Mapbox baselayer
Hello everyone,
I would like to upgrade MapLibre GL library used for the map to version 2 (see https://github.com/EqualStreetNames/module-website/pull/14).
MapLibre has dropped support for mapbox://
scheme, meaning we need to switch to another provider for the baselayer.
I suggest we migrate to MapTiler that also provides access to light/dark vector tiles baselayer for free:
- Light: https://www.maptiler.com/maps/#style=streets-v2-light
- Dark: https://www.maptiler.com/maps/#style=streets-v2-dark
That would also impact the geocoder (search for address) by replace Mapbox Geocoder by MapLibre Geocoder combined with Nominatim (see example).
It should also allow us to have localized basemaps (see #5 and example).
The "only" impact it would have for every city is the migration from MAPBOX_TOKEN
secret to a MAPTILER_TOKEN
created on https://cloud.maptiler.com/.
@equalstreetnames What do you think ?
Sounds like a good idea, for personal projects I've already switched to MapTiler anyway, I've already added the token as secret.
See https://github.com/EqualStreetNames/module-website/pull/23