[openstreetmap/openstreetmap-website] Generate maplibre styles from `layers.yml` (PR #6772)

Marwin Hochfelsner notifications at github.com
Sun Feb 8 10:39:41 UTC 2026


@hlfan commented on this pull request.



> +    url_template = insert_api_key(layer, key)
+
+    tiles = if layer["subdomains"]
+              layer["subdomains"].map { |server| url_template.sub("{s}", server) }
+            else
+              [url_template]
+            end
+
+    {
+      :version => 8,
+      :sources => {
+        "raster-tiles-#{layer['layerId']}" => {
+          :type => "raster",
+          :tiles => tiles,
+          :tileSize => 256,
+          :maxZoom => layer["maxZoom"]

@CommanderStorm which one is the canonical property Maplibre expects?

```suggestion
          :maxzoom => layer["maxZoom"]
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/6772/review/3769620488 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260208/138a2551/attachment.htm>


More information about the rails-dev mailing list