Skip to content

Marker's icon is not always present #172

Closed

Description

In this bit of code: https://github.com/Leaflet/Leaflet.draw/blob/master/src/edit/handler/EditToolbar.Edit.js#L135-L153 Leaflet.draw makes the assumption that the L.Marker layers in the map will always have a _icon private member. This assumption is broken in some cases, including (I think) when markers are offscreen or added to the map without an icon specified. In this case, a TypeError is thrown and not caught.

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

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