Returns a Boolean value indicating whether the overlay view is ready to draw its content.
Deprecated
Use an MKOverlay
object instead.
SDKs
- iOS 4.0–7.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- Map
Kit
Declaration
- (BOOL)canDrawMapRect:(MKMap Rect)mapRect zoomScale:(MKZoom Scale)zoomScale;
Parameters
mapRect
The map rectangle that needs to be updated.
zoomScale
The current scale factor applied to the map.
Return Value
YES
if this view is ready to draw its contents or NO
if it is not.
Discussion
Overlay views can override this method in situations where they may depend on the availability of other information to draw their contents. For example, an overlay view showing traffic information might want to delay drawing until it has all of the traffic data it needs. In such a case, it can return NO
from this method to indicate that it is not ready.
If you return NO
from this method, your application is responsible for calling the set
method when the overlay view subsequently becomes ready to draw its contents.
The default implementation of this method returns YES
.