From 16148d587822dae00de89404c29d7200ed6a3a56 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sun, 31 May 2026 20:47:03 +0200 Subject: [PATCH 1/4] enable MVT conversion --- martin/configuration.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/martin/configuration.yml b/martin/configuration.yml index e07490f15..69550122c 100644 --- a/martin/configuration.yml +++ b/martin/configuration.yml @@ -21,6 +21,9 @@ postgres: # # You may set this to `false` to disable. auto_publish: false + # Convert tiles to MVT when the client requests such tiles + convert_to_mvt: auto + # No tables, see function sources below tables: {} From 869036c802bd72afad617252edd56fa090aed297 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sun, 31 May 2026 20:52:01 +0200 Subject: [PATCH 2/4] enable MLT conversion --- martin/configuration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/martin/configuration.yml b/martin/configuration.yml index 69550122c..0780981eb 100644 --- a/martin/configuration.yml +++ b/martin/configuration.yml @@ -21,8 +21,8 @@ postgres: # # You may set this to `false` to disable. auto_publish: false - # Convert tiles to MVT when the client requests such tiles - convert_to_mvt: auto + # Convert tiles to MapLibre Tiles (MLT) when the client requests such tiles + convert_to_mlt: auto # No tables, see function sources below tables: {} From f18f003207d9576fc985f1f3d3fcf63e8f6153f0 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sun, 31 May 2026 20:59:05 +0200 Subject: [PATCH 3/4] Martin 1.10.1 --- martin.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/martin.Dockerfile b/martin.Dockerfile index dc771c21f..0b8ad2be3 100644 --- a/martin.Dockerfile +++ b/martin.Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/maplibre/martin:1.8.2@sha256:7137cad2facf21ef4af6cbef051ce0553b717e8289fde57b50b50c5ac93275b7 +FROM ghcr.io/maplibre/martin:1.10.1@sha256:808afb520272ebf37ea582b0191bd7a2d87c3cf89a552000883bfbdbced9688c COPY martin /config COPY symbols /symbols From ec4aab07b21d6f240342c7273c2186904399ce48 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sat, 13 Jun 2026 19:30:47 +0200 Subject: [PATCH 4/4] encoding, headers --- proxy/js/styles.mjs | 3 ++- proxy/js/ui.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/proxy/js/styles.mjs b/proxy/js/styles.mjs index a7a6b9c3d..90a0a0627 100644 --- a/proxy/js/styles.mjs +++ b/proxy/js/styles.mjs @@ -570,8 +570,9 @@ const sources = { }, high: { type: 'vector', - url: '/railway_line_high,railway_text_km', + url: '/railway_line_high', promoteId: 'id', + encoding: 'mlt', }, openrailwaymap_standard: { type: 'vector', diff --git a/proxy/js/ui.js b/proxy/js/ui.js index 3a2bae554..819154154 100644 --- a/proxy/js/ui.js +++ b/proxy/js/ui.js @@ -1185,6 +1185,16 @@ const map = new maplibregl.Map({ maxZoom: globalMaxZoom, attributionControl: false, renderWorldCopies: false, + transformRequest: function(url, resourceType) { + if (resourceType === 'Tile' && url && url.startsWith('http://localhost:8000/railway_line_high')) { + return { + url, + headers: { + 'Accept': 'application/vnd.maplibre-tile' + }, + } + } + }, ...(configuration.view || defaultConfiguration.view), });