Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanishing annotations #24

Open
jpmhouston opened this issue Aug 23, 2015 · 5 comments
Open

Vanishing annotations #24

jpmhouston opened this issue Aug 23, 2015 · 5 comments

Comments

@jpmhouston
Copy link

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.

@ashare80
Copy link
Owner

@jpmhouston If you have something mocked up that easily reproduces the problem I can take a look otherwise it is pretty hard to tell. Sounds like annotations are getting marked as off screen that aren't actually off screen.

@jpmhouston
Copy link
Author

don't have a mockup, but i can send you the whole app i was working on for my client :-O. i can disable the delayed needsRefresh call & tell you where to scroll to on the map to find test data that should show the problem

@ashare80
Copy link
Owner

ashare80 commented Sep 1, 2015

Sure that works I'll take a look.

@bsoyluoglu
Copy link

Having the same issue @jpmhouston work around works like a charm.

@vjerryv
Copy link

vjerryv commented Apr 23, 2016

i got the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants