Move javascript wrapping into an template.

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

View File

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