Mapbox Maps: v10.0.0-beta.19
·
1584 commits
to main
since this release
Dependency requirements:
- Compatible version of MapboxCoreMaps: 10.0.0-beta.21
- Compatible version of MapboxCommon: 11.0.2
- Compatible version of Xcode: 12.4
- Compatible version of MacOS: Big Sur
Changes
Breaking changes ⚠️
camera(for:)
methods have moved fromBaseMapView
toMapboxMap
(#286)- The API has also been aligned with Android by:
- Removing default values for parameters
- Making
bearing
andpitch
parameters optional - Adding the
camera(for:camera:rect:)
variant
- The API has also been aligned with Android by:
OrnamentOptions
should now be accessed viaMapView.ornaments.options
.MapConfig.ornaments
has been removed. Updates can be applied directly toOrnamentsManager.options
. Previously the map's ornament options were updated onMapConfig.ornaments
withMapView.update
. (#310)OrnamentOptions
now uses structs to manage options for individual ornaments. For example,OrnamentOptions.scaleBarPosition
is nowOrnamentOptions.scaleBar.position
. (#318)- The
LogoView
class is now private. (#310) Style
has been significantly refactored, for example:- Synchronous APIs returning
Result
types now throw. - A number of APIs previously accessed via
__map
are now available via theStyle
object. - APIs with a
get
prefix have been renamed; for examplegetLayer<T>(with:type:)
tolayer<T>(withId:type:) throws
andgetSource<T>(id:type:)
tosource<T>(withId:type:) throws
- Synchronous APIs returning
Features ✨ and improvements 🏁
OrnamentsManager
is now a public class and can be accessed via theMapView
'sornaments
property.CompassDirectionFormatter
is now public. It provides a string representation of aCLLocationDirection
and supports the same languages as in pre-v10 versions of the Maps SDK. (#300)-OrnamentOptions
should now be accessed viaMapView.ornaments.options
. Updates can be applied directly to theoptions
property. Previously the map's ornament options were updated viaMapConfig.ornaments
. (#310)- The
LogoView
class is now private. (#310)
Direct download
Link to download binaries (append your own Mapbox access token scoped with DOWNLOADS:READ
):
https://api.mapbox.com/downloads/v2/mobile-maps-ios/releases/ios/10.0.0-beta.19/MapboxMaps.zip?access_token=<access-token>