sbb_maps_flutter 3.1.0
sbb_maps_flutter: ^3.1.0 copied to clipboard
Incorporate SBB styled maps into your flutter application based on Maplibre.
Changelog #
3.1.0 - 2026-11-16 #
3.0.1 - 2026-11-13 #
3.0.0 - 2026-11-02 #
⚠ BREAKING CHANGES #
- onPoiDeselected is a void Function(RokasPOI deselected) instead of a VoidCallback, in SBBMapPOISettings and SBBRokasPOIControllerImpl. See migration_guide_v3.md.
- on a floor switch, filters using the bare floor name ['==', 'floor', n], a plain ['==', ['get', 'floor'], n] read, or a level read under another comparison (!=, >=, match, == with a collator) are no longer rewritten. No published style uses them; custom styles have to use one of the forms listed in migration_guide_v3.md.
- the default UI shows the horizontal floor switcher instead of the vertical one. Pass floorSwitcherOrientation: SBBMapFloorSwitcherOrientation.vertical to keep it. See migration_guide_v3.md.
- remove SBBRokasMapStyler
- remove JOURNEY_MAPS_API_KEY environment variable fallback
- remove SBBPoiController.currentPOICategories
- remove aliases SBBMapFloorSelector, SBBMapFloorSelectorSmall and SBBMapFloorSelectorStyle
- remove deprecated SBBMapPOISettings.isPointOfInterestVisible (#334)
- SBBMap without a mapStyler shows the SBB Maps style family (sbbmaps_bright, sbbmaps_dark, sbbmaps_aerial) instead of the Legacy Journey Maps style family. See migration_guide_v3.md.
Features #
- horizontal floor switcher becomes the new default (#335) (d9881bb), closes #279
- make SBBMapsMapStyler the default map styler (#332) (0e0f41c), closes #278
- pass the deselected POI to onPoiDeselected (#336) (265f7b9), closes #322
- remove aliases SBBMapFloorSelector, SBBMapFloorSelectorSmall and SBBMapFloorSelectorStyle (2b89312)
- remove deprecated SBBMapPOISettings.isPointOfInterestVisible (#334) (2b89312)
- remove JOURNEY_MAPS_API_KEY environment variable fallback (2b89312)
- remove SBBPoiController.currentPOICategories (2b89312)
- remove SBBRokasMapStyler (2b89312)
Bug Fixes #
Code Refactoring #
2.9.1 - 2026-10-26 #
Bug Fixes #
- annotations are re-synced on every style load (#289) (#303) (4a514e0)
- apply updated poiSettings to the POI controller (#308) (5590a78)
- await the floor reset and match only real floor references (#319) (fa50f08)
- deselect the previous POI when a programmatic selection finds none (#320) (4d59465)
- drop a POI selection that a newer call overtook (#323) (#325) (322da74)
- floor changes replace the routing route instead of stacking copies (#287) (#311) (bee73a6)
- ignore input while the style reloads after a styler swap (#305) (d673693)
- keep the POI selection, highlight and callbacks consistent (#323) (#324) (6163213)
- leave the MapLibre controller to MapLibre (#309) (7128b25)
- onMapLongClick null guard fixed (#282) (61b4325)
- retry the annotator source after a failed add instead of hanging (#295) (#318) (d7c8487)
- selected floor is re applied after every style load (#290) (#304) (d3fc821)
- serialize annotator mutations so overlapping calls keep every update (#288) (#310) (32eada3)
- stop notifying listeners after map session is disposed (#296) (#307) (702973b)
- style load during first style load does not trigger callbacks twice (#306) (bc29958)
2.9.0 - 2026-09-23 #
Features #
- add
SBBMapFloorLabelBuilderfor localized floor labels (e.g. 'UG' / 'EG') (#268) (b9e399e) - add
SBBMapFloorSwitcherOrientationfor determining orientation in default UI (#268) (b9e399e) - add horizontal floor switcher
SBBMapHorizontalFloorSwitcher(#268) (b9e399e) - add small variant of horizontal floor switcher (#268) (b9e399e)
- add support for shortbread SBBMaps styles by adding
SBBMapsMapStyler(#258) (#260) (d4d97b5) - deprecate
SBBMapFloorSelectorin favor ofSBBMapVerticalFloorSwitcher(#268) (b9e399e)
Bug Fixes #
2.8.2 - 2026-09-18 #
Bug Fixes #
- animateCamera call dismisses tracking (#238) (8bf5e54)
- dispose only internal map styler (#242) (6c5451a)
- do not remove layers on disposed platform view (#235) (#255) (b2959bd)
- onMapLongClick is guarded by isStyleLoaded (#245) (f37a31b)
- poi selection correctly displays selected layer (#256) (4d06a6a)
- SBBMapSymbol.copyWith has same type as constructor (#254) (ed4ffd2)
- sets all properties - since maplibre_gl 0.25.0 propagates the non null fields as actual nulls. (4d06a6a)
2.8.0 - 2026-05-01 #
2.7.0 - 2025-12-19 #
2.6.2 - 2025-10-07 #
2.6.0 - 2025-05-25 #
2.5.0 - 2025-03-06 #
Features #
- add getCategoryFilterByLayer in SBBRokasPoiController (75f2c0e)
- add getVisibilityByLayer in SBBRokasPoiController (75f2c0e)
- add hideAllPointsOfInterests to SBBRokasPoiController (75f2c0e)
- add new ROKAS POI customization possibilities (#96) (75f2c0e)
- add SBBRokasPoiLayer with baseWithFloor and highlighted (75f2c0e)
- deprecate currentPOICategories, isPointsOfInterestVisible in SBBRokasPoiController (75f2c0e)
- deprecate isPointOfInterestVisible in SBBMapPoiSettings (75f2c0e)
- do not show ROKAS POIs by default, use showPointsOfInterest in SBBRokasPoiController (75f2c0e)
- dropped support for flutter 3 22 x (#93) (54b4f6f)
- extend hidePointsOfInterest with optional layer in SBBRokasPoiController (75f2c0e)
- extend showPointsOfInterest with optional layer in SBBRokasPoiController (75f2c0e)
- extend the set of possible SBBPoiCategoryType to match latest categories (75f2c0e)
- minimum supported Flutter SDK is 3.22.0 (#74) (a4fe10c)
Bug Fixes #
2.4.0 - 2024-11-27 #
Features #
- add convenience constructor for SBBMapProperties allDisabled (#33) (2b8abf2)
- deprecate JOURNEY_MAPS_API_KEY env. replace with JOURNEY_MAPS_TILES_API_KEY (#52) (3833568)
- deprecate old ROKAS map styles and replace with new map styles (08e7f7a)
- enable accessing INT ROKAS data (#54) (5aedf40)