From 8b5154da93aff89ca0d757bd930b4dfeb91b3efd Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Fri, 16 Jan 2026 09:53:30 +0100 Subject: [PATCH] turn off animation --- app/javascript/maplibre/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/maplibre/map.js b/app/javascript/maplibre/map.js index 7de39675..980b3e3d 100644 --- a/app/javascript/maplibre/map.js +++ b/app/javascript/maplibre/map.js @@ -87,7 +87,7 @@ export async function initializeMap (divId = 'maplibre-map') { interactive: (window.gon.map_mode !== 'static') // can move/zoom map // style: {} // style/map is getting loaded by 'setBackgroundMapLayer' }) - if (!functions.isTestEnvironment()) { map.setZoom(map.getZoom() - 1) } // will zoom in on map:load + // if (!functions.isTestEnvironment()) { map.setZoom(map.getZoom() - 1) } // will zoom in on map:load // for console debugging window.map = map @@ -115,7 +115,7 @@ export async function initializeMap (divId = 'maplibre-map') { dom.initTooltips() functions.e('#preloader', e => { e.classList.add('hidden') }) functions.e('.map', e => { e.setAttribute('data-map-loaded', true) }) - if (!functions.isTestEnvironment()) { map.easeTo({ zoom: map.getZoom() + 1, duration: 1000 }) } + // if (!functions.isTestEnvironment()) { map.easeTo({ zoom: map.getZoom() + 1, duration: 1000 }) } console.log("Map loaded ('load')") const urlFeatureId = new URLSearchParams(window.location.search).get('f')