Skip to content

Add drawing markers to custom pane #1058

@ma7moudat

Description

@ma7moudat

Skipped the issue template, since this is more of a feature request 🙏

This is similar to #360, but in my case I want the markers that are generated while drawing, which are created in the following lines (as far as I could see):

this._mouseMarker = L.marker(this._map.getCenter(), {

potentialMarker = new L.Marker(potentialLatLng, {

var marker = new L.Marker(latlng, {

I want these to be created in a custom pane instead of the marker-pane. The same also applies for the drawing guides and the handling of mouse events.

I'm aware that, in this case, some map elements might have a higher z-index and block the drawing process. This is a desired effect.

Is this possible to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions