Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function toGeoArray()
 {
     $result = parent::toGeoArray();
     $properties = $this->getProperties();
     if (empty($properties)) {
         $properties = new \stdClass();
     }
     $result['geometry'] = $this->geometryToGeoJson();
     $result['properties'] = $properties;
     $featureId = $this->getFeatureId();
     if (!is_null($featureId)) {
         $result['id'] = $featureId;
     }
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function toGeoArray()
 {
     $result = parent::toGeoArray();
     $result['features'] = $this->featuresToGeoJson();
     return $result;
 }