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
So I've worked with this framework for swift with MKMapView, and I'm using a system where I show the number of annotations inside a cluster. The issue I've found is that if we have 2 nearby clusters and the algorithm recalculates such that one annotation moves from one cluster to the other, no animation will occur and the change is instant.
This issue isn't really apparent in the examples provided because it doesn't show how many annotations are inside a cluster, but if you use this code you can see it:
Find a location and zoom in slightly or zoom out slightly and you will notice that some clusters change the amount of annotations even though nothing goes in or out of them.
The text was updated successfully, but these errors were encountered:
[oldCluster containsAnnotation:newCluster.firstAnnotation] for a collapse.
[newCluster containsAnnotation:oldCluster.firstAnnotation] for an aggregation.
These conditions are simple in order to have good animation performances (even if it could be better). I could think of a more sophisticated conditions, like using a cluster bounds or an array intersection.
You don't need to replace it entirely, just give the option to choose between the two, like with the algorithms. I'm willing to sacrifice performance in certain scenarios.
Hello !
So I've worked with this framework for swift with MKMapView, and I'm using a system where I show the number of annotations inside a cluster. The issue I've found is that if we have 2 nearby clusters and the algorithm recalculates such that one annotation moves from one cluster to the other, no animation will occur and the change is instant.
This issue isn't really apparent in the examples provided because it doesn't show how many annotations are inside a cluster, but if you use this code you can see it:
Find a location and zoom in slightly or zoom out slightly and you will notice that some clusters change the amount of annotations even though nothing goes in or out of them.
The text was updated successfully, but these errors were encountered: