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

Frank Elsinga notifications at github.com
Thu Nov 6 10:48:30 UTC 2025


@CommanderStorm commented on this pull request.

I am having a bit of trouble with the asset system that I did no have when I was [doing the PR for OHM](https://github.com/OpenHistoricalMap/ohm-website/pull/339).
There seems to be a diff, but I have no clue which part of the diff is the relevant part

> @@ -10,6 +10,7 @@
   <% end %>
   <%= stylesheet_link_tag "print-#{dir}", :media => "print" %>
   <%= stylesheet_link_tag "leaflet-all", :media => "screen, print" %>
+  <link href="https://unpkg.com/maplibre-gl@^5.11.0/dist/maplibre-gl.css" rel="stylesheet" />

@pablobm
I am taking your comment as an OK to ask you questions.

I have a bit of trouble with this system and have no clue how to fix it.
THis right here obviously is not production quality and needs to be fixed before the PR can move into review.

**How do I do this in the rails?** 

I have already tried adding below lines, but that does not seem the way to handle this:

https://github.com/OpenHistoricalMap/ohm-website/blob/3806c1b5c294e0656ee82cc5840ddccde67068dd/config/initializers/assets.rb#L22

https://github.com/OpenHistoricalMap/ohm-website/blob/3806c1b5c294e0656ee82cc5840ddccde67068dd/app/views/layouts/_head.html.erb#L16

The error that this is causing is the following:

<img width="920" height="448" alt="image" src="https://github.com/user-attachments/assets/d6a48f44-ec7d-424b-8126-ddcdf6e6cdd0" />



> +            "tiles": [
+              "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
+            ],
+            "tileSize": 256,
+            "maxzoom": 19,
+            "attribution": "© OpenStreetMap contributors"
+          }
+        },
+        "layers": [
+          {
+            "id": "osm",
+            "type": "raster",
+            "source": "osm",
+          }
+        ],
+        "projection": { "type": "globe" },

The globe is the only only thing which should be not precicely as before for users.

If osm prefers a flat eath (pun intended), this can be removed to use webmercator instead

```suggestion
```

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

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


More information about the rails-dev mailing list