Skip to content

move listener is not properly removed when layer is removed from map #25

@ventralnet

Description

@ventralnet

In the onRemove method an attempt is made to remove all the map listeners that are setup in the onAdd method.

It looks like the wrong handler function is passed in for turning off the move event. Which causes this error in the console when zooming or panning

Uncaught TypeError: Cannot read property 'getPanes' of null leaflet_canvas_layer.js:212

I correct move handler should be this.redraw and not this._render

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