Closed gerchicov-bp closed 3 years ago
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.
Yes, you can request new annotations and use the CKClusterManager.addAnnotations(_:)
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?