Repository navigation
Switch map to MapLibre GL with OpenFreeMap vector tiles - #401
Merged
Merged
Conversation
Replace Leaflet, Leaflet.markercluster, Leaflet.edgebuffer and the custom hash plugin with a pure MapLibre GL implementation using the free OpenFreeMap "Liberty" style (no API key, no request limits). - Native GeoJSON clustering, GPU-rendered markers and cluster circles - Cluster click zooms to the bounds of its members; people sharing one position get a list popup with links to their profiles - URL hash handling reimplemented (compatible with existing #user and #zoom,lat,lng links) - Map labels follow the browser language (name:xx fields of OpenMapTiles) - REDAXO color theme for the map with light and dark variant following prefers-color-scheme, incl. dark styles for popups and info overlay - Vendored MapLibre GL 5.24.0 (last version with UMD build) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces Leaflet (+ markercluster, edgebuffer, custom hash plugin) with a pure MapLibre GL map using the free OpenFreeMap "Liberty" vector tiles (no API key, no request limits, replaces the CARTO raster tiles which were limited to 75k requests).
#staabmand#5.5,50.8,9.5keep workingname:xxfields from OpenMapTiles, ~75 languages, falls back to the style default)prefers-color-scheme, including dark styles for popups, attribution and the info overlay (white "AXO" logo variant)assets/vendor/maplibre-gl/Notes
maxBoundsuses ±179.9° instead of ±180° because MapLibre 5.24 throws in its constrain code for full-width bounds (commented in code)marker, so our icon is registered aspeople-markernullin a style expression) originate from the OpenFreeMap style itselfTest plan
Tested locally with Jekyll in Docker and headless Chromium:
#staabmopens the popup and sets the document title; closing restores a location hash