SINTEF-9012 / PruneCluster

Fast and realtime marker clustering for Leaflet
MIT License
551 stars 131 forks source link

Fix possible npe #150

Closed peergynt closed 6 years ago

peergynt commented 7 years ago

Stash this._map because when removing a PruneClusterForLeaflet layer, the cluster 'onRemove' sets this._map to null (which causes an npe in the setTimeout() function callback if we had a spiderfied cluster).

fungiboletus commented 6 years ago

Thanks. It seems like a fair thing to do.