Move javascript wrapping into an template.

This commit is contained in:
David Molineus committed 2015-01-14 16:47:06 +01:00
1 parent a31e8781fd
commit cbf2c53ee0
5 files changed
+19 -51

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
ContaoLeaflet.addMap('<?php echo $mapId; ?>', function() {
<?php echo $javascript; ?>
return { map: map, layers: layers, controls: controls, icons: icons };
}());