MKOverlayPathView MKOverlayPathView Class

Definition

A MKOverlayView whose visual reprepresentation is a CGPath. Developers targeting iOS 7 and later should instead use MKOverlayPathRenderer.

[Foundation.Register("MKOverlayPathView", true)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'MKOverlayPathRenderer' instead.")]
public class MKOverlayPathView : MapKit.MKOverlayView
type MKOverlayPathView = class
    inherit MKOverlayView
Inheritance
MKOverlayPathViewMKOverlayPathView
Derived
Attributes

Remarks

Developers targeting iOS 7 and later should instead use MKOverlayPathRenderer.

Constructors

MKOverlayPathView() MKOverlayPathView()

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

MKOverlayPathView(CGRect) MKOverlayPathView(CGRect)

Initializes the MKOverlayPathView with the specified frame.

MKOverlayPathView(IMKOverlay) MKOverlayPathView(IMKOverlay)

Creates a new MKOverlayPathView from the specified overlay.

MKOverlayPathView(IntPtr) MKOverlayPathView(IntPtr)

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

MKOverlayPathView(NSCoder) MKOverlayPathView(NSCoder)

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

MKOverlayPathView(NSObjectFlag) MKOverlayPathView(NSObjectFlag)

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

Properties

Appearance Appearance

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

ClassHandle ClassHandle

The handle for this class.

FillColor FillColor
Linecap Linecap
LineDashPattern LineDashPattern
LineDashPhase LineDashPhase
LineJoin LineJoin
LineWidth LineWidth
MiterLimit MiterLimit
Overlay Overlay

The MKOverlay associated with this MKOverlayView.

(Inherited from MKOverlayView)
Path Path
StrokeColor StrokeColor

Methods

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

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

ApplyFillProperties(CGContext, nfloat) ApplyFillProperties(CGContext, nfloat)
ApplyStrokeProperties(CGContext, nfloat) ApplyStrokeProperties(CGContext, nfloat)
CanDrawMapRect(MKMapRect, nfloat) CanDrawMapRect(MKMapRect, nfloat)

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

(Inherited from MKOverlayView)
CreatePath() CreatePath()
DrawMapRect(MKMapRect, nfloat, CGContext) DrawMapRect(MKMapRect, nfloat, CGContext) Inherited from MKOverlayView
FillPath(CGPath, CGContext) FillPath(CGPath, CGContext)
GetAppearance(UITraitCollection) GetAppearance(UITraitCollection)
GetAppearance(UITraitCollection, Type[]) GetAppearance(UITraitCollection, Type[])
GetAppearance<T>() GetAppearance<T>()

Obtains the appearance proxy MKOverlayPathView.MKOverlayPathViewAppearance for the subclass of MKOverlayPathView.

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

Obtains the appearance proxy MKOverlayPathView.MKOverlayPathViewAppearance for the subclass of MKOverlayPathView.

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

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

InvalidatePath() InvalidatePath()
MapPointForPoint(CGPoint) MapPointForPoint(CGPoint)

The MKMapPoint corresponding to the specified point.

(Inherited from MKOverlayView)
MapRectForRect(CGRect) MapRectForRect(CGRect)

The MKMapRect corresponding to the specified rect.

(Inherited from MKOverlayView)
PointForMapPoint(MKMapPoint) PointForMapPoint(MKMapPoint)

Returns a PointF corresponding to the mapPoint.

(Inherited from MKOverlayView)
RectForMapRect(MKMapRect) RectForMapRect(MKMapRect)

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

(Inherited from MKOverlayView)
SetNeedsDisplay(MKMapRect) SetNeedsDisplay(MKMapRect)

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

(Inherited from MKOverlayView)
SetNeedsDisplay(MKMapRect, nfloat) SetNeedsDisplay(MKMapRect, nfloat)

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

(Inherited from MKOverlayView)
StrokePath(CGPath, CGContext) StrokePath(CGPath, CGContext)

Applies to

See also