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>
This commit is contained in:
Jürgen Mummert
2026-08-22 21:20:00 +02:00
co-authored by Claude Opus 5
parent 3ee0afa60e
commit bd04ccc7b2
@@ -228,8 +228,10 @@ class EventFullTemplateDataListener
$GLOBALS['TL_JAVASCRIPT'] ??= []; $GLOBALS['TL_JAVASCRIPT'] ??= [];
$GLOBALS['TL_CSS'] ??= []; $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 = [ $jsAssets = [
'https://maps.mummert.media/libraries/maplibre-gl.js',
'https://maps.mummert.media/libraries/pmtiles.js', 'https://maps.mummert.media/libraries/pmtiles.js',
]; ];