Update templates to use maplibre-gl-js, maplibre-gl-inspect, and leaflet . #603
Update templates to use maplibre-gl-js, maplibre-gl-inspect, and leaflet . #603petrsloup merged 5 commits intomaptiler:masterfrom
Conversation
|
If there are any recomendations please let me know. Right now, this is using the following libraries. maplibre-gl.js - Maplibre v2.4.0 (Official maplibre library) maplibre-gl-compat.js - Maplibre v2.4.0 (old browser compatibility) maplibre-gl-inspect.min.js - mapbox-gl-inspect migrated to maplibre maplibre-gl-inspect-compat.min.js - mapbox-gl-inspect migrated to maplibre (old browser compatibility) leaflet.js - Leaflet 1.8.0 (Official leaflet library) L.TileLayer.NoGap.js - Fix for leaflet tile gaps |
petrsloup
left a comment
There was a problem hiding this comment.
Thank, nice update of the dependencies.
It would be nice to one day move past the committed built files and rather have maplibre-gl-js as an actual dependency and bundle during release. But that is definitely a bigger block of work for the future..
This updates the templates to use maplibre-gl-js, maplibre-gl-inspect, and leaflet and gets rid of mapbox
There is a bit of hackiness in these templates to support older browsers, which basically loads IE compatible versions of the libraries if the browser doesn't support newer syntax. Without this, there is a browser supported check that is supposed to switch to a raster type that doesn't work