Skip to content

Rotation modifies z-index on each zoom #25

@serjflint

Description

@serjflint

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions