auto highlight doesn't seem to work for MVT layers with more than one instance of a shape that matches the uniquePropertyId #8950
-
I am guessing this may be by design as the property is called From what I can see the code behind the I have hacked together an example that roughly approximates this behaviour here https://codepen.io/Joe-Coulson/pen/VwOrRbp If you hover over the blue in the center of the image you'll see some highlighted content. You'll also see that there is a chunk missing from the center of the polygon that is not highlighted. This is caused by the presence (I believe) of the point within the same tile that has a matching Is there a simple way around this that anyone knows of or am I am going to make another solution? I know I can do a solution using I've attached a "beautiful" drawing to illustrate. Outer circle covers missing area inner circle is the culprit. Also hovering over the non-highlighted area still highlights the other items with matching Any suggestions on how to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Did you generate the MVT tiles yourself? The regions with identical ids should be represented by a single MultiPolygon feature, instead of several Polygon features. Every geometry originally from the same feature gets hightlighted together. |
Beta Was this translation helpful? Give feedback.
Did you generate the MVT tiles yourself? The regions with identical ids should be represented by a single MultiPolygon feature, instead of several Polygon features. Every geometry originally from the same feature gets hightlighted together.