mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Change map id generation.
This commit is contained in:
1 parent
1ebd3ef49b
commit
c0a9a6c681
2 files changed
+2
-2
No files matched your search
@@ -78,7 +78,7 @@ class MapElement extends \ContentElement
|
||||
protected function compile()
|
||||
{
|
||||
try {
|
||||
$mapId = 'ce_map_' . ($this->cssID[0] ?: $this->id);
|
||||
$mapId = 'map_' . ($this->cssID[0] ?: ('ce_' . $this->id));
|
||||
$map = $this->mapService->getJavascript($this->leaflet_map, null, $mapId);
|
||||
|
||||
$GLOBALS['TL_BODY'][] = '<script>' . $map .'</script>';
|
||||
|
||||
Reference in new issue
Block a user