Repository navigation
v11.0.0-beta.6
Pre-release
Pre-release
·
1416 commits
to main
since this release
Breaking changes ⚠️
- Style projection can be undefined for styles that do not explicitly specify it, so
MapboxMap.projectionhas become optional. - View Annotation API is changed:
ViewAnnotationOptions.geometrywas removed in favor ofViewAnnotationOptions.annotatedFeature.ViewAnnotationOptions.associatedFeatureIdwas removed. UseAnnotatedFeature.layerFeature(layerId:featureId:)withViewAnnotationOptions.annotatedFeatureto bind View Annotation to features rendered by any layer.- [SwiftUI] Use
MapViewAnnotationinstead ofViewAnnotationto display view annotations in SwiftUI. - [SwiftUI]
MapViewAnnotationinitializer doesn't receive configuration parameters anymore. Use modifier functions to configure annotaiton:
Map { MapViewAnnotation(coordinate: coordinate) { Text("🏠") } .allowOverlap(false) .variableAnchors([ViewAnnotationAnchorConfig(anchor: .bottom)]) }
OverviewViewportStateOptions.paddingis renamed toOverviewViewportStateOptions.coordinatePadding, theOverviewViewportStateOptions.paddingnow represents the camera padding.
Features ✨ and improvements 🏁
- New ViewAnnotation class is added to simplify work with view annotations, use it instead of
ViewAnnotationOptions. - Support for Dynamic View Annotations. Use them to attach View annotations to any feature rendered by map, for example you can visualize additional information along the routes, areas, or points. The annotations will reposition themselves when user pans the map. Check the ViewAnnotation and MapViewAnnotation documentation or the pre-built DynamicViewAnnotationExample.
- Add
MapboxMaps.camera(for:camera:coordinatesPadding:maxZoom:offset). - Add
MapViewDebugOptions.paddingdebug option. - Add
maxZoomandoffsetparameters toOverviewViewportStateOptions. - Add "keep-legacy-style-pack" style pack load extra option that prevents from the style package removal from the legacy storage
- Enable rendering of fill extrusion flood lights on the ground with fully transparent fill extrusions
- Skip location and bearing updates if new value changes are under fixed epsilon
- Add cameraForCoordinates overload so that the padding for map & geometry can be specified separately.
- Disable terrain when zoom-dependent exaggeration expression evaluates to zero.
- Add support for glb 3d tiles
- Align hillshade illumination direction with 3d lights
Bug fixes 🐞
- Fix issue when transition to Overview Viewport resulted in double padding.
- [SwiftUI] Fix issue when Overview Viewport is incorrect if set as initial viewport.
- Improve handling of inlined style fragments
- Do not overwrite style URL when setting invalid style JSON
- Don't store SDK version in TileStore
Dependencies
- Update MapboxCommon to
24.0.0-beta.7. - Update MapboxCoreMaps to
11.0.0-beta.7.
Dependency requirements:
- Compatible version of Xcode:
14.1.0