Skip to content

Marker events are not propagated to mapΒ #4882

Closed
@dnsBlah

Description

As the title mentioned, I made some markers, and drawing polylines in between.

I did put a click function in for zoom on click:

    map.on("click", function(e) {
        map.setView(e.latlng, map.getZoom() + 2);
    });

This is not being triggered when I click on a marker, but it does when clicking on polylines.
(I have popup on polylines, and would rather not to have it zooming when I click the polyline)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions