Skip to content

Commit 98fc76c

Browse files
committed
Merge pull request #2988 from mapbox/ps/maps-ios-update
Update maps iOS from internal repo GitOrigin-RevId: 3d505af4d9f6cb4fc95c45ea49eecb3f4be2c97c
1 parent 29ee078 commit 98fc76c

File tree

108 files changed

+493
-732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+493
-732
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Mapbox welcomes participation and contributions from everyone.
44

55
## main
66

7+
## 11.11.0 - 26 March, 2025
8+
9+
* Update CoreMaps to 11.11.0 and Common to 24.11.0
10+
* `top-image`, `bearing-image`, and `shadow-image` properties on `LocationIndicatorLayer` are now paint properties instead of layout properties.
11+
12+
## 11.11.0-rc.1 – 12 March, 2025
13+
14+
* Expose experimental API for setting ColorTheme on style imports.
15+
* Expose use-theme properties for all annotation types and Puck3D layer.
16+
* Update CoreMaps to 11.11.0-rc.2.
17+
* Update Common to 24.11.0-rc.2.
18+
719
## 11.11.0-beta.1 – 03 March, 2025
820

921
* Reduce MapboxMaps binary size by removing debug symbols. Complete dSYM files are still available in the XCFramework.

Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

LICENSE.md

Lines changed: 1 addition & 1 deletion
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,6 +1,6 @@
11
Pod::Spec.new do |m|
22

3-
maps_version = '11.11.0-beta.1'
3+
maps_version = '11.11.0'
44

55
m.name = 'MapboxMaps'
66
m.version = maps_version
@@ -21,8 +21,8 @@ Pod::Spec.new do |m|
2121
m.source_files = 'Sources/MapboxMaps/**/*.{swift,h}'
2222
m.resource_bundles = { 'MapboxMapsResources' => ['Sources/**/*.{xcassets,strings}', 'Sources/MapboxMaps/MapboxMaps.json', 'Sources/MapboxMaps/PrivacyInfo.xcprivacy'] }
2323

24-
m.dependency 'MapboxCoreMaps', '11.11.0-SNAPSHOT-03-20--06-47.git-443decb'
25-
m.dependency 'MapboxCommon', '24.11.0-SNAPSHOT-03-20--06-47.git-443decb'
24+
m.dependency 'MapboxCoreMaps', '11.11.0-SNAPSHOT-03-27--04-29.git-a0e6128'
25+
m.dependency 'MapboxCommon', '24.11.0-SNAPSHOT-03-27--04-29.git-a0e6128'
2626
m.dependency 'Turf', '4.0.0'
2727

2828
end

Package.resolved

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

Package.swift

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

7-
let coreMaps = MapsDependency.coreMaps(version: "11.11.0-SNAPSHOT-03-20--06-47.git-443decb", checksum: "81d1f50eef76fac7218a7cd232b7a2ac98db65d142ede5de3c7d9504c6da9d07")
7+
let coreMaps = MapsDependency.coreMaps(version: "11.11.0-SNAPSHOT-03-27--04-29.git-a0e6128", checksum: "00fe6b6b5fa99919003a8a1988395e3083b1f56ad4141f4baa93b9f9e27deb1a")
88

9-
let common = MapsDependency.common(version: "24.11.0-SNAPSHOT-03-20--06-47.git-443decb", checksum: "bfeb77f0472423b68844da907b2a70958856230d56864ce5f7f953b2abdd402e")
9+
let common = MapsDependency.common(version: "24.11.0-SNAPSHOT-03-27--04-29.git-a0e6128", checksum: "9e6a4bfafba1031b99bf948acb731d7251181b824c1860032f07e9133e5149c2")
1010

1111
let mapboxMapsPath: String? = nil
1212

