Exemple #1
0
 public function toExtGeoJSON()
 {
     $json_data = parent::toExtGeoJSON();
     if (isset($this->geometry)) {
         $json_data = array_merge($json_data, array('type' => 'Feature', 'geometry' => $this->geometry->toJSON()));
     }
     return $json_data;
 }