From 7fd931de32d58481964e9388400418d993d57b08 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 29 Jan 2026 02:30:43 +0100 Subject: [PATCH] Disable `validateStyle` for minor initalisation performance gains on slower hardware --- app/assets/javascripts/maplibre/map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/maplibre/map.js b/app/assets/javascripts/maplibre/map.js index 73f780c2c..8e75deb1a 100644 --- a/app/assets/javascripts/maplibre/map.js +++ b/app/assets/javascripts/maplibre/map.js @@ -20,6 +20,9 @@ OSM.MapLibre.Map = class extends maplibregl.Map { }); } const map = super({ + // Style validation only affects debug output. + // Style errors are usually reported to authors, who should validate the style in CI for better error messages. + validateStyle: false, ...rotationOptions, ...options }); -- 2.39.5