equalstreetnames icon indicating copy to clipboard operation
equalstreetnames copied to clipboard

MapLibre upgrade to version 2 and drop of Mapbox baselayer

Open jbelien opened this issue 2 years ago • 2 comments

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 ?

jbelien avatar Nov 27 '22 15:11 jbelien

Sounds like a good idea, for personal projects I've already switched to MapTiler anyway, I've already added the token as secret.

RobinLinde avatar Nov 29 '22 18:11 RobinLinde

See https://github.com/EqualStreetNames/module-website/pull/23

jbelien avatar Dec 18 '22 15:12 jbelien