mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 12:03:44 +01:00
Output the map javscript in the template.
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user