@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/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev