Compare commits

...
1 Commits
Author SHA1 Message Date
Jürgen MummertandClaude Opus 5 bd04ccc7b2 Stop registering the MapLibre 5 UMD build on event detail pages
The event detail page was the last place still loading MapLibre 5. Its
theme template now imports maplibre-gl.mjs as an ES module, so the
listener no longer needs to register the UMD bundle.

pmtiles stays a classic script: it only has to provide an IIFE global
for addProtocol. The stylesheet registration is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-22 21:20:00 +02:00
@@ -228,8 +228,10 @@ class EventFullTemplateDataListener
$GLOBALS['TL_JAVASCRIPT'] ??= [];
$GLOBALS['TL_CSS'] ??= [];
// MapLibre wird vom Theme-Template als ESM importiert (maplibre-gl.mjs zieht
// -shared.mjs und -worker.mjs selbst nach). pmtiles bleibt klassisch, weil es
// nur ein IIFE-Global fuer addProtocol bereitstellen muss.
$jsAssets = [
'https://maps.mummert.media/libraries/maplibre-gl.js',
'https://maps.mummert.media/libraries/pmtiles.js',
];