|
1 | 1 | # Changelog for Mapbox Maps SDK v10 for iOS |
2 | 2 |
|
3 | 3 | Mapbox welcomes participation and contributions from everyone. |
4 | | -## Breaking changes ⚠️ |
| 4 | + |
| 5 | +## Unreleased |
| 6 | + |
| 7 | +### Breaking changes ⚠️ |
| 8 | + |
| 9 | +### Features ✨ and improvements 🏁 |
| 10 | + |
| 11 | +## 10.0.0-beta.16 - March 29, 2021 |
| 12 | + |
| 13 | +### Breaking changes ⚠️ |
| 14 | + |
5 | 15 | * The `CameraManager.moveCamera` method has been removed. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
6 | 16 | * `UIView.animate` is no longer supported. Instead, use `CameraAnimators`. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
7 | | -* Developers should make camera changes directly to `MapView`'s camera properties. Previously, changes could be applied to `MapView.cameraView`. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
8 | | -* `CameraAnimator` objects are managed by developers and should be stored in by developers to prevent the animations from falling out of scope. |
9 | | - |
10 | | -## Features ✨ and improvements 🏁 |
11 | | -* Introduced the platform-driven Drag API for shifting the map’s camera. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
12 | | -* Introduced `CameraAnimator`, a UIViewPropertyAnimator-based class for animating camera changes. These animators should be created using `CameraManager.makeCameraAnimator` methods. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 17 | +* Developers should make camera changes directly to `MapView`'s camera |
| 18 | + properties. Previously, changes could be applied to `MapView.cameraView`. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 19 | +* `CameraAnimator` objects are managed by developers and should be stored in by |
| 20 | + developers to prevent the animations from falling out of scope. |
| 21 | +* `LocationOptions.showUserLocation` has been removed. Use |
| 22 | + `LocationOptions.puckType` instead, setting it to `nil` if you do not want to |
| 23 | + show the user location. `LocationManager.showUserLocation` has also been |
| 24 | + removed. ([#203](https://github.com/mapbox/mapbox-maps-ios/pull/203)) |
| 25 | +* Make model layer internal and refactor for increased public API clarity |
| 26 | + ([#194](https://github.com/mapbox/mapbox-maps-ios/pull/194), [#198](https://github.com/mapbox/mapbox-maps-ios/pull/198)) |
| 27 | + * `ModelLayer` and `ModelSource` are now internal |
| 28 | + * `shouldTrackLocation` flag has been removed from `LocationConsumer` because |
| 29 | + it was never used |
| 30 | + * `PuckType.puck2D`'s associated value is now non-optional. It still has a |
| 31 | + default value corresponding to the previous behavior |
| 32 | + * `LocationPuckManager` is now internal |
| 33 | + * Renaming: |
| 34 | + * `LocationPuck` is now `PuckType` |
| 35 | + * `LocationOptions.locationPuck` is now `LocationOptions.puckType` |
| 36 | + * `LocationIndicatorLayerViewModel` is now `Puck2DConfiguration` |
| 37 | + * `PuckModelLayerViewModel` is now `Puck3DConfiguration` |
| 38 | +* Updates dependencies to MapboxCoreMaps 10.0.0-beta.17 and MapboxCommon 10.0.2. |
| 39 | + ([#193](https://github.com/mapbox/mapbox-maps-ios/pull/193)) |
| 40 | + * [rendering] Query rendered features now work for fill-extrusions when |
| 41 | + terrain is enabled. |
| 42 | + * [rendering] Improved terrain rendering performance due to reduction of |
| 43 | + loaded tiles. |
| 44 | +* All layer paint/layout properties can be defined via expressions ([#185](https://github.com/mapbox/mapbox-maps-ios/pull/185)) |
| 45 | +* Added RawRepresentable conformance to StyleURL. Removed enum cases for older |
| 46 | + style versions. ([#168](https://github.com/mapbox/mapbox-maps-ios/pull/168)) |
| 47 | + |
| 48 | +### Features ✨ and improvements 🏁 |
| 49 | + |
| 50 | +* Introduced the platform-driven Drag API for shifting the map’s camera. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 51 | +* Introduced `CameraAnimator`, a UIViewPropertyAnimator-based class for |
| 52 | + animating camera changes. These animators should be created using |
| 53 | + `CameraManager.makeCameraAnimator` methods. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
13 | 54 | * Gesture-driven camera changes have been updated to use camera animators. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
14 | | -* The `AnimatorOwner` enum has been added to track owners for individual animators. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
15 | | -* `CameraManager.fly(to:)` is now built on camera animators. `zoom`, `pitch`, `bearing`, and `centerCoordinate` keyframes are supported. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 55 | +* The `AnimatorOwner` enum has been added to track owners for individual |
| 56 | + animators. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 57 | +* `CameraManager.fly(to:)` is now built on camera animators. `zoom`, `pitch`, |
| 58 | + `bearing`, and `centerCoordinate` keyframes are supported. ([#217](https://github.com/mapbox/mapbox-maps-ios/pull/217)) |
| 59 | +* The getter for LocationManager.locationOptions is now public. ([#209](https://github.com/mapbox/mapbox-maps-ios/pull/209)) |
| 60 | +* Added function to get layer identifier for an annotation type. ([#189](https://github.com/mapbox/mapbox-maps-ios/pull/189)) |
| 61 | +* Add PreferredFPS.custom() to add support for custom preferred frames per |
| 62 | + second values. ([#157](https://github.com/mapbox/mapbox-maps-ios/pull/157)) |
| 63 | + |
| 64 | +### Bug fixes 🐞 |
| 65 | + |
| 66 | +* Fixes an issue in which the puck was not reflecting updates to its |
| 67 | + configuration ([#199](https://github.com/mapbox/mapbox-maps-ios/pull/199)) |
16 | 68 |
|
| 69 | +## 10.0.0-beta.15 - March 4, 2021 |
17 | 70 |
|
18 | | -# 10.0.0-beta.15 - March 4, 2021 |
| 71 | +### Breaking changes ⚠️ |
19 | 72 |
|
20 | | -## Breaking changes ⚠️ |
21 | 73 | * Updates MapboxCoreMaps to v10.0.0.beta.16 and MapboxCommon to v10.0.0-beta.12 ([#152](https://github.com/mapbox/mapbox-maps-ios/pull/152)) |
22 | 74 |
|
23 | | -## New Events API |
| 75 | +### New Events API |
| 76 | + |
24 | 77 | * The above breaking change introduces the new Map Events API which will: |
25 | | - * Simplify the Map API and align it with other weakly typed interfaces (addStyleLayer, addStyleSource, etc.). |
26 | | - * Minimize the effort for addition of new events. |
27 | | - * Expose experimental events. |
28 | | - * Suppress events that a developer hasn't subscribed to. |
29 | | - * Automatically expose new events for Snapshotter (eliminating the need to modify MapObserver and MapSnapshotterObserver separately). |
| 78 | + * Simplify the Map API and align it with other weakly typed interfaces |
| 79 | + (addStyleLayer, addStyleSource, etc.). |
| 80 | + * Minimize the effort for addition of new events. |
| 81 | + * Expose experimental events. |
| 82 | + * Suppress events that a developer hasn't subscribed to. |
| 83 | + * Automatically expose new events for Snapshotter (eliminating the need to |
| 84 | + modify MapObserver and MapSnapshotterObserver separately). |
30 | 85 | * Events that have been removed: |
31 | | - * `mapResumedRendering` |
32 | | - * `mapPausedRendering` |
33 | | - * `mapLoadingStarted` |
34 | | - * `renderMapStarted` |
35 | | - * `renderMapFinished` |
36 | | - * `cameraWillChange` |
37 | | - * `cameraIsChanging` |
| 86 | + * `mapResumedRendering` |
| 87 | + * `mapPausedRendering` |
| 88 | + * `mapLoadingStarted` |
| 89 | + * `renderMapStarted` |
| 90 | + * `renderMapFinished` |
| 91 | + * `cameraWillChange` |
| 92 | + * `cameraIsChanging` |
38 | 93 | * Events that have been renamed: |
39 | | - * `EventType.Map.mapLoaded` -> `EventType.Map.loaded` |
40 | | - * `MapEvents.EventKind.cameraDidChange` -> `MapEvents.EventKind.cameraChanged` |
| 94 | + * `EventType.Map.mapLoaded` -> `EventType.Map.loaded` |
| 95 | + * `MapEvents.EventKind.cameraDidChange` -> `MapEvents.EventKind.cameraChanged` |
| 96 | + |
| 97 | +### Features ✨ and improvements 🏁 |
41 | 98 |
|
42 | | -## Features ✨ and improvements 🏁 |
43 | 99 | * Maps SDK now supports a static bundle via direct download ([#149](https://github.com/mapbox/mapbox-maps-ios/pull/149)) |
44 | 100 |
|
45 | | -# 10.0.0-beta.14 - February 24, 2021 |
| 101 | +## 10.0.0-beta.14 - February 24, 2021 |
| 102 | + |
| 103 | +### Breaking changes ⚠️ |
46 | 104 |
|
47 | | -## Breaking changes ⚠️ |
48 | 105 | * Updates Turf to v2.0.0-alpha.3 ([#133](https://github.com/mapbox/mapbox-maps-ios/pull/133)) |
49 | 106 |
|
50 | | -## Features ✨ and improvements 🏁 |
| 107 | +### Features ✨ and improvements 🏁 |
| 108 | + |
51 | 109 | * Added SwiftUI example. ([#78](https://github.com/mapbox/mapbox-maps-ios/pull/78)) |
52 | | -* Allow a developer to synchronously update a layer with one API call -- no longer have to retrieve and re-add a layer. ([#85](https://github.com/mapbox/mapbox-maps-ios/pull/85)) |
| 110 | +* Allow a developer to synchronously update a layer with one API call -- no |
| 111 | + longer have to retrieve and re-add a layer. ([#85](https://github.com/mapbox/mapbox-maps-ios/pull/85)) |
53 | 112 | * MapboxMaps can now be built and tested using Swift Package Manager ([#125](https://github.com/mapbox/mapbox-maps-ios/pull/125)) |
54 | 113 |
|
55 | | -## Bug fixes 🐞 |
56 | | -* Prevent pitch and zoom from exceeding limits. Also updates default maximum pitch to 85 degrees. ([#103](https://github.com/mapbox/mapbox-maps-ios/pull/103)) |
57 | | -* Fixed an issue where quick zoom did not work at higher zoom levels. Also made the duration argument of the setCamera methods non-optional with default of 0. ([#109](https://github.com/mapbox/mapbox-maps-ios/pull/109)) |
| 114 | +### Bug fixes 🐞 |
| 115 | + |
| 116 | +* Prevent pitch and zoom from exceeding limits. Also updates default maximum |
| 117 | + pitch to 85 degrees. ([#103](https://github.com/mapbox/mapbox-maps-ios/pull/103)) |
| 118 | +* Fixed an issue where quick zoom did not work at higher zoom levels. Also made |
| 119 | + the duration argument of the setCamera methods non-optional with default of 0. |
| 120 | + ([#109](https://github.com/mapbox/mapbox-maps-ios/pull/109)) |
58 | 121 | * GestureManager.delegate is now weak ([#134](https://github.com/mapbox/mapbox-maps-ios/pull/134)) |
59 | 122 | * Using heuristic to provide pan drift when the map is pitched ([#120](https://github.com/mapbox/mapbox-maps-ios/pull/120)) |
60 | 123 |
|
61 | | -# 10.0.0-beta.13 - February 12, 2021 |
| 124 | +## 10.0.0-beta.13 - February 12, 2021 |
| 125 | + |
| 126 | +### Breaking changes ⚠️ |
62 | 127 |
|
63 | | -## Breaking changes ⚠️ |
64 | 128 | * Rely on consumer provided view models directly to customize location pucks ([#86](https://github.com/mapbox/mapbox-maps-ios/pull/86)) |
65 | | -* Update Mapbox Common for iOS to v10.0.0-beta.9.1 and MapboxCoreMaps to v10.0.0-beta.14.1. ([#89](https://github.com/mapbox/mapbox-maps-ios/pull/89)) |
| 129 | +* Update Mapbox Common for iOS to v10.0.0-beta.9.1 and MapboxCoreMaps to |
| 130 | + v10.0.0-beta.14.1. ([#89](https://github.com/mapbox/mapbox-maps-ios/pull/89)) |
66 | 131 | * Update to Turf 2.0.0-alpha.2 ([#93](https://github.com/mapbox/mapbox-maps-ios/pull/93)) |
67 | 132 |
|
68 | | -## Features ✨ and improvements 🏁 |
69 | | -* Expose `presentsWithTransaction` property to better synchronize UIKit elements with the `MapView`. ([#94](https://github.com/mapbox/mapbox-maps-ios/pull/94)) |
| 133 | +### Features ✨ and improvements 🏁 |
| 134 | + |
| 135 | +* Expose `presentsWithTransaction` property to better synchronize UIKit elements |
| 136 | + with the `MapView`. ([#94](https://github.com/mapbox/mapbox-maps-ios/pull/94)) |
70 | 137 | * Add MapEvents.styleFullyLoaded. ([#90](https://github.com/mapbox/mapbox-maps-ios/pull/90)) |
71 | 138 |
|
| 139 | +### Bug fixes 🐞 |
72 | 140 |
|
73 | | -## Bug fixes 🐞 |
74 | 141 | * Refactor Annotation "properties" ([#70](https://github.com/mapbox/mapbox-maps-ios/pull/70)) |
75 | 142 | * Fix Inconsistent Camera Heading ([#68](https://github.com/mapbox/mapbox-maps-ios/pull/68)) |
76 | 143 | * Fix issue where updates to ornament options were not honored ([#84](https://github.com/mapbox/mapbox-maps-ios/pull/84)) |
77 | 144 | * Dictionaries passed to expressions are now sorted by default ([#81](https://github.com/mapbox/mapbox-maps-ios/pull/81)) |
78 | 145 | * Fixed: Pan drift did not work correctly when bearing was non-zero. ([#99](https://github.com/mapbox/mapbox-maps-ios/pull/99)) |
79 | | -* Fix issue where toggling LocationOptions.showsUserLocation resulted in options not being updated ([#101](https://github.com/mapbox/mapbox-maps-ios/pull/101)) |
80 | | -* Pan drift for pitched maps will be disabled. A solution for smooth drifting is being worked on. ([#100](https://github.com/mapbox/mapbox-maps-ios/pull/100)) |
81 | | - |
| 146 | +* Fix issue where toggling LocationOptions.showsUserLocation resulted in options |
| 147 | + not being updated ([#101](https://github.com/mapbox/mapbox-maps-ios/pull/101)) |
| 148 | +* Pan drift for pitched maps will be disabled. A solution for smooth drifting is |
| 149 | + being worked on. ([#100](https://github.com/mapbox/mapbox-maps-ios/pull/100)) |
82 | 150 |
|
83 | | -# 10.0.0-beta.12 - January 27, 2021 |
| 151 | +## 10.0.0-beta.12 - January 27, 2021 |
84 | 152 |
|
85 | | -## Announcement |
| 153 | +### Announcement |
86 | 154 |
|
87 | | -V10 is the latest version of the Mapbox Maps SDK for iOS. v10 brings substantial performance improvements, new features like 3D terrain and a more powerful camera, modern technical foundations, and a better developer experience. |
| 155 | +V10 is the latest version of the Mapbox Maps SDK for iOS. v10 brings substantial |
| 156 | +performance improvements, new features like 3D terrain and a more powerful |
| 157 | +camera, modern technical foundations, and a better developer experience. |
88 | 158 |
|
89 | 159 | To get started with v10, please refer to our [migration guide](https://docs.mapbox.com/ios/beta/maps/guides/migrate-to-v10/). |
90 | 160 |
|
91 | | -## Known Issues |
| 161 | +### Known Issues |
92 | 162 |
|
93 | | -Please visit our [issues](https://github.com/mapbox/mapbox-maps-ios/issues) to see open bugs, enhancements, or features requests. |
| 163 | +Please visit our [issues](https://github.com/mapbox/mapbox-maps-ios/issues) to |
| 164 | +see open bugs, enhancements, or features requests. |
0 commit comments