Conversation
martinRenou
left a comment
There was a problem hiding this comment.
Thanks for contributing!!
It would be great to add an example of this in the examples folder
| let my_iconFeature = new Feature({ | ||
| geometry: new Point(model_data['geom']), | ||
| name: 'SPI', | ||
| population: 4000, | ||
| }); |
There was a problem hiding this comment.
Do I understand correctly it supports creating only a single feature?
I'd assume this.model.get('data') would be a feature collection.
There was a problem hiding this comment.
I want to replicate the Point data type as shown in Icon Symbolizer . So I called the data parameter 'geom' which is a Point(), not a GeoJSON FeatureCollection.
That is, I want to get away from a GeoJSON FeatureCollection, otherwise a single point could have been done with a GeoJSON element (FeatureCollection) with one Feature. I think it would be difficult to update or delete one icon without changing the entire FeatureCollection.
If there is a second version, there could be multiple Points supplied in a list. But for now, I wanted to get just a single Point element published.
|
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Co-authored-by: martinRenou <martin.renou@gmail.com>
Vector data type added