Share via


IMKOverlay Interface

Definition

Describes a map annotation that combines a location and a geometric shape.

[Foundation.Protocol(Name="MKOverlay", WrapperType=typeof(MapKit.MKOverlayWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Intersects", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(MapKit.MKMapRect) }, ReturnType=typeof(System.Boolean), Selector="intersectsMapRect:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="boundingMapRect", IsProperty=true, IsRequired=true, IsStatic=false, Name="BoundingMapRect", PropertyType=typeof(MapKit.MKMapRect), Selector="boundingMapRect")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canReplaceMapContent", IsProperty=true, IsRequired=false, IsStatic=false, Name="CanReplaceMapContent", PropertyType=typeof(System.Boolean), Selector="canReplaceMapContent")]
public interface IMKOverlay : IDisposable, MapKit.IMKAnnotation
[<Foundation.Protocol(Name="MKOverlay", WrapperType=typeof(MapKit.MKOverlayWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Intersects", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(MapKit.MKMapRect) }, ReturnType=typeof(System.Boolean), Selector="intersectsMapRect:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="boundingMapRect", IsProperty=true, IsRequired=true, IsStatic=false, Name="BoundingMapRect", PropertyType=typeof(MapKit.MKMapRect), Selector="boundingMapRect")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="canReplaceMapContent", IsProperty=true, IsRequired=false, IsStatic=false, Name="CanReplaceMapContent", PropertyType=typeof(System.Boolean), Selector="canReplaceMapContent")>]
type IMKOverlay = interface
    interface INativeObject
    interface IDisposable
    interface IMKAnnotation
Derived
Attributes
Implements

Remarks

MKOverlays allow the application developer to layer graphics above an MKMapView. The MKOverlay will automatically position, zoom, and redirect itself to the underlying MKMapView.

iOS provides several standard overlays:

ClassDescription
MKCircle A circular region
MKPolygon A closed polygonal area.
MKPolyline An area defined by points in which the first and final points are not automatically joined.

Applies to

See also