migrate geojson map from patched leaflet raster to maplibre vector
What does this MR do and why?
Replaces the Leaflet raster tile map library with MapLibre GL JS vector tiles for the GeoJSON blob viewer.
Closes #590482
Why:
- Removes a patched dependency (
patches/leaflet+1.9.4.patch) - Vector tiles render sharply at all zoom levels with continuous smooth zooming, instead of the stepped/blurry raster approach
- MapLibre GL uses WebGL for hardware-accelerated rendering
What changed:
- Swapped
leafletformaplibre-glinpackage.json - Rewrote
utils.jsto use MapLibre's source/layer API with native geometry type styling (points, lines, polygons) - Switched tile source from OpenStreetMap raster to OpenFreeMap vector (
https://tiles.openfreemap.org/styles/liberty) - Added
https://tiles.openfreemap.orgto CSPconnect_src - Deleted
patches/leaflet+1.9.4.patch - Added
maplibre-glto JesttransformIgnorePatterns - Updated all related specs
Before / After
Before
Step-wise zoom on blurry raster graphics
After
Smooth zoom on crisp vector graphics
References
How to set up and validate locally
- Open a repository that contains a
.geojsonfile (e.g. geojson-demo) - Verify the map renders with vector tiles (smooth continuous zoom, sharp at all levels)
- Verify popups appear on click for features with properties
- Verify polygons, lines, and points all render with correct styling
- Verify the map fits to the bounds of the GeoJSON data
Edited by Birk Skyum

