Skip to content
\n

Could you please advise if there is a more elegant and efficient way to get all WebGLLayer features at a click point that can solve this problem?

\n

Thank you for your attention, with great respect for the work of the developers and the community,

\n

Greg Baranov

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

To get a more accurate array of features at a certain coordinate you might want to use the method of the source you're using, e.g.: https://openlayers.org/en/latest/apidoc/module-ol_source_Vector-VectorSource.html#getFeaturesInExtent

","upvoteCount":1,"url":"https://github.com/openlayers/openlayers/discussions/16289#discussioncomment-10940291"}}}

Issue with retrieving multiple overlapping features in WebGLVectorLayer #16289

Answered by jahow
GraNaTic asked this question in Q&A
Discussion options

You must be logged in to vote

To get a more accurate array of features at a certain coordinate you might want to use the method of the source you're using, e.g.: https://openlayers.org/en/latest/apidoc/module-ol_source_Vector-VectorSource.html#getFeaturesInExtent

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GraNaTic
Comment options

Answer selected by GraNaTic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants