openmaptiles / www.openmaptiles.org

OpenMapTiles.org website
http://openmaptiles.org/
23 stars 48 forks source link

Migrate to MapLibre GL JS #71

Closed webberig closed 3 years ago

webberig commented 3 years ago

Fixes #70

Replaces MapBox GL references with MapLibre GJ. Changed demo and viewers page.

Could use some feedback regarding following pages:

docs/style/mapbox-gl-style-spec.md

I think the style spec is still MapBox GL, added a note regarding the Javascript library to clarify MapBox style spec vs MapLibre JS.

/inspect.md

This page uses a copy of the Mapbox library /inspect/mapbox-gl.js and some custom inspect JS file. Didn't dare to touch this. Can't seem to find a reference towards this page though...

languages pages (ie. https://openmaptiles.org/languages/az/)

These pages load a Javascript file https://cdn.klokantech.com/openmaptiles-language/v1.0/openmaptiles-language.js which refers a globally defined mapboxgl. This returns an error when I migrate to MapLibre GL and it breaks the multilingual demo. This Javascript file is not in this project, so not sure how to handle this...

daliborjanak commented 3 years ago

Merged. Thanks for contributing. We will update /languages/ later