mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 03:54:10 +01:00
Use L.Contao as reference to the Contao integration object.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div id="<?php echo $mapId; ?>" style="<?php echo $style; ?>"></div>
|
||||
<?php $GLOBALS['TL_BODY'][] = <<<HTML
|
||||
<script>
|
||||
ContaoLeaflet.addMap('{$mapId}', function() {
|
||||
L.Contao.addMap('{$mapId}', function() {
|
||||
{$javascript}
|
||||
return { map: map, layers: layers, controls: controls, icons: icons };
|
||||
}());</script>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ContaoLeaflet.addMap('<?php echo $mapId; ?>', function() {
|
||||
L.Contao.addMap('<?php echo $mapId; ?>', function() {
|
||||
<?php echo $javascript; ?>
|
||||
|
||||
return { map: map, layers: layers, controls: controls, icons: icons };
|
||||
|
||||
Reference in New Issue
Block a user