One Logo Pool Ball
_MapKit_SwiftUI · IOS API REFERENCE

MapFeature

struct · iOS 17.0+ · SDK 27.1

struct MapFeature

Represents 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.

Members (6)

get · iOS 17.0+

coordinate

TypeScript
get coordinate(): { latitude: number; longitude: number }
Swift declaration
var coordinate: CLLocationCoordinate2D { get }

The coordinate of the map feature.

get · iOS 17.0+

backgroundColor

TypeScript
get backgroundColor(): (_SwiftUICore_Color) | null
Swift declaration
var backgroundColor: Color? { get }

The background color associated with the map feature if it has one, otherwise nil.

get · iOS 17.0+

pointOfInterestCategory

TypeScript
get pointOfInterestCategory(): (_MapKit_MKPointOfInterestCategory) | null
Swift declaration
var pointOfInterestCategory: MKPointOfInterestCategory? { get }

The point of interest category of the map feature if it has one, otherwise nil.

get · iOS 17.0+

kind

TypeScript
get kind(): MapFeature_FeatureKind
Swift declaration
var kind: MapFeature.FeatureKind { get }

The kind of feature represented by the map feature.

get · iOS 17.0+

image

TypeScript
get image(): (_SwiftUICore_Image) | null
Swift declaration
var image: Image? { get }

The image associated with the map feature if it has one, otherwise nil.

get · iOS 17.0+

title

TypeScript
get title(): (string) | null
Swift declaration
var title: String? { get }

The title of the map feature if it has one, otherwise nil.

Skipped declarations

No declarations were skipped in this snapshot.

All _MapKit_SwiftUI types →