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