Use template engine to render the map.

This commit is contained in:
David Molineus
2017-10-18 17:01:03 +02:00
parent 7498aef141
commit ce9de6ded3
4 changed files with 32 additions and 16 deletions

View File

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