mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 20:13:49 +01:00
Output the map javscript in the template.
This commit is contained in:
@@ -9,4 +9,5 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- indexer::continue -->
|
<!-- indexer::continue -->
|
||||||
|
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript .'</script>'; ?>
|
||||||
|
|
||||||
|
|||||||
@@ -14,4 +14,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- indexer::continue -->
|
<!-- indexer::continue -->
|
||||||
|
<?php $GLOBALS['TL_BODY'][] = '<script>' . $this->javascript .'</script>'; ?>
|
||||||
|
|||||||
@@ -120,8 +120,7 @@ abstract class AbstractMapHybrid extends AbstractHybrid
|
|||||||
$mapId = $this->getIdentifier();
|
$mapId = $this->getIdentifier();
|
||||||
$map = $this->mapProvider->generate($this->get('leaflet_map'), null, $mapId, $template);
|
$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);
|
$this->template->set('mapId', $mapId);
|
||||||
|
|
||||||
$style = '';
|
$style = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user