Releases: mapbox/mapbox-maps-flutter
2.10.0-rc.1
v2.5.3
v2.7.1
Changes
- Update MapboxMaps iOS SDK to v11.11.2, MapboxMaps Android SDK to v11.11.1
Important
This release addresses the code sign issue that may occur when building on iOS.
Dependency Updates
v2.6.3
v2.9.1
v2.8.1
v2.10.0-beta.1
New Features ✨
- Introduce new experimental properties:
FillLayer.fillConstructBridgeGuardRail
,FillLayer.fillBridgeGuardRailColor
,FillLayer.fillTunnelStructureColor
,CircleLayer.circleElevationReference
. - Introduce
tapEvents
andlongPressEvents
API to the Annotation Managers to handle tap and long press event callbacks for annotations:
Example usage:manager.tapEvents( onTap: (annotation) { print("Tapped annotation: ${annotation.id}"); }, ); manager.longPressEvents( onLongPress: (annotation) { print("Long press annotation: ${annotation.id}"); }, );
Note
As part of this change, AnnotationOnClickListener
is now deprecated.
Tap events will now not propagate to annotations below the topmost one. If you tap on overlapping annotations, only the top annotation's tap event will be triggered.
Dependency Updates
v2.9.0
Important
- [Android] When a method returns
StylePropertyValue
the property values will now be typed rather than a string. PointAnnotation.iconImageCrossFade
has been deprecated and setting a value to it will not have any impact. UsePointAnnotationManager.iconImageCrossFade
instead.- 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
dragEvents
API 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.addInteraction
MapboxMap.removeInteraction
MapboxMap.setFeatureStateForFeaturesetDescriptor
MapboxMap.setFeatureStateForFeaturesetFeature
MapboxMap.getFeatureStateForFeaturesetDescriptor
MapboxMap.getFeatureStateForFeaturesetFeature
MapboxMap.removeFeatureStateForFeaturesetDescriptor
MapboxMap.removeFeatureStateForFeaturesetFeature
MapboxMap.resetFeatureStatesForFeatureset
MapboxMap.queryRenderedFeaturesForFeatureset
-
Move experimental
modelElevationReference
property toLocationPuck3D
.
Bug fixes 🐞
- In this release we fixed a bug in our Android conversion code where the property values in
StylePropertyValue
were 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
.
- Fixed an issue where style expressions did not override constant values when both were present.
- [ios] Fix crash when force unwrapping UIImage for point annotations.
Dependency Updates
v2.9.0-rc.1
v2.9.0-beta.1
Important
- [Android] When a method returns
StylePropertyValue
the property values will now be typed rather than a string. PointAnnotation.iconImageCrossFade
has been deprecated and setting a value to it will not have any impact. UsePointAnnotationManager.iconImageCrossFade
instead.- 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
dragEvents
API 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.addInteraction
MapboxMap.removeInteraction
MapboxMap.setFeatureStateForFeaturesetDescriptor
MapboxMap.setFeatureStateForFeaturesetFeature
MapboxMap.getFeatureStateForFeaturesetDescriptor
MapboxMap.getFeatureStateForFeaturesetFeature
MapboxMap.removeFeatureStateForFeaturesetDescriptor
MapboxMap.removeFeatureStateForFeaturesetFeature
MapboxMap.resetFeatureStatesForFeatureset
MapboxMap.queryRenderedFeaturesForFeatureset
- Move experimental
modelElevationReference
property toLocationPuck3D
.
Bug fixes 🐞
- In this release we fixed a bug in our Android conversion code where the property values in
StylePropertyValue
were 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
.