-
-
Notifications
You must be signed in to change notification settings - Fork 854
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
ShapeShource#onPress e.nativeEvent is now deprecated, use e.features #700
ShapeShource#onPress e.nativeEvent is now deprecated, use e.features #700
Conversation
a9ab7c5
to
8987a2f
Compare
8987a2f
to
ce59722
Compare
ce59722
to
8022a1c
Compare
8022a1c
to
00a1250
Compare
Thanks @mfazekas for improving this function ! |
@tanguy64 the We could allow ways to return cluster details - for childrenOfCluster |
Ok that's very clear thank you. Indeed I have clustering enabled. And childrenOfCluster or leavesOfCluster are exactly what I am looking for zooming to the bounds of a clustered point children onPress and getting the children data. |
@mfazekas I think typing is broken here after this change |
@bboure pls submit a PR, typing is lagging behind the library, sorry |
Currently in ShapeSource/VectorSource onPress returns a single feature, we also cannot get location of press.
With the new version the above works, but deprecated, and you can now access all the features that were at the point of click via:
features
(the oldpayload
only contained the first feature) There is also additional coordinates and point describing the location of the pressFixes: #611