Skip to content

Commit 115d807

Browse files
Update versions for v0.17.0-beta.1 release
GitOrigin-RevId: 16f0e365e0114e22bac14118690e449785a1335a
1 parent 3a2f2e1 commit 115d807

34 files changed

+615
-744
lines changed

CHANGELOG.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,6 @@ let options = MapInitOptions(mapStyle: .standardSatellite(lightPreset: .dusk))
1919
let mapView = MapView(frame: view.bounds, mapInitOptions: options)
2020
```
2121
* Add `StyleReloadPolicy` to control style reload behavior. Use `reloadPolicy: .always` parameter in `loadStyle()` methods or `MapStyle` initializers to always reload the style even when the URI or JSON matches the currently loaded style. Defaults to `.onlyIfChanged` for optimal performance.
22-
## 11.16.2 - 31 October, 2025
23-
24-
## 11.16.1 - 28 October, 2025
25-
26-
* Introduce the `LocationManager.locationDataModel` and make it possible to use location provider from MapboxCommon. Deprecate the `LocationManager.override*` methods.
27-
Now you can choose to use the location provider from MapboxCommon.
28-
```swift
29-
@_spi(Experimental) import MapboxMaps
30-
31-
// UIKit
32-
let initOptions = MapInitOptions(
33-
locationDataModel: .createCore()
34-
)
35-
let mapView = MapView(mapInitOptions: initOptions) // specify at init time (recommended)
36-
mapView.mapboxMap.locationDataModel = .createCore() // or, override it at runtime
37-
38-
39-
// SwiftUI
40-
struct MyView: View {
41-
@State var locationDataModel = LocationDataModel.createCore()
42-
var body: some View {
43-
Map(viewport: $viewport) {
44-
Puck2D(bearing: .heading)
45-
}
46-
.locationDataModel(locationDataModel)
47-
}
48-
}
49-
```
5022

5123
## 11.16.0 - 21 October, 2025
5224

LICENSE.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MapboxMaps.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |m|
22

33
m.name = 'MapboxMaps'
4-
m.version = '11.18.0-SNAPSHOT-11-05--04-29.git-73a9692'
4+
m.version = '11.17.0-beta.1'
55

66
m.summary = 'Vector map solution for iOS with full styling capabilities.'
77
m.description = 'Metal-based vector map solution for iOS with full styling capabilities.'
@@ -19,8 +19,8 @@ Pod::Spec.new do |m|
1919
m.source_files = 'Sources/MapboxMaps/**/*.{swift,h}'
2020
m.resource_bundles = { 'MapboxMapsResources' => ['Sources/MapboxMaps/**/*.{xcassets,strings}', 'Sources/MapboxMaps/MapboxMaps.json', 'Sources/MapboxMaps/PrivacyInfo.xcprivacy'] }
2121

22-
m.dependency 'MapboxCoreMaps', '11.18.0-SNAPSHOT-11-05--04-29.git-73a9692'
23-
m.dependency 'MapboxCommon', '24.18.0-SNAPSHOT-11-05--04-29.git-73a9692'
22+
m.dependency 'MapboxCoreMaps', '11.17.0-beta.1'
23+
m.dependency 'MapboxCommon', '24.17.0-beta.1'
2424
m.dependency 'Turf', '4.0.0'
2525

2626
end

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import PackageDescription
55
import Foundation
66

7-
let commonVersion: Version = "24.18.0-SNAPSHOT-11-05--04-29.git-73a9692"
8-
let coreMapsVersion: Version = "11.18.0-SNAPSHOT-11-05--04-29.git-73a9692"
7+
let commonVersion: Version = "24.17.0-beta.1"
8+
let coreMapsVersion: Version = "11.17.0-beta.1"
99
let turfVersion: Version = "4.0.0"
1010

1111
let mapboxMapsPath: String? = nil

Sources/Examples/All Examples/VoiceOverAccessibilityExample.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import UIKit
2-
import Combine
32
import CoreLocation
43
import MapboxMaps
54

@@ -52,7 +51,7 @@ final class VoiceOverAccessibilityExample: UIViewController, ExampleProtocol {
5251
mapView.accessibilityElements = []
5352

5453
let location = Location(coordinate: centerCoordinate)
55-
mapView.location.dataModel = LocationDataModel(location: Just([location]).eraseToAnyPublisher())
54+
mapView.location.override(locationProvider: Signal(just: [location]))
5655
mapView.location.options.puckType = .puck2D(.makeDefault())
5756

5857
// create point annotation manager to house point annotations

Sources/Examples/Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,16 @@
100100
</array>
101101
<key>UISupportedInterfaceOrientations</key>
102102
<array>
103+
<string>UIInterfaceOrientationPortrait</string>
103104
<string>UIInterfaceOrientationLandscapeLeft</string>
104105
<string>UIInterfaceOrientationLandscapeRight</string>
106+
</array>
107+
<key>UISupportedInterfaceOrientations~ipad</key>
108+
<array>
105109
<string>UIInterfaceOrientationPortrait</string>
106110
<string>UIInterfaceOrientationPortraitUpsideDown</string>
111+
<string>UIInterfaceOrientationLandscapeLeft</string>
112+
<string>UIInterfaceOrientationLandscapeRight</string>
107113
</array>
108114
</dict>
109115
</plist>

Sources/Examples/SwiftUI Examples/LocateMeExample.swift

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,21 @@
11
import SwiftUI
2-
@_spi(Experimental) import MapboxMaps
3-
import CoreLocation
2+
import MapboxMaps
43

5-
/// The example demonstrates Puck and Viewport configuration that allow to follow user location.
64
struct LocateMeExample: View {
75
@State var viewport: Viewport = .followPuck(zoom: 13, bearing: .constant(0))
86

97
var body: some View {
10-
MapReader { proxy in
11-
Map(viewport: $viewport) {
12-
Puck2D(bearing: .heading)
13-
.showsAccuracyRing(true)
14-
}
15-
.mapStyle(.standard)
16-
.ignoresSafeArea()
17-
.overlay(alignment: .trailing) {
18-
LocateMeButton(viewport: $viewport)
19-
}
8+
Map(viewport: $viewport) {
9+
Puck2D(bearing: .heading)
2010
}
21-
}
22-
}
23-
24-
25-
/// The example demonstrates Puck and Viewport configuration that allow to follow user location.
26-
/// In this example the CoreLocationProvider is use instead of default `AppleLocationProvider`.
27-
struct LocateMeCoreLocationProviderExample: View {
28-
@State var locaionModel = LocationDataModel.createCore()
29-
@State var viewport: Viewport = .followPuck(zoom: 13, bearing: .constant(0))
30-
31-
var body: some View {
32-
MapReader { proxy in
33-
Map(viewport: $viewport) {
34-
Puck2D(bearing: .heading)
35-
.showsAccuracyRing(true)
36-
37-
}
3811
.mapStyle(.standard)
39-
.locationDataModel(locaionModel)
4012
.ignoresSafeArea()
4113
.overlay(alignment: .trailing) {
4214
LocateMeButton(viewport: $viewport)
4315
}
44-
.onAppear {
45-
/// The core location provider doesn't automatically initiate the location authorization request.
46-
/// Instead, the application is responsible for that.
47-
let locationManager = CLLocationManager()
48-
if locationManager.authorizationStatus == .notDetermined {
49-
locationManager.requestWhenInUseAuthorization()
50-
}
51-
}
52-
53-
}
5416
}
5517
}
5618

57-
5819
struct LocateMeButton: View {
5920
@Binding var viewport: Viewport
6021

Sources/Examples/SwiftUI Examples/LocationOverrideExample.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ struct LocationOverrideExample: View {
66
private class LocationProvider {
77
@Published var location = Location(coordinate: .zero)
88
@Published var heading = Heading(direction: 0, accuracy: 0)
9-
10-
lazy var model = {
11-
LocationDataModel(
12-
location: $location.map {[$0]}.eraseToAnyPublisher(),
13-
heading: $heading.eraseToAnyPublisher())
14-
}()
159
}
1610

1711
@State private var provider = LocationProvider()
@@ -32,7 +26,12 @@ struct LocationOverrideExample: View {
3226
return false
3327
}
3428
}
35-
.locationDataModel(provider.model)
29+
.onAppear {
30+
/// Override the location and Heading provider with Combine publishers.
31+
proxy.location?.override(
32+
locationProvider: provider.$location.map {[$0]}.eraseToSignal(),
33+
headingProvider: provider.$heading.eraseToSignal())
34+
}
3635
}
3736
.ignoresSafeArea()
3837
.overlay(alignment: .bottom) {

Sources/Examples/SwiftUI Examples/SwiftUIRoot.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ struct SwiftUIExamples {
4242
Example("Puck playground", note: "Display user location using puck.", destination: PuckPlayground())
4343
Example("Annotation Order", note: "Test the rendering order of annotations.", destination: AnnotationsOrderTestExample())
4444
Example("Snapshot Map", note: "Make a snapshot of the map.", destination: SnapshotMapExample())
45-
Example("Locate Me (Core Location Provider)", note: "Use Viewport to create user location control. This example uses Location Provider from MabpoxCommon", destination: LocateMeCoreLocationProviderExample())
4645

4746
Example("Attribution url via callback", note: "Works on iOS 13+", destination: AttributionManualURLOpen())
4847
Example("Raster particles", note: "Rendering of raster particles.", destination: RasterParticleExample())

Sources/MapboxMaps/Annotations/Generated/PolylineAnnotationManager.swift

Lines changed: 51 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)