Skip to content

v11.0.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@mapbox-github-ci-writer-public-1 mapbox-github-ci-writer-public-1 released this 24 Oct 11:28
· 1416 commits to main since this release

Breaking changes ⚠️

  • Style projection can be undefined for styles that do not explicitly specify it, so MapboxMap.projection has become optional.
  • View Annotation API is changed:
    • ViewAnnotationOptions.geometry was removed in favor of ViewAnnotationOptions.annotatedFeature.
    • ViewAnnotationOptions.associatedFeatureId was removed. Use AnnotatedFeature.layerFeature(layerId:featureId:) with ViewAnnotationOptions.annotatedFeature to bind View Annotation to features rendered by any layer.
    • [SwiftUI] Use MapViewAnnotation instead of ViewAnnotation to display view annotations in SwiftUI.
    • [SwiftUI] MapViewAnnotation initializer doesn't receive configuration parameters anymore. Use modifier functions to configure annotaiton:
     Map {
       MapViewAnnotation(coordinate: coordinate) {
          Text("🏠")
       }
       .allowOverlap(false)
       .variableAnchors([ViewAnnotationAnchorConfig(anchor: .bottom)])
     }
  • OverviewViewportStateOptions.padding is renamed to OverviewViewportStateOptions.coordinatePadding, the OverviewViewportStateOptions.padding now 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.
dva_annotations
  • Add MapboxMaps.camera(for:camera:coordinatesPadding:maxZoom:offset).
  • Add MapViewDebugOptions.padding debug option.
  • Add maxZoom and offset parameters to OverviewViewportStateOptions.
  • 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