MKOverlayView MKOverlayView Class

Definition

The visual representation of a MKOverlay. MKOverlayRenderer should be used instead of this class in apps targeting iOS 7 and later.

[Foundation.Register("MKOverlayView", true)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'MKOverlayRenderer' instead.")]
public class MKOverlayView
type MKOverlayView = class
Inheritance
MKOverlayViewMKOverlayView
Derived
Attributes

Remarks

Application developers targeting iOS 7 and later should prefer to use MKOverlayRenderer. That class has higher performance and places overlays beneath labels.

Constructors

MKOverlayView() MKOverlayView()

Default constructor that initializes a new instance of this class with no parameters.

MKOverlayView(CGRect) MKOverlayView(CGRect)

Initializes the MKOverlayView with the specified frame.

MKOverlayView(NSCoder) MKOverlayView(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

MKOverlayView(NSObjectFlag) MKOverlayView(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

MKOverlayView(IMKOverlay) MKOverlayView(IMKOverlay)
MKOverlayView(IntPtr) MKOverlayView(IntPtr)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Properties

Appearance Appearance

Strongly-typed property that returns the UIAppearance class for this class.

ClassHandle ClassHandle

The handle for this class.

Overlay Overlay

The MKOverlay associated with this MKOverlayView.

Methods

AppearanceWhenContainedIn(Type[]) AppearanceWhenContainedIn(Type[])

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

CanDrawMapRect(MKMapRect, nfloat) CanDrawMapRect(MKMapRect, nfloat)

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

DrawMapRect(MKMapRect, nfloat, CGContext) DrawMapRect(MKMapRect, nfloat, CGContext)
GetAppearance(UITraitCollection, Type[]) GetAppearance(UITraitCollection, Type[])
GetAppearance(UITraitCollection) GetAppearance(UITraitCollection)
GetAppearance<T>() GetAppearance<T>()

Obtains the appearance proxy MKOverlayView.MKOverlayViewAppearance for the subclass of MKOverlayView.

GetAppearance<T>(UITraitCollection) GetAppearance<T>(UITraitCollection)

Obtains the appearance proxy MKOverlayView.MKOverlayViewAppearance for the subclass of MKOverlayView.

GetAppearance<T>(UITraitCollection, Type[]) GetAppearance<T>(UITraitCollection, Type[])

Obtains the appearance proxy MKOverlayView.MKOverlayViewAppearance for the subclass of MKOverlayView that has the specified trait collection when the view is hosted in the specified hierarchy.

MapPointForPoint(CGPoint) MapPointForPoint(CGPoint)

The MKMapPoint corresponding to the specified point.

MapRectForRect(CGRect) MapRectForRect(CGRect)

The MKMapRect corresponding to the specified rect.

MKRoadWidthAtZoomScale(nfloat) MKRoadWidthAtZoomScale(nfloat)

Application developers should not use this function in iOS 6 or later.

PointForMapPoint(MKMapPoint) PointForMapPoint(MKMapPoint)

Returns a PointF corresponding to the mapPoint.

RectForMapRect(MKMapRect) RectForMapRect(MKMapRect)

Returns a RectangleF in the MKOverlayView's coordinate system corresponding to the mapRect.

SetNeedsDisplay(MKMapRect) SetNeedsDisplay(MKMapRect)

Invalidates the view in the specified mapRect in all zoom scales.

SetNeedsDisplay(MKMapRect, nfloat) SetNeedsDisplay(MKMapRect, nfloat)

Invalidates the view in the specified mapRect at the specified zoomScale.

Applies to

See also