Repository navigation
v2.9.0-beta.1
Pre-release
Pre-release
·
491 commits
to main
since this release
Important
- [Android] When a method returns
StylePropertyValuethe property values will now be typed rather than a string. PointAnnotation.iconImageCrossFadehas been deprecated and setting a value to it will not have any impact. UsePointAnnotationManager.iconImageCrossFadeinstead.- The STANDARD_EXPERIMENTAL style has been removed. Use the STANDARD style instead.
New Features ✨
- Expose new methods for working with style imports:
addStyleImportFromJSON,addStyleImportFromURI,updateStyleImportWithJSON,updateStyleImportWithURI, andmoveStyleImport. - Introduce
dragEventsAPI to the Annotation Managers to handle drag event callbacks for annotations:onBegin: Called when a drag gesture starts on an annotation.onChanged: Called continuously as the annotation is dragged.onEnd: Called once the drag gesture completes.
Example usage:
manager.dragEvents( onBegin: (annotation) { print("Drag started for: ${annotation.id}"); }, onChanged: (annotation) { print("Dragging at: ${annotation.geometry}"); }, onEnd: (annotation) { print("Drag ended at: ${annotation.geometry}"); }, );
- Promote interaction APIs to stable. The following APIs are now stable:
MapboxMap.addInteractionMapboxMap.removeInteractionMapboxMap.setFeatureStateForFeaturesetDescriptorMapboxMap.setFeatureStateForFeaturesetFeatureMapboxMap.getFeatureStateForFeaturesetDescriptorMapboxMap.getFeatureStateForFeaturesetFeatureMapboxMap.removeFeatureStateForFeaturesetDescriptorMapboxMap.removeFeatureStateForFeaturesetFeatureMapboxMap.resetFeatureStatesForFeaturesetMapboxMap.queryRenderedFeaturesForFeatureset
- Move experimental
modelElevationReferenceproperty toLocationPuck3D.
Bug fixes 🐞
- In this release we fixed a bug in our Android conversion code where the property values in
StylePropertyValuewere being returned as strings rather than their actual type. This fix will cause a behavioral change in the return value of the following methods on Android:getStyleImportConfigProperties,getStyleImportConfigProperty,getStyleLayerProperty,getStyleSourceProperty,getStyleTerrainProperty,getStyleLightProperty.