/** * Construct. * * @param string $identifier The identifier. * @param Layer[] $baseLayers Base layers. * @param Layer[] $overlays Overlay layers. */ public function __construct($identifier, $baseLayers = array(), $overlays = array()) { parent::__construct($identifier); foreach ($baseLayers as $layer) { $this->addBaseLayer($layer); } foreach ($overlays as $layer) { $this->addOverlay($layer); } }
/** * {@inheritdoc} */ public static function getRequiredLibraries() { $libs = parent::getRequiredLibraries(); $libs[] = 'leaflet-loading'; return $libs; }
/** * {@inheritdoc} */ public static function getRequiredLibraries() { $libs = parent::getRequiredLibraries(); $libs[] = 'leaflet-fullscreen'; return $libs; }