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:
1 parent
3ee0afa60e
commit
bd04ccc7b2
1 file changed
+3
-1
@@ -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',
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user