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 08:03
· 1175 commits to main since this release

11.0.0-beta.6 October 24, 2023

Breaking changes ⚠️

  • Extension function Style.getProjection() return type changed from Projection to Projection?.
  • Extension function LocationComponentPlugin.createDefault2DPuck in LocationComponentUtils.kt is now stand-alone createDefault2DPuck.
  • Extension function LocationComponentPlugin.createDefault2DPuck in LocationComponentUtils is now stand-alone createDefault2DPuck.
  • createDefault2DPuck does not require a context parameter.
  • Increase minimum location puck bearing threshold needed to trigger an animation to 1 degree (previously 0.01 degrees) to reduce the CPU usage.
  • Location component puck bearing enabled property (MapView.location.puckBearingEanbled) has been changed to false by default.
  • ViewAnnotationManager.getViewAnnotationByFeatureId is renamed to ViewAnnotationManager.getViewAnnotation,
  • ViewAnnotationManager.getViewAnnotationByFeatureId is renamed to ViewAnnotationManager.getViewAnnotation.
  • ViewAnnotationManager.getViewAnnotationOptionsByView is renamed to ViewAnnotationManager.getViewAnnotationOptions.
  • ViewAnnotationManager.getViewAnnotationOptionsByFeatureId is renamed to ViewAnnotationManager.getViewAnnotationOptions.
  • ViewAnnotationAnchorConfig fields offsetX/offsetY are now of type Double instead of Int.
  • ViewAnnotationOptions accepts list of anchors variableAnchors instead of anchor/offsetX/offsetY.
  • ViewAnnotationOptions fields width/height are now of type Double instead of Int.
  • OnViewAnnotationUpdatedListener.onViewAnnotationPositionUpdated arguments width/height are now of type Double instead of Int.
  • Add getName method to DeviceLocationProvider interface.
  • Add boolean parameter allowUserDefined to getDeviceLocationProvider method in LocationService interface.

Features ✨ and improvements 🏁

  • Add dynamic view annotations that can be attached to complex feature geometries and reposition itself based on the current camera viewport. To create dynamic view annotation use AnnotatedFeature of type ANNOTATED_LAYER_FEATURE. Multiple dynamic view annotations can be attached to the same feature.
  • The following APIs have been promoted to stable:
    • LineLayer.lineDepthOcclusionFactor, LineLayer.lineDepthOcclusionFactorTransition, LineLayer.lineEmissiveStrength and LineLayer.lineEmissiveStrengthTransition
    • SymbolLayer.iconImageCrossFade, SymbolLayer.iconImageCrossFadeTransition, SymbolLayer.iconEmissiveStrength, SymbolLayer.iconEmissiveStrengthTransition, SymbolLayer.textEmissiveStrength and SymbolLayer.textEmissiveStrengthTransition
    • BackgroundLayer.backgroundEmissiveStrength and BackgroundLayer.backgroundEmissiveStrengthTransition
    • CircleLayer.circleEmissiveStrength and CircleLayer.circleEmissiveStrengthTransition
    • FillLayer.fillEmissiveStrength and FillLayer.fillEmissiveStrengthTransition
    • FlatLight, AmbientLight, DirectionalLight and related APIs
    • slot for all the layers
    • Style Import APIs: getStyleImports, removeStyleImport, getStyleImportSchema, getStyleImportConfigProperties, getStyleImportConfigProperty, setStyleImportConfigProperties, setStyleImportConfigProperty
    • Annotation plugin APIs: CircleAnnotationManager.circleEmissiveStrength, PolygonAnnotationManager.fillEmissiveStrength, PolylineAnnotationManager.lineDepthOcclusionFactor, PolylineAnnotationManager.lineEmissiveStrength
    • Map Overlay plugin and related APIs
  • (Kotlin only) Deprecated MapboxMap.getStyle() function. Please use property MapboxMap.style.
  • (Kotlin only) Deprecated MapView.getMapboxMap() function. Please use property MapView.mapboxMap.
  • (Kotlin only) Deprecated MapSurface.getMapboxMap() function. Please use property MapSurface.mapboxMap.
  • Handle zero duration map camera animators more efficiently resulting in performance improvements for gestures / viewport / locationcomponent.
  • DefaultLocationProvider.updatePuckBearing now accepts null to stop listening for heading/course.
  • DefaultLocationProvider.updatePuckBearing now accepts null to stop listening for heading/course.
  • Add keep-legacy-style-pack style pack load extra option that prevents the style package removal from the legacy storage.
  • Enable rendering of fill extrusion flood lights on the ground with fully transparent fill extrusions.
  • Add cameraForCoordinates overload so that the padding for map and 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 widgets not showing on some zoom levels.
  • Fix widgets flickering due to race condition if they are animated.
  • Fix crash when setting mapbox:mapbox_locationComponentLocationPuck = "location_puck_2_d" in map view XML without specifying all images.
  • Fix changing location bearing from HEADING to COURSE not working.
  • Avoid listening for heading/course when location component puck bearing is disabled.
  • Fix the crash clicking on attribution when not using the AppCompat theme.
  • Do not overwrite style URL when setting invalid style JSON.
  • Do not store SDK version in TileStore.

Dependencies

  • Update gl-native to v11.0.0-beta.7 and common to v24.0.0-beta.7.