I've got an adaptation of Crosslet that sets a few map layers on top of one another:
- Layer 1: Satellite Imagery tiles (In leaflet-tile-pane)
- Layer 2: D3-based vector Polygons (In leaflet-overlay-pane)
- Layer 3: Labels/Roads reference tiles (In leaflet-top-pane, added with this method)
The problem with this is that the hover tooltips - bound to mouseover of the D3 polygons - are showing up underneath the reference tiles:
I've tried changing the z-index of the hover tooltip element, but the elements are sort of trapped within their respective panes. How can I bind the D3-generated popups to the leaflet popup pane?
Thanks!
z-index
in SVG -- the elements are rendered in the order in which they appear. So if you want an element to appear on top, you have to make sure that it comes last in the DOM. – Lars Kotthoff