Timeline for Convert FeatureLike type into GeoJSON feature?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2022 at 19:28 | vote | accept | Beginner | ||
Dec 14, 2022 at 16:32 | answer | added | Mike | timeline score: 3 | |
Dec 14, 2022 at 14:59 | comment | added | Beginner | Thank you lot! Post it as answer, I will accept | |
Dec 14, 2022 at 14:57 | comment | added | Mike |
The GeoJSON writeFeatureObject method only takes a Feature. If you had a RenderFeature you would need to convert it to a Feature const res = writer.writeFeatureObject(feature instanceof RenderFeature ? toFeature(feature) : feature); openlayers.org/en/latest/apidoc/…
|
|
Dec 14, 2022 at 14:15 | history | edited | nmtoken | CC BY-SA 4.0 |
edited body; edited tags; edited title
|
Dec 14, 2022 at 14:11 | history | asked | Beginner | CC BY-SA 4.0 |