-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not make the source type of a vector layer generic #15831
Conversation
📦 Preview the website for this branch here: https://deploy-preview-15831--ol-site.netlify.app/. |
Added another commit to also fix the mentioned issue with Cluster sources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ahocevar
I think there are now some broken internal typings in
Output of the build of my application: All errors are in openlayers:
|
@MarcelCoding Have you tried v9.2.2? |
Yeah, sorry for not explicitly mentioned it, take a look at my node modules path. Also this worked before I've updated. |
@MarcelCoding I cannot reproduce. Can you share a reproduction repository, or at least your tsconfig.json? |
Sorry, I just tested where it went wrong, And it started going wrong with v9.2.0. v9.1.0 is the last version which is working. I'll create an Issue, as it is unrelated to this PR. |
Fixes #15830.
This pull request changes the TypeScript signature of
ol/layer/Vector
,ol/layer/VectorImage
andol/layer/Heatmap
to accept the feature type instead of the source type as type parameter. This change makes sense because the previous signature was redundant, and did not work in some cases (see #15830).Example: Previously, we had:
And now we have: