編集

次の方法で共有


MKOverlayView.CanDrawMapRect(MKMapRect, nfloat) Method

Definition

Returns true if the MKOverlayView has the data it needs to draw properly.

[Foundation.Export("canDrawMapRect:zoomScale:")]
public virtual bool CanDrawMapRect (MapKit.MKMapRect mapRect, nfloat zoomScale);
abstract member CanDrawMapRect : MapKit.MKMapRect * nfloat -> bool
override this.CanDrawMapRect : MapKit.MKMapRect * nfloat -> bool

Parameters

mapRect
MKMapRect

A MKMapRect representing the area to potentially be drawn.

zoomScale
nfloat

The current scale factor.

Returns

The default value is true.

Attributes

Remarks

Application developers can override this method so that it returns false until the MKOverlayView has all the data it needs in order to render properly. For instance, a weather overlay might return false until it has downloaded meteorological data.

If application developers return false from this method, they must subsequently call SetNeedsDisplay(MKMapRect, nfloat) when they have received the data and performed the calculations needed to make this function return true.

Applies to