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

Working with annotations downloaded from server on region change? #83

Closed
gerchicov-bp opened this issue Dec 5, 2019 · 2 comments
Closed

Comments

@gerchicov-bp
Copy link

You are perfect! In the example you precreated a local list of points and don't change it. But what if you have an infinite number of points and server sends you a limited annotation info based on the selected region?

@alexsteinerde
Copy link

You can use the delegate method func mapView(_: MKMapView, regionDidChangeAnimated _: Bool) the protocol MKMapViewDelegate provides as I understand your question correctly. Inside of the function you can then make the network request to load more pins.

@maxep
Copy link
Contributor

maxep commented Jul 29, 2020

Yes, you can request new annotations and use the CKClusterManager.addAnnotations(_:)

@maxep maxep closed this as completed Jul 29, 2020
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

3 participants