Skip to content

Commit 689de3a

Browse files
committed
Merge pull request #2562 from mapbox/ps/maps-ios-integration
Import Maps iOS GitOrigin-RevId: 518efcb3c18b608073da226a3d1d1a4938ac2447
1 parent ae3c0fc commit 689de3a

File tree

131 files changed

+918
-3206
lines changed

Some content is hidden

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

131 files changed

+918
-3206
lines changed

CHANGELOG.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@ 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-
19-
## 11.11.0-beta.1 – 03 March, 2025
20-
217
* Reduce MapboxMaps binary size by removing debug symbols. Complete dSYM files are still available in the XCFramework.
228
* Support panning and pinch gestures on trackpads.
239

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

Lines changed: 4 additions & 4 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'
3+
maps_version = '11.10.1'
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'
25-
m.dependency 'MapboxCommon', '24.11.0'
24+
m.dependency 'MapboxCoreMaps', '11.10.2'
25+
m.dependency 'MapboxCommon', '24.10.0'
2626
m.dependency 'Turf', '4.0.0'
2727

2828
end

Package.resolved

Lines changed: 4 additions & 4 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")
7+
let coreMaps = MapsDependency.coreMaps(version: "11.10.2")
88

9-
let common = MapsDependency.common(version: "24.11.0")
9+
let common = MapsDependency.common(version: "24.10.0")
1010

1111
let mapboxMapsPath: String? = nil
1212

Sources/Examples/All Examples/HeatmapLayerGlobeExample.swift

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ 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+
129139
// Add circle layer
130140
var circleLayer = CircleLayer(id: self.circleLayerId, source: self.earthquakeSourceId)
131141

@@ -134,27 +144,30 @@ final class HeatmapLayerGlobeExample: UIViewController, ExampleProtocol {
134144
Exp(.interpolate) {
135145
Exp(.linear)
136146
Exp(.zoom)
137-
7
147+
Exp(.literal) {
148+
7
149+
}
138150
Exp(.interpolate) {
139151
Exp(.linear)
140-
Exp(.get) { "mag" }
152+
Exp(.get) {"mag"}
141153
1
142154
1
143155
6
144156
4
145157
}
146-
16
158+
Exp(.literal) {
159+
16
160+
}
147161
Exp(.interpolate) {
148162
Exp(.linear)
149-
Exp(.get) { "mag" }
163+
Exp(.get) {"mag"}
150164
1
151165
5
152166
6
153167
50
154168
}
155169
}
156170
)
157-
158171
circleLayer.circleRadiusTransition = StyleTransition(duration: 0.5, delay: 0)
159172
circleLayer.circleStrokeColor = .constant(StyleColor(.black))
160173
circleLayer.circleStrokeWidth = .constant(1)
@@ -166,7 +179,7 @@ final class HeatmapLayerGlobeExample: UIViewController, ExampleProtocol {
166179
Exp(.get) { "mag" }
167180
1
168181
"rgba(33.0, 102.0, 172.0, 0.0)"
169-
2
182+
1
170183
"rgb(102.0, 169.0, 207.0)"
171184
3
172185
"rgb(209.0, 229.0, 240.0)"

Sources/Examples/SwiftUI Examples/StandardStyleImportExample.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ 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))
2120

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

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

157155
struct StandardStyleImportExample_Previews: PreviewProvider {
158156
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 tap gesture will be processed on the map.
95-
/// - onClusterLongPress: Closure that will be executed after the long press gesture processsed.
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
9696
/// - Returns: An instance of `PointAnnotationManager`
9797
public func makePointAnnotationManager(
9898
id: String = String(UUID().uuidString.prefix(5)),

0 commit comments

Comments
 (0)