Support custom templates and map ids.

This commit is contained in:
David Molineus
2015-01-30 17:44:24 +01:00
parent 1bfd99746c
commit 31136afd42
8 changed files with 102 additions and 7 deletions

View File

@@ -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;
}
}