New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to specify Marker's shadow pane #6447
Comments
My suggestion is to add a |
Add shadowPane option to Marker, so developers can specify pane for marker's shadow as suggested in Leaflet#6447
Hi, is this issue still open, and if so mind if I take a look and try to fix it? |
Hi Leon, Feel free to explore other issues under good first issue label |
* Add shadowPane option to Marker Add shadowPane option to Marker, so developers can specify pane for marker's shadow as suggested in #6447 * Update Marker.js
Closed by #6460 |
* Add shadowPane option to Marker Add shadowPane option to Marker, so developers can specify pane for marker's shadow as suggested in Leaflet#6447 * Update Marker.js
Issue description extracted from #6312
How to reproduce
Environment
Steps
Pane A
) with z-index 300.Marker
and specify that it should be added toPane A
.Pane B
) with z-index 301.Rectangle
with coordinates/dimensions that overlap the Marker, and specify that the rectangle should be added toPane B
.What behavior I'm expecting and which behavior I'm seeing
Expected: the marker+shadow in
Pane A
to be hidden by the rectangle inPane B
, which has a higher z-index.Actual: the marker's shadow in
Pane A
is still visible. This is happening because Marker.js:254 is hard-coded to alway add a marker's shadow icon to theshadowPane
.Minimal example reproducing the issue
Example: https://plnkr.co/edit/PwS1sNmAfqAXIydn1lFW?p=preview
The text was updated successfully, but these errors were encountered: