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
Also you had issue with comparing sets and operations on them. Each time you create a new instance of FBAnnotationCluster, therefore a comparison of references always returns false.
To fix this you need to add to FBAnnotationCluster:
public override bool Equals(object obj)
{
return obj.GetHashCode() == GetHashCode();
}
public override int GetHashCode()
{
var formatted = $"{Coordinate.Latitude:F5} {Coordinate.Longitude:F5}";
return formatted.GetHashCode();
}
It is easy to spot this bug when you add animations mentioned above :)
Thank you for this code :) Saved me a lot of time!
I see it's also based on: https://thoughtbot.com/blog/how-to-handle-large-amounts-of-data-on-maps
I implemented also code for animation (from this article):
The text was updated successfully, but these errors were encountered: