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
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:212I correct move handler should be this.redraw and not this._render