Releases: mapbox/mapbox-maps-flutter
Releases · mapbox/mapbox-maps-flutter
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-imageproperties 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. AnInteractioncan then be targeted to these features, modifying their state when interacted with. For example, you can add aTapInteractionto your map which targets thebuildingsFeatureset. 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.addInteractionsmethod, which allows you to add interactions to the map. - Introduce
TapInteractionandLongTapInteraction, 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 wantInteractionsto 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.
Dependency Updates
2.5.2
2.6.0-rc.1
Important
The iOS minimum deployment target is now iOS 14.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. AnInteractioncan then be targeted to these features, modifying their state when interacted with. For example, you can add aTapInteractionto your map which targets thebuildingsFeatureset. 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.addInteractionsmethod, which allows you to add interactions to the map. - Introduce
TapInteractionandLongTapInteraction, 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 wantInteractionsto 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.
Dependency Updates
2.6.0-beta.1
2.5.1
2.5.0
Known issues 🛑
We do not recommend using this version when deploying on Android. We are actively working on a patch release (2.5.1) to fix the following critical issue:
- When a map is currently visible and user press home button the
MapboxRenderThreadconsumes CPU (potentially keeping one CPU busy).
Features ✨ and improvements 🏁
- Added viewport support to
MapWidget. Control the camera’s initial position and behavior by specifying a ViewportState subclass in the viewport parameter. This allows for centering on specific locations, following the user’s position, or showing an overview of a geometry. If no viewport is provided, the map uses its default camera settings.MapWidget( viewport: CameraViewportState( center: Point(coordinates: Position(-117.918976, 33.812092)), zoom: 15.0, ), );
- Marked
ClipLayeras stable. - Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
- Updated experimental
symbolElevationReferenceproperty onSymbolLayer. - Introduced
backgroundPitchAlignmentproperty onBackgroundLayer. - Introduced experimental
fillZOffsetproperty onFillLayer. - Introduced experimental
fillExtrusionBaseAlignmentandfillExtrusionHeightAlignmentproperties onFillExtrusionLayer. - Marked get and set
ZOffsetmethods onPolygonAnnotationManager,PolylineAnnotationManager, andPointAnnotationManageras experimental. - Marked get and set
symbolElevationReferencemethods onPointAnnotationManageras experimental. - Marked get and set line trim methods on
PolylineAnnotationManageras experimental. - Added a property
emphasisCircleGlowRangetoLocationIndicatorLayerto control the glow effect of the emphasis circle – from the solid start to the fully transparent end. - Added experimental
ZOffsetproperties toPolylineAnnotationMessenger,PolygonAnnotationMessenger, andPointAnnotationMessenger. - Introduced
FillExtrusionBaseAlignmentandFillExtrusionHeightAlignment, andBackgroundPitchAlignmentenums.
- Updated experimental
Dependency Updates
2.5.0-rc.1
Features ✨ and improvements 🏁
Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
- Update experimental
symbolElevationReferenceproperty onSymbolLayer. - Introduce
backgroundPitchAlignmentproperty onBackgroundLayer. - Introduce experimental
fillZOffsetproperty onFillLayer. - Introduce experimental
fillExtrusionBaseAlignmentandfillExtrusionHeightAlignmentproperties onFillExtrusionLayer. - Mark get and set
ZOffsetmethods onPolygonAnnotationManager,PolylineAnnotationManager, andPointAnnotationManageras experimental. - Mark get and set
symbolElevationReferencemethods onPointAnnotationManageras experimental. - Mark get and set line trim methods on
PolylineAnnotationManageras experimental. - Add a property
emphasisCircleGlowRangetoLocationIndicatorLayerto control the glow effect of the emphasis circle – from the solid start to the fully transparent end. - Add experimental
ZOffsetproperties toPolylineAnnotationMessenger,PolygonAnnotationMessenger, andPointAnnotationMessenger. - Introduce
FillExtrusionBaseAlignmentandFillExtrusionHeightAlignment, andBackgroundPitchAlignmentenums.
Dependency Updates
2.5.0-beta.1
Features ✨ and improvements 🏁
- Added viewport support to
MapWidget. Control the camera’s initial position and behavior by specifying a ViewportState subclass in the viewport parameter. This allows for centering on specific locations, following the user’s position, or showing an overview of a geometry. If no viewport is provided, the map uses its default camera settings. PR by @evil159
MapWidget(
viewport: CameraViewportState(
center: Point(coordinates: Position(-117.918976, 33.812092)),
zoom: 15.0,
),
);- Update Turf dependency to
4.0.0-beta.1