Files
contao-leaflet-maps/module/templates/leaflet_map_html.html5

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;