From 0b73cf504848cef63bcc1528bfaf147e5c95a8bc Mon Sep 17 00:00:00 2001 From: Mischa Date: Tue, 23 Jun 2026 09:06:33 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20wrap=20map=20init=20in=20DOMContentLoade?= =?UTF-8?q?d=20=E2=80=94=20map.js=20loads=20at=20bottom=20via=20Asset=20Ma?= =?UTF-8?q?nager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- themes/intotheeast/templates/trip.html.twig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 1c3ccc5..b8013a0 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -253,6 +253,8 @@ var GPX_URLS = {{ gpx_urls|json_encode|raw }}; var USE_GPX = {{ page.header.use_gpx ?? true ? 'true' : 'false' }}; var AUTOCONNECT = "{{ page.header.autoconnect ?? 'on' }}"; +document.addEventListener('DOMContentLoaded', function() { + var tripMap = new maplibregl.Map({ container: 'trip-map', style: MapUtils.MAP_STYLE, @@ -376,6 +378,7 @@ var HAS_GPX = {{ has_gpx ? 'true' : 'false' }}; })(); +}); // DOMContentLoaded