mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 06:36:03 +02:00
Prepare for backend usage.
This commit is contained in:
1 parent
ff0d2d9ec6
commit
417e208d85
3 files changed
+13
-12
No files matched your search
@@ -1,8 +1,6 @@
|
||||
<div id="<?php echo $mapId; ?>" style="<?php echo $style; ?>"></div>
|
||||
<?php $GLOBALS['TL_BODY'][] = <<<HTML
|
||||
<script>
|
||||
L.contao.addMap('{$mapId}', function() {
|
||||
{$javascript}
|
||||
<?php echo $javascript; ?>
|
||||
return { map: map, layers: layers, controls: controls, icons: icons };
|
||||
}());</script>
|
||||
HTML;
|
||||
Reference in new issue
Block a user