We are developers of a golf app designed to assist golfers on the course. A key feature of our app is displaying a map of each hole, and we are currently transitioning to using MapKit and camera functionalities for this purpose. However, we are encountering issues with the downloading of map tiles when using the default satellite imagery.
We have tried several approaches to diagnose the issue:
We have tried several things to diagnose the issue:
- We implemented the mapViewDidFailLoadingMap delegate method. But it is inconsistent, sometimes triggering offline errors even when map tiles are cached.
- We implemented, the mapViewDidFinishRenderingMap method, but it always returns false when offline or you won't get the callback. Which doesn't let us know that rendering tiles has failed.
We would appreciate your guidance on the following specific questions:
- Does MapKit provide a way to confirm if a map tile has fully loaded?
- Is there a method to detect if a portion of the map hasn't loaded or if a tile request has failed?
- Can we determine whether a map tile is cached, and if so, how long it will remain cached, similar to Cache-Control HTTP headers?
- Is there a way to trigger the preloading of map tiles when we know the user has a good internet connection?
Please see the sample project for steps to reproduce the issue.
Thank you for any assistance!