Releases: mapbox/mapbox-maps-flutter
2.8.0
New Features ✨
- Introduce experimental
MapboxMap.startPerformanceStatisticsCollection
/MapboxMap.stopPerformanceStatisticsCollection
APIs allowing to start / stop collecting map rendering performance statistics.
Bug fixes 🐞
- Update geometry conversions on Android to use Longitude, Latitude instead of Latitude, Longitude order. This follows the order used by the GeoJSON Specification and the Turf library.
- [Android] Fix color alpha value conversion.
Dependency Updates
2.8.0-rc.1
2.8.0-beta.1
New Features ✨
- Introduce experimental
MapboxMap.startPerformanceStatisticsCollection
/MapboxMap.stopPerformanceStatisticsCollection
APIs allowing to start / stop collecting map rendering performance statistics.
Dependency Updates
2.7.0
New Features ✨
-
Introduce
onZoomListener
toMapWidget
to allow listening to zoom events resulting from user gestures: pinching, double-tapping, or quick-zooming. The event returnsMapContentGestureContext
, which includestouchPosition
(the location of the gesture on the screen),point
(the geographical coordinates of the gesture), andgestureState
(the state of the gesture). Seegestures_example.dart
for implementation guidance._onZoom(MapContentGestureContext context) { print("OnZoom coordinate: {${context.point.coordinates.lng}, ${context.point.coordinates.lat}}" + " point: {x: ${context.touchPosition.x}, y: ${context.touchPosition.y}}" + " state: ${context.gestureState}"); }
-
Expose
SymbolLayer.iconSizeScaleRange
,SymbolLayer.iconSizeScaleRangeExpression
,SymbolLayer.textSizeScaleRange
,SymbolLayer.textSizeScaleRangeExpression
,LineLayer.lineCrossSlope
,LineLayer.lineElevationReference
,LineLayer.lineWidthUnit
,FillLayer.fillElevationReference
. -
Expose
PointAnnotationManager.setIconSizeScaleRange()
,PointAnnotationManager.getIconSizeScaleRange()
,PointAnnotationManager.setTextSizeScaleRange()
,PointAnnotationManager.getTextSizeScaleRange()
,PolygonAnnotationManager.setFillElevationReference()
,PolygonAnnotationManager.getFillElevationReference()
,PolylineAnnotationManager.setLineCrossSlope()
,PolylineAnnotationManager.getLineCrossSlope()
,PolylineAnnotationManager.setLineElevationReference()
,PolylineAnnotationManager.getLineElevationReference()
,PolylineAnnotationManager.setLineWidthUnit()
,PolylineAnnotationManager.getLineWidthUnit()
as experimental. -
Introduce a
setCustomHttpHeader
method to allow the plugin to modify HTTP headers dynamically, huge thanks to @azaderdogan
Improvements 🏁
- Reduce installation size by ≈ 10 MB by redacting the rest of the debug symbols.
- Reduce the amount of background triggers to optimize battery usage when the app is not in the focus anymore.
Reduce CPU load by adding exponential backoff for failed connection attempts - Experimental
StandardBuildingState
has been removed. UseStandardBuildingsState
instead. - Vector icons supported in the location indicator layer
top-image
,bearing-image
, andshadow-image
properties onLocationIndicatorLayer
are now paint properties instead of layout properties.
Bug fixes 🐞
- Fix Dynamic View Annotations placement on high zoom levels
- Fix line placement symbol disappearing issue when in zoom level between 5 and 6
- Fixing missing vector images after style change
- Fix background layer not being updated on raster image was in-place update
- Fix background layer not being updated on color theme change
- Fixing LUT (look-up table) not being applied to in-place updated images.
- Fixing in-place updates for SDF (Signed Distance Field) images.
- Fix mipmaps for images updated inplace
- Support positive mask coordinates for vector images.
- Fix dark shades of gradient effect in the night preset
- Fix rarely missing background color
- Fix Custom Raster Source behavior on re-creation
- Previously, when the Custom Raster source was re-created within the same call chain, its rendering counterparts were not updated. This caused the CustomRasterSourceTileRenderer to remain not re-initialized.
- [Android] Fix rare NPE upon native view disposal.
- Fixed incorrect rgba to hsla conversion for white color
- Fix vector images rasterization
- Make katakana and CJK symbol rendered correctly in vertical writing mode
Other changes 🎉
- Mark
ClipLayer.clipLayerScope
andClipLayer.clipLayerTypes
as stable - Mark
BackgroundLayer.backgroundPitchAlignment
as experimental
Dependency Updates
v2.6.2
Bug fixes 🐞
- Fix a bug that may cause style packs to be either inaccessible or incorrect when updating an older tile store database created with Maps SDK 11.9 or earlier versions. In systems that have already used Maps SDK 11.10.0 through 11.10.1, a re-download of style packs may be necessary.
- Fix a map start time regression by speed up tile loading.
Dependency Updates
v2.7.0-rc.1
New Features ✨
- Introduces a setCustomHttpHeader method to allow the plugin to modify HTTP headers dynamically. #886
- Update Maps SDK to 11.11.0-rc.1
- Expose experimental API for setting ColorTheme on style imports.
- Expose use-theme properties for all annotation types and Puck3D layer.
Bug fixes 🐞
- Fixed incorrect rgba to hsla conversion for white color
- Fix vector images rasterization
- Make katakana and CJK symbol rendered correctly in vertical writing mode
v2.7.0-beta.1
New Features ✨
- Introduce
onZoomListener
toMapWidget
to allowing listening to zoom events resulting from user gestures: pinching, double-tapping, or quick-zooming. The event returnsMapContentGestureContext
, which includestouchPosition
(the location of the gesture on the screen),point
(the geographical coordinates of the gesture), andgestureState
(the state of the gesture). Seegestures_example.dart
for implementation guidance.
_onZoom(MapContentGestureContext context) {
print("OnZoom coordinate: {${context.point.coordinates.lng}, ${context.point.coordinates.lat}}" +
" point: {x: ${context.touchPosition.x}, y: ${context.touchPosition.y}}" +
" state: ${context.gestureState}");
}
- Expose
SymbolLayer.iconSizeScaleRange
,SymbolLayer.iconSizeScaleRangeExpression
,SymbolLayer.textSizeScaleRange
,SymbolLayer.textSizeScaleRangeExpression
,LineLayer.lineCrossSlope
,LineLayer.lineElevationReference
,LineLayer.lineWidthUnit
,FillLayer.fillElevationReference
. - Expose
PointAnnotationManager.setIconSizeScaleRange()
,PointAnnotationManager.getIconSizeScaleRange()
,PointAnnotationManager.setTextSizeScaleRange()
,PointAnnotationManager.getTextSizeScaleRange()
,PolygonAnnotationManager.setFillElevationReference()
,PolygonAnnotationManager.getFillElevationReference()
,PolylineAnnotationManager.setLineCrossSlope()
,PolylineAnnotationManager.getLineCrossSlope()
,PolylineAnnotationManager.setLineElevationReference()
,PolylineAnnotationManager.getLineElevationReference()
,PolylineAnnotationManager.setLineWidthUnit()
,PolylineAnnotationManager.getLineWidthUnit()
as experimental.
Improvements 🏁
- Reduce installation size by ≈ 10 MB by redacting the rest of the debug symbols.
- Reduce the amount of background triggers to optimize battery usage when the app is not in the focus anymore.
Reduce CPU load by adding exponential backoff for failed connection attempts - Experimental
StandardBuildingState
has been removed. UseStandardBuildingsState
instead. - Vector icons supported in the location indicator layer
top-image
,bearing-image
, andshadow-image
properties onLocationIndicatorLayer
are now paint properties instead of layout properties.
Bug fixes 🐞
- Fix Dynamic View Annotations placement on high zoom levels
- Fix line placement symbol disappearing issue when in zoom level between 5 and 6
- Fixing missing vector images after style change
- Fix background layer not being updated on raster image was in-place update
- Fix background layer not being updated on color theme change
- Fixing LUT (look-up table) not being applied to in-place updated images.
- Fixing in-place updates for SDF (Signed Distance Field) images.
- Fix mipmaps for images updated inplace
- Support positive mask coordinates for vector images.
- Fix dark shades of gradient effect in the night preset
- Fix rarely missing background color
- Fix Custom Raster Source behavior on re-creation
- Previously, when the Custom Raster source was re-created within the same call chain, its rendering counterparts were not updated. This caused the CustomRasterSourceTileRenderer to remain not re-initialized.
Other changes 🎉
- Mark
ClipLayer.clipLayerScope
andClipLayer.clipLayerTypes
as stable - Mark
BackgroundLayer.backgroundPitchAlignment
as experimental
Dependency Updates
v2.6.1
Bug fixes 🐞
- Fix LUT not being applied to in-place updated images.
- Fix in-place updates for SDF images.
- Fix background layer not being updated if raster image was updated in-place or if color theme changed.
- Vector icons supported in location indicator layer.
- Important:
top-image
,bearing-image
, andshadow-image
properties on LocationIndicatorLayer are now paint properties instead of layout properties.
- Important:
- Fix mipmaps for images updated in place.
- Ensure background color is correctly set.
- Fixing missing vector images after style change
Dependency Updates
v2.6.0
Features ✨ and improvements 🏁
- Introduce the experimental Interactions API, a toolset that allows you to handle interactions on both layers and basemap features for styles. This API introduces a new concept called
Featureset
, which allows Evolving Basemap styles, such as Standard, to export an abstract set of features, such as POI, buildings, and place labels, regardless of which layers they are rendered on. AnInteraction
can then be targeted to these features, modifying their state when interacted with. For example, you can add aTapInteraction
to your map which targets thebuildings
Featureset
. When a user taps on a building, the building will be highlighted and its color will change to blue.
var tapInteraction = TapInteraction(StandardBuildings(),
(_, feature) {
mapboxMap.setFeatureStateForFeaturesetFeature(feature, StandardBuildingState(highlight: true));
log("Building group: ${feature.group}");
});
mapboxMap.addInteraction(tapInteraction);
Specific changes:
- Introduce the experimental
MapboxMap.addInteractions
method, which allows you to add interactions to the map. - Introduce
TapInteraction
andLongTapInteraction
, which allow you to add tap and longTap interactions to the map. - Introduce
FeaturesetDescriptor
-- and convenience descriptors forStandardBuildings
,StandardPOIs
, andStandardPlaceLabels
-- which allow you to describe the featureset you wantInteractions
to target. - Introduce low-level methods for creating and manipulating interactive features:
queryRenderedFeatures
,querySourceFeatures
,setFeatureState
,getFeatureState
,removeFeatureState
,resetFeatureState
- For more guidance with using these new features see
interactive_features_example.dart
. - Align tap propagation behavior on Android and iOS.
- Add support for Swift Package Manager.
Bug fixes 🐞
- [Android] Fix bug in .setStyleImportConfigProperties() where map values were not being set correctly.
- [Android] Fix throwing NPE when converting a map with null values to a Value.
- Align tap propagation behavior on Android and iOS.