-
-
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
how to select feature in WebGLVectorTileLayer #15255
Comments
The Vector Tile layer example https://openlayers.org/en/latest/examples/vector-tile-selection.html uses feature id, so a fix for #15251 would be needed before something similar can be attempted in WebGL. |
It seems this is still not possible. Although #15120 also updated WebGLVectorTileLayerRenderer to enable the VectorStyleRenderer to hit detect by default |
Hit detection on vector tile layers rendered using WebGL is currently being worked by @gberaudo on and a PR is likely to come in the near future. |
We look forward to hearing from you soon. @jahow |
So, my case is (not vector tiles, but a Vector Source with features)
It seems that internally some "math" is not yet correctly working. The value of "ref" variable has nothing related to real "ref" as keys in batch_ data stucture of WebGL renderer... (looks like it should be 1,2,3... N Source code is a bit of magic at the moment for me in WebGL renderer, so just inconsistency of calculated "ref" value is obvious, may be it helps. Codebase is OL 8.2.0 |
in version 9.0.0-dev.1701358929517 selection is working normally, seems. |
I created a layer as this:
now, how to select the feature in this layer?
please
thank you
The text was updated successfully, but these errors were encountered: