Describe the bug
The type on features prop of OlSourceVector is wrong (or incomplete). Currently it accepts array / collection of Geometry but it should be Feature or even FeatureLike. This forces us to add nasty hacks like const realFeatures = computed(() => features.value as unknown as Geometry[]); and passing that instead.
Affected version(s)
Pretty sure all version up until now.
To Reproduce
N/A
Expected behavior
Above.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
I can create a pull request with the change but I'm not sure if it will become a breaking change or not. Would like to know if it was an oversight or an intentional implementation.
Describe the bug
The type on
featuresprop ofOlSourceVectoris wrong (or incomplete). Currently it accepts array / collection ofGeometrybut it should beFeatureor evenFeatureLike. This forces us to add nasty hacks likeconst realFeatures = computed(() => features.value as unknown as Geometry[]);and passing that instead.Affected version(s)
Pretty sure all version up until now.
To Reproduce
N/A
Expected behavior
Above.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
I can create a pull request with the change but I'm not sure if it will become a breaking change or not. Would like to know if it was an oversight or an intentional implementation.