Sources/Examples/All Examples/HeatmapLayerGlobeExample.swift

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ final class HeatmapLayerGlobeExample: UIViewController, ExampleProtocol {
126126

127127
func createCircleLayer() {
128128

129-
var circleLayerSource = GeoJSONSource(id: self.earthquakeSourceId)
130-
circleLayerSource.data = .url(self.earthquakeURL)
131-
circleLayerSource.generateId = true
132-
133-
do {
134-
try mapView.mapboxMap.addSource(circleLayerSource)
135-
} catch {
136-
print("Ran into an error adding a source: \(error)")
137-
}
138-
139129
// Add circle layer
140130
var circleLayer = CircleLayer(id: self.circleLayerId, source: self.earthquakeSourceId)
141131

@@ -144,30 +134,27 @@ final class HeatmapLayerGlobeExample: UIViewController, ExampleProtocol {
144134
Exp(.interpolate) {
145135
Exp(.linear)
146136
Exp(.zoom)
147-
Exp(.literal) {
148-
7
149-
}
137+
7
150138
Exp(.interpolate) {
151139
Exp(.linear)
152-
Exp(.get) {"mag"}
140+
Exp(.get) { "mag" }
153141
1
154142
1
155143
6
156144
4
157145
}
158-
Exp(.literal) {
159-
16
160-
}
146+
16
161147
Exp(.interpolate) {
162148
Exp(.linear)
163-
Exp(.get) {"mag"}
149+
Exp(.get) { "mag" }
164150
1
165151
5
166152
6
167153
50
168154
}
169155
}
170156
)
157+
171158
circleLayer.circleRadiusTransition = StyleTransition(duration: 0.5, delay: 0)
172159
circleLayer.circleStrokeColor = .constant(StyleColor(.black))
173160
circleLayer.circleStrokeWidth = .constant(1)
@@ -179,7 +166,7 @@ final class HeatmapLayerGlobeExample: UIViewController, ExampleProtocol {
179166
Exp(.get) { "mag" }
180167
1
181168
"rgba(33.0, 102.0, 172.0, 0.0)"
182-
1
169+
2
183170
"rgb(102.0, 169.0, 207.0)"
184171
3
185172
"rgb(209.0, 229.0, 240.0)"

Sources/Examples/SwiftUI Examples/StandardStyleImportExample.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct StandardStyleImportExample: View {
1717
/// This enables the greater encapsulation and allows to reload the basemap without reloading of the fragment.
1818
let importId = "real-estate-fragment"
1919
StyleImport(id: importId, uri: StyleURI(url: styleURL)!)
20+
.colorTheme(ColorTheme(uiimage: monochromeTheme))
2021

2122
/// The contents of the imported style are private, meaning all the implementation details such as layers and sources are not accessible at runtime.
2223
/// However the style defines a "hotels-price" featureset that represents a portion of features available for interaction.
@@ -151,6 +152,7 @@ private extension FeaturesetFeature {
151152
}
152153

153154
private let styleURL = Bundle.main.url(forResource: "fragment-realestate-NY", withExtension: "json")!
155+
private let monochromeTheme = UIImage(named: "monochrome_lut")!
154156

155157
struct StandardStyleImportExample_Previews: PreviewProvider {
156158
static var previews: some View {

Sources/MapboxMaps/Annotations/AnnotationOrchestrator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public final class AnnotationOrchestrator {
9191
/// - id: Optional string identifier for this manager.
9292
/// - layerPosition: Optionally set the `LayerPosition` of the layer managed.
9393
/// - clusterOptions: Optionally set the `ClusterOptions` to cluster the Point Annotations
94-
/// - onClusterTap: Closure that will be executed after the long press gesture processsed.
95-
/// - onClusterLongPress: Closure that will be executed after the tap gesture will be processed on the map
94+
/// - onClusterTap: Closure that will be executed after the tap gesture will be processed on the map.
95+
/// - onClusterLongPress: Closure that will be executed after the long press gesture processsed.
9696
/// - Returns: An instance of `PointAnnotationManager`
9797
public func makePointAnnotationManager(
9898
id: String = String(UUID().uuidString.prefix(5)),

Sources/MapboxMaps/Annotations/ViewAnnotationManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public protocol ViewAnnotationUpdateObserver: AnyObject {
3838
///
3939
/// Use `isHidden` property to determine whether a view is visible or not.
4040
/// - Parameters:
41-
/// - annotationViews: The annotation vies whose visibility changed.
41+
/// - annotationViews: The annotation views whose visibility changed.
4242
func visibilityDidChange(for annotationViews: [UIView])
4343
}
4444

0 commit comments

Comments
 (0)