I could not find any relevant information in the spec: http://geojson.org/geojson-spec.html
Is it allowed to have a properties key in a FeatureCollection? Or is it only possible for Features?
If it's possible, how can I access the properties within openlayers?
Thanks in advance.
The specification does not forbid it explicitly, but feature collections do not have properties. GeoJSON spec only mentions the following keys for FeatureCollection:
type - must be `FeatureCollectionfeatures - array of feauresbbox - bounding box of the whole feature collectionAs I see from OpenLayers code, properties is only processed for feature instances, not for the feature collection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With