/** * @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; }
/** * @inheritdoc */ public function toGeoArray() { $result = parent::toGeoArray(); $result['features'] = $this->featuresToGeoJson(); return $result; }