Carterman
Carterman

Reputation: 249

SwiftUI iOS 16 MapKit Globe

How do you configure the map to be zoomed out till globe is shown (swift)? I know you can set the mapType to hybridFlyover or satelliteFlyover however this solution doesn't look like apple's map, when fully zoomed out.

enter image description here

Upvotes: 6

Views: 1169

Answers (1)

FarouK
FarouK

Reputation: 880

Using SwiftUI on iOS 17:

.mapStyle(.imagery(elevation: .realistic))

or

.mapStyle(.hybrid(elevation: .realistic))

or

.mapStyle(.standard(elevation: .realistic))

note that .standard is not working, I think it's due to a bug, but it's working fine with other styles.

Upvotes: 5

Related Questions