IMKOverlay Interface
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.
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:
| Class | Description |
|---|---|
| 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. |
Properties
| Name | Description |
|---|---|
| BoundingMapRect | |
| CanReplaceMapContent | |
| Coordinate | (Inherited from IMKAnnotation) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
| Subtitle | (Inherited from IMKAnnotation) |
| Title | (Inherited from IMKAnnotation) |
Methods
| Name | Description |
|---|---|
| Intersects(MKMapRect) | |
| SetCoordinate(CLLocationCoordinate2D) | (Inherited from IMKAnnotation) |