mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 12:33:45 +01:00
46 lines
870 B
PHP
46 lines
870 B
PHP
<?php
|
|
|
|
/**
|
|
* @package dev
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
|
* @copyright 2015 netzmacht creative David Molineus
|
|
* @license LGPL 3.0
|
|
* @filesource
|
|
*
|
|
*/
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Frontend;
|
|
|
|
/**
|
|
* The frontend module for the Leaflet map.
|
|
*
|
|
* @package Netzmacht\Contao\Leaflet\Frontend
|
|
*/
|
|
class MapModule extends AbstractMapHybrid
|
|
{
|
|
/**
|
|
* Template name.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $templateName = 'mod_leaflet_map';
|
|
|
|
/**
|
|
* Get the identifier.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function getIdentifier()
|
|
{
|
|
if ($this->get('leaflet_mapId')) {
|
|
return $this->get('leaflet_mapId');
|
|
}
|
|
|
|
if ($this->get('cssID')[0]) {
|
|
return 'map_' . $this->get('cssID')[0];
|
|
}
|
|
|
|
return 'map_mod_' . $this->get('id');
|
|
}
|
|
}
|