coordinate
TypeScriptget coordinate(): { latitude: number; longitude: number }Swift declarationvar coordinate: CLLocationCoordinate2D { get }The coordinate of the map feature.
struct · iOS 17.0+ · SDK 27.1
struct MapFeatureRepresents a tappable map feature. Tappable map features can include single points of interest, such as hotels, restaurants, etc., a territory, or a physcal map feature.
get coordinate(): { latitude: number; longitude: number }Swift declarationvar coordinate: CLLocationCoordinate2D { get }The coordinate of the map feature.
get backgroundColor(): (_SwiftUICore_Color) | nullSwift declarationvar backgroundColor: Color? { get }The background color associated with the map feature if it has one, otherwise nil.
get pointOfInterestCategory(): (_MapKit_MKPointOfInterestCategory) | nullSwift declarationvar pointOfInterestCategory: MKPointOfInterestCategory? { get }The point of interest category of the map feature if it has one, otherwise nil.
get kind(): MapFeature_FeatureKindSwift declarationvar kind: MapFeature.FeatureKind { get }The kind of feature represented by the map feature.
get image(): (_SwiftUICore_Image) | nullSwift declarationvar image: Image? { get }The image associated with the map feature if it has one, otherwise nil.
get title(): (string) | nullSwift declarationvar title: String? { get }The title of the map feature if it has one, otherwise nil.
No declarations were skipped in this snapshot.