Package apple.mapkit.protocol
Interface MKOverlay
-
- All Superinterfaces:
MKAnnotation
- All Known Implementing Classes:
MKCircle,MKGeodesicPolyline,MKMultiPolygon,MKMultiPolyline,MKPolygon,MKPolyline,MKTileOverlay
public interface MKOverlay extends MKAnnotation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MKMapRectboundingMapRect()boundingMapRect should be the smallest rectangle that completely contains the overlay.default booleancanReplaceMapContent()If this method is implemented and returns YES, MKMapView may use it as a hint to skip loading or drawing the built in map content in the area covered by this overlay.CLLocationCoordinate2Dcoordinate()From MKAnnotation, for areas this should return the centroid of the area.default booleanintersectsMapRect(MKMapRect mapRect)Implement intersectsMapRect to provide more precise control over when the view for the overlay should be shown.-
Methods inherited from interface apple.mapkit.protocol.MKAnnotation
setCoordinate, subtitle, title
-
-
-
-
Method Detail
-
boundingMapRect
MKMapRect boundingMapRect()
boundingMapRect should be the smallest rectangle that completely contains the overlay. For overlays that span the 180th meridian, boundingMapRect should have either a negative MinX or a MaxX that is greater than MKMapSizeWorld.width.
-
canReplaceMapContent
default boolean canReplaceMapContent()
If this method is implemented and returns YES, MKMapView may use it as a hint to skip loading or drawing the built in map content in the area covered by this overlay.
-
coordinate
CLLocationCoordinate2D coordinate()
From MKAnnotation, for areas this should return the centroid of the area.- Specified by:
coordinatein interfaceMKAnnotation
-
intersectsMapRect
default boolean intersectsMapRect(MKMapRect mapRect)
Implement intersectsMapRect to provide more precise control over when the view for the overlay should be shown. If omitted, MKMapRectIntersectsRect([overlay boundingRect], mapRect) will be used instead.
-
-