v11.0.0-beta.6
Pre-release
Pre-release
·
1175 commits
to main
since this release
11.0.0-beta.6 October 24, 2023
Breaking changes ⚠️
- Extension function
Style.getProjection()return type changed fromProjectiontoProjection?. - Extension function
LocationComponentPlugin.createDefault2DPuckinLocationComponentUtils.ktis now stand-alonecreateDefault2DPuck. - Extension function
LocationComponentPlugin.createDefault2DPuckinLocationComponentUtilsis now stand-alonecreateDefault2DPuck. createDefault2DPuckdoes not require acontextparameter.- 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 tofalseby default. ViewAnnotationManager.getViewAnnotationByFeatureIdis renamed toViewAnnotationManager.getViewAnnotation,ViewAnnotationManager.getViewAnnotationByFeatureIdis renamed toViewAnnotationManager.getViewAnnotation.ViewAnnotationManager.getViewAnnotationOptionsByViewis renamed toViewAnnotationManager.getViewAnnotationOptions.ViewAnnotationManager.getViewAnnotationOptionsByFeatureIdis renamed toViewAnnotationManager.getViewAnnotationOptions.ViewAnnotationAnchorConfigfieldsoffsetX/offsetYare now of type Double instead of Int.ViewAnnotationOptionsaccepts list of anchorsvariableAnchorsinstead ofanchor/offsetX/offsetY.ViewAnnotationOptionsfieldswidth/heightare now of type Double instead of Int.OnViewAnnotationUpdatedListener.onViewAnnotationPositionUpdatedargumentswidth/heightare now of type Double instead of Int.- Add
getNamemethod toDeviceLocationProviderinterface. - Add boolean parameter
allowUserDefinedtogetDeviceLocationProvidermethod inLocationServiceinterface.
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
AnnotatedFeatureof typeANNOTATED_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.lineEmissiveStrengthandLineLayer.lineEmissiveStrengthTransitionSymbolLayer.iconImageCrossFade,SymbolLayer.iconImageCrossFadeTransition,SymbolLayer.iconEmissiveStrength,SymbolLayer.iconEmissiveStrengthTransition,SymbolLayer.textEmissiveStrengthandSymbolLayer.textEmissiveStrengthTransitionBackgroundLayer.backgroundEmissiveStrengthandBackgroundLayer.backgroundEmissiveStrengthTransitionCircleLayer.circleEmissiveStrengthandCircleLayer.circleEmissiveStrengthTransitionFillLayer.fillEmissiveStrengthandFillLayer.fillEmissiveStrengthTransitionFlatLight,AmbientLight,DirectionalLightand related APIsslotfor 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 propertyMapboxMap.style. - (Kotlin only) Deprecated
MapView.getMapboxMap()function. Please use propertyMapView.mapboxMap. - (Kotlin only) Deprecated
MapSurface.getMapboxMap()function. Please use propertyMapSurface.mapboxMap. - Handle zero duration map camera animators more efficiently resulting in performance improvements for gestures / viewport / locationcomponent.
DefaultLocationProvider.updatePuckBearingnow accepts null to stop listening for heading/course.DefaultLocationProvider.updatePuckBearingnow accepts null to stop listening for heading/course.- Add
keep-legacy-style-packstyle 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
cameraForCoordinatesoverload 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
glb3D 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
HEADINGtoCOURSEnot working. - Avoid listening for heading/course when location component puck bearing is disabled.
- Fix the crash clicking on attribution when not using the
AppCompattheme. - 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.