Skip to content

v11.0.0-rc.2

Pre-release
Pre-release

Choose a tag to compare

@mapbox-github-ci-writer-public-1 mapbox-github-ci-writer-public-1 released this 20 Nov 17:14
· 1382 commits to main since this release

Changes

Breaking changes ⚠️

Note: SwiftUI support is an experimental feature, its API may be changed until it stabilizes.

  • [SwiftUI] Fixed point annotations clustering.
  • [SwiftUI] Viewport inset system was refactored:
    • The Viewport.inset(...) function was removed in favor of the Viewport.padding(...)
    • The Viewport.inset(...) previously had an ignoringSafeArea parameter which allowed developers to specify if an edge safe area inset should be accounted for in padding calculation. Starting with this version, instead of this parameter there is a Map.usesSafeAreaInsetsAsPadding(_:) modifier that enables or disables this for all edges.

Features ✨ and improvements 🏁

  • Introduced Slot struct with static properties to manage adding layers to pre-specified slots in a style import. See documentation here.
  • [SwiftUI] Introduced a new Map.additionalSafeAreaInsets(...) modifier that adds additional global safe area insets for the map. Use them to display any UI elements on top of the map. The additional safe area will automatically be accounted for in the camera padding calculation in every Viewport.
  • Added allowOverlapWithPuck and ignoreCameraPadding options to ViewAnnotation and MapViewAnnotation.

Bug fixes 🐞

  • [SwiftUI] Fixed a bug when Viewport.inset(...) didn't use safe area insets on the first load.
  • [SwiftUI] Fixed a map basic coordinator clinging to the first subscriptions.

Dependencies

  • Update MapboxCommon to 24.0.0-rc.3.
  • Update MapboxCoreMaps to 11.0.0-rc.2:
Changelog

Features ✨ and improvements 🏁

  • Added allowOverlapWithPuck and ignoreMapPadding flags to ViewAnnotationOptions.
  • The SDK now avoids placing view annotations on overlapped line geometries if the current bound layer is below other annotated line layers.

Bug fixes 🐞

  • Fixed flickering and wrong positions for elevated symbols.
  • Updating a style layer's source will now trigger repaint.
  • Fixed issue where model loading might have failed when the model used a 32-bit index buffer.
  • Fixed rendering of the updated content on the map after a feature state change if terrain or globe were enabled.
  • Fixed issue where view annotations would disappear on the upper parts of the screen when terrain was enabled.
  • The SDK now triggers view annotation replacement if the associated layer/source gets changed.
  • Fixed a bug where snapshot is rendered without 3D content.

Dependency requirements:

  • Compatible version of Xcode: 14.1.0