public interface MKOverlay extends MKAnnotation
| Modifier and Type | Method and Description |
|---|---|
MKMapRect |
boundingMapRect()
boundingMapRect should be the smallest rectangle that completely contains the overlay.
|
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.
|
CLLocationCoordinate2D |
coordinate()
From MKAnnotation, for areas this should return the centroid of the area.
|
default boolean |
intersectsMapRect(MKMapRect mapRect)
Implement intersectsMapRect to provide more precise control over when the view for the overlay should be shown.
|
setCoordinate, subtitle, titleMKMapRect boundingMapRect()
default boolean canReplaceMapContent()
CLLocationCoordinate2D coordinate()
coordinate in interface MKAnnotationdefault boolean intersectsMapRect(MKMapRect mapRect)