One Logo Pool Ball
_MapKit_SwiftUI · IOS API REFERENCE

MapStyle

struct · iOS 17.0+ · SDK 27.1

struct MapStyle

A Style that can be applied to a Map.

Members (6)

static · iOS 17.0+

hybrid

TypeScript
static hybridElevationPointsOfInterestShowsTraffic(elevation?: MapStyle_Elevation, pointsOfInterest?: PointOfInterestCategories, showsTraffic?: boolean): MapStyle
Swift declaration
static func hybrid(elevation: MapStyle.Elevation = .automatic, pointsOfInterest: PointOfInterestCategories = .all, showsTraffic: Bool = false) -> MapStyle

Hybrid style, such as one using satellite imagery of an area with road and road name information layers on top. - Parameters: - elevation: How elevation should be rendered. - pointsOfInterest: Point of interest categories shown on the map - showsTraffic: Controls whether the map displays traffic conditions

get · iOS 17.0+

hybrid

TypeScript
static get hybrid(): MapStyle
Swift declaration
static var hybrid: MapStyle { get }

Hybrid style, such as one using satellite imagery of an area with road and road name information layers on top.

static · iOS 17.0+

imagery

TypeScript
static imageryElevation(elevation?: MapStyle_Elevation): MapStyle
Swift declaration
static func imagery(elevation: MapStyle.Elevation = .automatic) -> MapStyle

Imagery-based style, such as one using satellite imagery. - Parameters: - elevation: How elevation should be rendered.

get · iOS 17.0+

imagery

TypeScript
static get imagery(): MapStyle
Swift declaration
static var imagery: MapStyle { get }

Imagery-based style, such as one using satellite imagery.

static · iOS 17.0+

standard

TypeScript
static standardElevationEmphasisPointsOfInterestShowsTraffic(elevation?: MapStyle_Elevation, emphasis?: MapStyle_StandardEmphasis, pointsOfInterest?: PointOfInterestCategories, showsTraffic?: boolean): MapStyle
Swift declaration
static func standard(elevation: MapStyle.Elevation = .automatic, emphasis: MapStyle.StandardEmphasis = .automatic, pointsOfInterest: PointOfInterestCategories = .all, showsTraffic: Bool = false) -> MapStyle

Standard style. - Parameters: - elevation: How elevation should be rendered. - emphasis: Controls how the framework emphasizes map features - pointsOfInterest: Point of interest categories shown on the map - showsTraffic: Controls whether the map displays traffic conditions

get · iOS 17.0+

standard

TypeScript
static get standard(): MapStyle
Swift declaration
static var standard: MapStyle { get }

Standard style.

Skipped declarations

No declarations were skipped in this snapshot.

All _MapKit_SwiftUI types →