[openstreetmap/openstreetmap-website] Migrate the dashboard entry page from leaflet to maplibre (PR #6504)

Frank Elsinga notifications at github.com
Tue Dec 2 12:57:01 UTC 2025


@CommanderStorm commented on this pull request.



> +      tileSize: 256,
+      maxzoom: 19
+    }
+  },
+  layers: [
+    {
+      id: "osm",
+      type: "raster",
+      source: "osm"
+    }
+  ]
+};
+
+// Helper function to create Leaflet style (SVG comes from Leaflet) markers for MapLibre
+// new maplibregl.Marker({ color: color }) is simpler, but does not have the exact same gradient
+OSM.createMaplibreMarker = function ({ icon = "dot", color = "var(--marker-red)", ...options }) {

this is the analogue to `OSM.getMarker` which is how to create a leaflet marker.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6504#pullrequestreview-3529953098
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6504/review/3529953098 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251202/27f62eb3/attachment.htm>


More information about the rails-dev mailing list