forked from applidium/ADClusterMapView
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
In my app I've seen instances where cluster annotations vanish incorrectly. I think it most often happens when moving some annotations off-screen, zooming in the map somewhat, then moving to make those annotations on-screen again. The correct annotations are present while panning the map, but sometimes disappear after the drag stops.
I tried debugging TSClusterOperation, but it made my head hurt.
I think I've found a work-around that seems make the annotations re-appear immediately after they've vanished. In mapView:regionDidChangeAnimated: I added:
// make extra call to layout clusters shortly after panning stops
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(RefreshClustersAfterPanDelay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.mapView needsRefresh];
});
I found it difficult to reproduce with a small number of annotations, somewhat easier when there's hundreds. I could potentially provide an app and a data set that might help.
Metadata
Metadata
Assignees
Labels
No labels