mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 22:56:00 +02:00
Support custom templates and map ids.
This commit is contained in:
1 parent
1bfd99746c
commit
31136afd42
8 files changed
+102
-7
No files matched your search
@@ -46,6 +46,14 @@ class MapModule extends \Module
|
||||
*/
|
||||
protected function getIdentifier()
|
||||
{
|
||||
return 'mod_' . $this->id;
|
||||
if ($this->leaflet_mapId) {
|
||||
return $this->leaflet_mapId;
|
||||
}
|
||||
|
||||
if ($this->cssID[0]) {
|
||||
return 'map_' . $this->cssID[0];
|
||||
}
|
||||
|
||||
return 'map_mod_' . $this->id;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user