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

9 lines
263 B
Plaintext
Raw Normal View History

2015-01-14 18:51:52 +01:00
<div id="<?php echo $mapId; ?>" style="<?php echo $style; ?>"></div>
<?php $GLOBALS['TL_BODY'][] = <<<HTML
2015-01-14 18:01:10 +01:00
<script>
2015-01-15 13:01:58 +01:00
L.contao.addMap('{$mapId}', function() {
2015-01-14 18:51:52 +01:00
{$javascript}
2015-01-15 13:01:58 +01:00
return { map: map, layers: layers, controls: controls, icons: icons };
2015-01-14 18:51:52 +01:00
}());</script>
HTML;