Replies: 1 comment
-
The answer for me was to add a tag with a unifying id in it for features and then using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a setup where I'm drawing vector tiles that I'm cutting via an MVTLayer, and it's working very well. The features in the tiles have an id on them but since I can't put multidimensional data in a single feature, I'm reduced to storing the "true" id of a feature as a tag, so e.g. I might have a set of points, some polylines and some polygons that are really one logical "Feature". To disambiguate let's call that id the "entity" id.
I can enable picking and get the entity id off of whatever feature the mouse was over. But, then I'd like to highlight all the features that have that entity id in their tags, so I can highlight the entire logical entity. I can do this by simply triggering getLineColor and getFillColor on that value changing, but it's not as snappy as I'd like.
Does anyone have any tips on how I can update basically just the current highlighted features and the newly matching features? I'm working in vanilla JS.
Beta Was this translation helpful? Give feedback.
All reactions