mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 11:33:46 +01:00
9 lines
265 B
Plaintext
9 lines
265 B
Plaintext
<div id="<?php echo $mapId; ?>" style="<?php echo $style; ?>"></div>
|
|
<?php $GLOBALS['TL_BODY'][] = <<<HTML
|
|
<script>
|
|
L.Contao.addMap('{$mapId}', function() {
|
|
{$javascript}
|
|
return { map: map, layers: layers, controls: controls, icons: icons };
|
|
}());</script>
|
|
HTML;
|