From 92d1a3906aa83595b1c1128c69785576cb2d1d19 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 29 Dec 2014 16:39:32 +0100 Subject: [PATCH] Add javscript to the footer. --- src/Netzmacht/Contao/Leaflet/LeafletMapElement.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Netzmacht/Contao/Leaflet/LeafletMapElement.php b/src/Netzmacht/Contao/Leaflet/LeafletMapElement.php index 7968145..212285a 100644 --- a/src/Netzmacht/Contao/Leaflet/LeafletMapElement.php +++ b/src/Netzmacht/Contao/Leaflet/LeafletMapElement.php @@ -52,9 +52,12 @@ class LeafletMapElement extends \ContentElement { try { $mapId = 'map_' . ($this->cssID[0] ?: $this->id); + $map = $this->mapService->getJavascript($this->leaflet_map, $mapId); + + $GLOBALS['TL_BODY'][] = ''; $this->Template->mapId = $mapId; - $this->Template->map = $this->mapService->getJavascript($this->leaflet_map, $mapId); +// $this->Template->map = $map; } catch(\Exception $e) { throw $e; }