예제 #1
0
 /**
  * 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);
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public static function getRequiredLibraries()
 {
     $libs = parent::getRequiredLibraries();
     $libs[] = 'leaflet-loading';
     return $libs;
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public static function getRequiredLibraries()
 {
     $libs = parent::getRequiredLibraries();
     $libs[] = 'leaflet-fullscreen';
     return $libs;
 }