You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Move your mouse over the cluster to trigger the coverage polygon to be shown. Remove the MarkerClusterGroup from the map and add it again(as a way to redraw the map state), in the example this happens every 100ms.
Expected Result: no ghost polygons
Result: an unbound polygon is displayed on the map forever
Reason: the onRemove method for MarkerClusterGroup unbinds events first and only then it is removed. Thus map.off('layerremove', this._hideCoverageOnRemove, this); is called before the 'layerremove' event is fired.
Fix: the fix is in the javascript example, put _hideCoverage() call in the onRemove method for a MarkerClusterGroup
The text was updated successfully, but these errors were encountered:
Can I further help a project by making a standard jsFiddle template so anyone who wants to describe/reproduce a certain bug or misbehaviour can use it ?
Example: http://jsfiddle.net/fdgqS/3/
Description: Move your mouse over the cluster to trigger the coverage polygon to be shown. Remove the MarkerClusterGroup from the map and add it again(as a way to redraw the map state), in the example this happens every 100ms.
Expected Result: no ghost polygons
Result: an unbound polygon is displayed on the map forever
Reason: the onRemove method for MarkerClusterGroup unbinds events first and only then it is removed. Thus map.off('layerremove', this._hideCoverageOnRemove, this); is called before the 'layerremove' event is fired.
Fix: the fix is in the javascript example, put _hideCoverage() call in the onRemove method for a MarkerClusterGroup
The text was updated successfully, but these errors were encountered: