3.0.0-beta.1
Pre-release
Pre-release
Xcode doesn't list pre-releases when adding Packages via "add Package...". To test this release, specify the "exact version" 3.0.0-beta.1 in Xcode when adding https://github.com/maplibre/maplibre-navigation-ios.git
What's Changed
- The
speak
method inRouteVoiceController
can be used without a givenRouteProgress
or theRouteProgress
can explicitly ignored so that it will not be added to the voice instruction. RouteProgress
is now optional inwillSpeak
method ofVoiceControllerDelegate
if theRouteProgress
in thespeak
method of theRouteVoiceController is
nil`.- Uses the
Locale
given inRouteOptions
to create the correspondingAVSpeechSynthesisVoice
. - Removed setCamera() from updateCourseTracking()
- Added setCamera() to progressDidChange()
- Allow to customize rerouting logic by implementing RouteControllerDelegate#routeControllerGetDirections
- Add option to overwrite camera update via NavigationMapViewCourseTrackingDelegate#updateCamera
- Remove MapboxVoiceController and Mapbox Speech dependency. If you would like to use MapboxSpeech, you can copy the deleted MapboxVoiceController into your project.
- Updated MapLibre Native dependency to ios-v6.0.0 (https://github.com/maplibre/maplibre-native/releases/tag/ios-v6.0.0). Implementers need to change the prefix MGL to MLN for all MapLibre Native classes that are referenced.
- Only snap location to route if the location is within the
RouteControllerUserLocationSnappingDistance
- Add support for Swift Package Manager while dropping Carthage and Cocoapods.
- Initialization no longer tries to add mapbox://mapbox.mapbox-streets-v7 to all mapstyles.
- Removed implicit default dependencies on MapBox tileservers by requiring explicit styles URLs in more places.
- Merged in #45.
- BREAKING: Removed
MLNStyle
extensions referencing non-functioning MapBox styles, e.g.MLNStyle.navigationGuidanceDayStyleURL
. - Added
Day/NightStyle(styleURL:)
which takes an explicit URL to a hosting tileserver style. - Added
Day/NightStyle(demoStyle: ())
as an explicit alternative when the user doesn't have a tileserver handy. This uses MapLibre's demo style and is intended for testing and demonstration use only. - Deprecated
DayStyle()
/NightStyle()
initializers because they were backed by an implicit tile service. If these default styles are still used, they'll now use the MapLibre demo style. NavigationViewController
now expects explicit style URLs withNavigationViewController(route:dayStyleURL:nightStyleURL:...)
or NavigationViewController(route:dayStyle:nightStyle:...)` and the existing initializer, which allowed "default" styles, is deprecated and uses the MapLibre demo styles.
- Fix: NavigationViewController was not re-routing when the user went off route.
- Merged in #47.