Skip to content

v11.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@mapbox-github-ci-writer-public-1 mapbox-github-ci-writer-public-1 released this 03 Nov 15:59
· 1385 commits to main since this release

Changes

Breaking changes ⚠️

  • MapboxMap.loadStyle methods changed error type from MapLoadingError to Error.
  • OverviewViewportStateOptions.coordinatesPadding is renamed to OverviewViewportStateOptions.geometryPadding.
  • [SwiftUI] Viewport.overview(geometry:bearing:pitch:coordinatesPadding:maxZoom:offset:) is renamed to Viewport.overview(geometry:bearing:pitch:geometryPadding:maxZoom:offset:)
  • Bearing indication on user location puck is disabled by default to reduce amount map redraws.
    To re-enable bearing update rendering, set mapView.location.options.puckBearingEnabled to true.
  • The default behavior of resetting the viewport to idle is changed. Previously viewport was reset to idle when the user touched the map for longer than 150 ms. Now it will happen when the user pans the map. If the desired behavior is different, you can disable the default by setting mapView.viewport.options.transitionsToIdleUponUserInteraction to false and implementing any gesture that calls mapView.viewport.idle().

Features ✨ and improvements 🏁

  • Refactor MapboxMap.loadStyle to cancel previous style loads when called multiple times.
  • New experimental StyleManager.load(mapStyle:transition:completion) method to load MapStyle in MapboxMap, or Snapshotter:
    mapboxMap.load(mapStyle: .standard(lightPreset: .dawn, showRoadLabels: false)) { _ in
      print("Style is loaded")
    }
  • Support slot for annotation managers and annotation groups.
  • [SwiftUI] Annotation groups can be created with static list of annotations. In the example below polyline annotation group displays two annotations on the same layer.
    Map {
        PolylineAnnotationGroup {
            PolylineAnnotation(lineCoordinates: route.coordinates)
                .lineColor("blue")
            if let alternativeRoute {
                PolylineAnnotation(lineCoordinates: alternativeRoute.coordinates)
                    .lineColor("green")
            }
        }
        .lineCap(.round)
        .slot("middle")
    }
  • [SwiftUI] Expose transitionsToIdleUponUserInteraction modifier.

Bug fixes 🐞

  • Fix issue where 2D puck images are not getting updates.
  • [SwiftUI] Fixed issue when viewport inset with safe area is calculated incorrectly.
  • Fixed issue when quick interaction didn't lead to resetting viewport to idle.

Dependencies

  • Update MapboxCommon to 24.0.0-rc.2.
  • Update MapboxCoreMaps to 11.0.0-rc.1:
    • Changelog
      • Features ✨ and improvements 🏁
        • Update mapbox-common to v24.0.0-rc.1
      • Bug fixes 🐞
        • Fix the line label flickering issue by eliminating the anchor rounding error
        • Honor model-emissive-strength for 3D location indicator
        • Fix rendering of large/complex fill extrusion features

Dependency requirements:

  • Compatible version of Xcode: 14.1.0