[openstreetmap/openstreetmap-website] Migrate the dashboard entry page from leaflet to maplibre (PR #6504)
Minh Nguyễn
notifications at github.com
Fri Nov 7 18:05:42 UTC 2025
@1ec5 commented on this pull request.
> + map = new maplibregl.Map({
+ container: "map",
+ style: {
+ version: 8,
+ name: "OSM Raster",
+ sources: {
+ osm: {
+ type: "raster",
+ tiles: [
+ "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
+ ],
+ tileSize: 256,
+ maxzoom: 19,
+ attribution: "© OpenStreetMap contributors"
+ }
+ },
+ layers: [
+ {
+ id: "osm",
+ type: "raster",
+ source: "osm"
+ }
+ ]
+ },
Long-term, we’ll probably want a system for centralizing style configuration like we have for layers on the main slippy map:
https://github.com/openstreetmap/openstreetmap-website/blob/9ff2103e60832de0f45c993fda22e4ca51e5303b/app/assets/javascripts/leaflet.maptiler.js#L4
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6504#pullrequestreview-3435528733
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6504/review/3435528733 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251107/582f2169/attachment.htm>
More information about the rails-dev
mailing list