mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 03:54:10 +01:00
Move javascript wrapping into an template.
This commit is contained in:
5
module/templates/leaflet_map_js.html5
Normal file
5
module/templates/leaflet_map_js.html5
Normal file
@@ -0,0 +1,5 @@
|
||||
ContaoLeaflet.addMap('<?php echo $mapId; ?>', function() {
|
||||
<?php echo $javascript; ?>
|
||||
|
||||
return { map: map, layers: layers, controls: controls, icons: icons };
|
||||
}());
|
||||
Reference in New Issue
Block a user