Closed devnesi closed 1 month ago
Let me exemplify:
Edit: i have looked on issues for a possible solution and couldn't fine none. I should also note that i do not work for big techs, heck, i'm a brazilian hobbyist. I can submit a PR if needed, but, for now i don't know where to start debugging this.
I was able to understand the behavior: actually, when I click on overlapping geometries, an event will be triggered for each geometry, and I was only handling the last one.
Thanks to #265, I was able to notice.
I am using RLayerVectorTile, passing the zIndex in the properties, but the rendering seems inverted, I believe. For example, if I have two layers, the first with index 1 and the second with index 2, and with two overlapping geometries, the one with index 2 should be on top of the one with index 1, but that's not happening. However, the click events are working as expected, respecting the higher index. Can you help me?