I am able to encounter a case where cluster.hashCode !== data._leafletOldHashCode , causing the icon to be reset, however, there is no discernible difference between the cached clusters except for the hash code.
Lines 397 - 404 of LeafletAdapter.js
// Update the icon if the population of his content has changed or if we need to reset the icon
if (resetIcons || cluster.population != data._leafletOldPopulation ||
cluster.hashCode !== data._leafletOldHashCode) {
var boundsCopy = {};
L.Util.extend(boundsCopy, cluster.bounds);
(<any>oldMarker)._leafletClusterBounds = boundsCopy;
oldMarker.setIcon(this.BuildLeafletClusterIcon(cluster));
}
I am able to encounter a case where
cluster.hashCode !== data._leafletOldHashCode
, causing the icon to be reset, however, there is no discernible difference between the cached clusters except for the hash code.Lines 397 - 404 of LeafletAdapter.js
I am using bower package version 2.1.0.