example code: https://plnkr.co/edit/baMA0hrGq5XgG8Tb
I have a polygon that gets highlighted on mouseover. inside the polygon there is an icon and a popup bind to it. The problem is: when I hover over the popup, the polygon's mouseout is triggered, thus its not highlighted although the cursor is still inside the polygon, I don't want that to happen
What I tried:
- using the popup
offsetmethod (documented here: https://leafletjs.com/reference.html#divoverlay) to control overlay behavior, without success. - using a specific
cssstyling to the popup to prevent that (by changing thez-index), again without success (if I setvisibility: hiddenthe popup will be hidden and it wont block the polygonmouseoverevent) - I don't prefer this solution but I thought to trigger the
mouseoverevent (over the polygon) whenever there ismouseoverevent (over the popup)
Is there a way to achieve that without using a plugin?