Exemple #1
0
 /**
  * Returns all features in the KML
  * @return	array   Array of Features
  */
 public function getAllFeatures()
 {
     $all_features = array();
     if (isset($this->feature)) {
         $all_features = array_merge($all_features, $this->feature->getAllFeatures());
     }
     return $all_features;
 }
Exemple #2
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = $parent_string;
     foreach ($this->features as $feature) {
         $output[] = $feature->__toString();
     }
     return implode("\n", $output);
 }
Exemple #3
0
 public function __toString()
 {
     $parent_string = parent::__toString();
     $output = array();
     $output[] = $parent_string;
     if (isset($this->color)) {
         $output[] = sprintf("<color>%s</color>", $this->color);
     }
     if (isset($this->drawOrder)) {
         $output[] = sprintf("<drawOrder>%s</drawOrder>", $this->drawOrder);
     }
     if (isset($this->icon)) {
         $output[] = $this->icon->__toString();
     }
     return implode("\n", $output);
 }