mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Output the map javscript in the template.
This commit is contained in:
1 parent
33a097ebe7
commit
fa67267473
3 files changed
+3
-3
No files matched your search
@@ -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