I need to keep tracking user's current visible region in map view, based on user's current visible region, I will make a async web service call. So I make the async web service call in the mapView(_:regionDidChangeAnimated:) function. However this function will be called several times at the beginning when the Mapkit try to locate user's current location. So this is what I want to achieve:
- When the map view is zooming into user's current location with a span: MKCoordinateSpan(latitudeDelta: 0.25, longitudeDelta: 0.25) at the beginning, I don't want to make any async web service call.
- After the map view complete locating user's current location (after completing the zoom in), I start tracking user's current visible region. When the user move around the map, I could make the web service call.
So, is there any method, I can avoid web service call when the map view is in zooming period?