Output the map javscript in the template.

This commit is contained in:
David Molineus
2016-10-06 12:31:21 +02:00
parent 33a097ebe7
commit fa67267473
3 changed files with 3 additions and 3 deletions

View File

@@ -9,4 +9,5 @@
</div>
<!-- indexer::continue -->
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript .'</script>'; ?>

View File

@@ -14,4 +14,4 @@
</div>
<!-- indexer::continue -->
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript .'</script>'; ?>

View File

@@ -120,8 +120,7 @@ abstract class AbstractMapHybrid extends AbstractHybrid
$mapId = $this->getIdentifier();
$map = $this->mapProvider->generate($this->get('leaflet_map'), null, $mapId, $template);
$GLOBALS['TL_BODY'][] = '<script>' . $map .'</script>';
$this->template->set('javascript', $map);
$this->template->set('mapId', $mapId);
$style = '';