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