MKOverlayView.CanDrawMapRect(MKMapRect, nfloat) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
.