Skip to content
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

Rotation modifies z-index on each zoom #25

Open
serjflint opened this issue Dec 6, 2019 · 2 comments
Open

Rotation modifies z-index on each zoom #25

serjflint opened this issue Dec 6, 2019 · 2 comments

Comments

@serjflint
Copy link

serjflint commented Dec 6, 2019

Hello!

I am using leaflet-django with leaflet 1.6.0.

I have polylines and many markers on my map. Some markers should be visible all the time and I used z-index of markerPane for that. But after adding RotatedMarker I have styles like following:

element.style {
    margin-left: -16px;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    transform: rotate(102deg);
    z-index: 324;
    transform-origin: center center;
}

And z-index forcibly changes on every zoom or update to some random value.
I want to have some control over z-index.

@serjflint
Copy link
Author

For now I use CSS-style for all markers with !important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@serjflint and others