예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function optionsToObjects()
 {
     $import = parent::optionsToObjects();
     if ($layer = $this->getOption('layer')) {
         $layer = Openlayers::load('layer', $layer);
         $import = array_merge($layer->getCollection()->getFlatList(), $import);
     }
     return $import;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function optionsToObjects()
 {
     $import = parent::optionsToObjects();
     if ($style = $this->getOption('editStyle')) {
         $style = Openlayers::load('style', $style);
         $this->setWeight($style->getWeight() + 1);
         $import = array_merge($style->getCollection()->getFlatList(), $import);
     }
     if ($layer = $this->getOption('editLayer')) {
         $layer = Openlayers::load('layer', $layer);
         $import = array_merge($layer->getCollection()->getFlatList(), $import);
     }
     if ($control = $this->getOption('editControl')) {
         $control = Openlayers::load('control', $control);
         $import = array_merge($control->getCollection()->getFlatList(), $import);
     }
     return $import;
 }