Skip to main content

sbb_maps_flutter 3.1.0 copy "sbb_maps_flutter: ^3.1.0" to clipboard
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 #

Features #

  • show level_greyout for Floors other than 0 (#362) (62cf36c)
  • show the 2D View when no Floor is selected (#364) (3bb217c)

3.0.1 - 2026-11-13 #

Bug Fixes #

  • deps: update dependency maplibre_gl to ^0.28.0 (#349) (3fa41b1)
  • drop support for Flutter SDK 3.41 and support Flutter SDK 3.50 (#357) (691c6ac)

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 #

  • refresh available floors when the map becomes idle (#339) (#341) (8b6082d)

Code Refactoring #

  • rewrite the floor filter recursively like the iOS client (#337) (b6665f0), closes #281

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 SBBMapFloorLabelBuilder for localized floor labels (e.g. 'UG' / 'EG') (#268) (b9e399e)
  • add SBBMapFloorSwitcherOrientation for 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 SBBMapFloorSelector in favor of SBBMapVerticalFloorSwitcher (#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.1 - 2026-08-25 #

Bug Fixes #

  • deps: update dependency maplibre_gl to ^0.27.0 (#229) (d01f5ac)

2.8.0 - 2026-05-01 #

Features #

Bug Fixes #

2.7.1 - 2026-01-19 #

Bug Fixes #

  • deps: update dependency maplibre_gl to v0.25.0 (#188) (988d3d5)

2.7.0 - 2025-12-19 #

Features #

Bug Fixes #

  • drop support for flutter 3.29.x (#177) (7e32ae9)
  • first time style loaded waits until rokas style loaded (#185) (abc4d42)
  • properly dispose SBBMapAnnotator, SBBMapLocator and SBBPoiController (#169) (0a9d64e)

2.6.2 - 2025-10-07 #

Bug Fixes #

  • deps: update dependency geolocator to v14 (#161) (7f11c07)
  • deps: update maplibre_gl to ^0.24.0 (9fdc106)
  • platform: compileSDK must be set to 36 (9fdc106)
  • platform: drop support for Flutter 3.27.x (f2ec142)
  • platform: minimum iOS deployment target is 13.0 (9fdc106)

Miscellaneous Chores #

2.6.1 - 2025-07-11 #

Bug Fixes #

  • deps: bump flutter_maplibre_gl to 0.22.x (#132) (e67522b)

2.6.0 - 2025-05-25 #

Features #

  • add selectPointOfInterestAt to select poi after camera movement to coordinates (#128) (cd5f820)
  • drop support for flutter 3.24.x (#119) (85144d2)

Bug Fixes #

  • SBBMapFloorSelector only draws if floors available (#126) (b1904da)
  • filter POIs for categories and floors at the same time (#127) (d39fb85)
  • map style change does not update camera position (#124) (a796bc7)
  • poi controller available only called first style loaded (#125) (a375dc8)

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 #

  • deps: update dependency maplibre_gl to ^0.21.0 (#91) (2bb9c36)
  • repeatedly calling addAnnotations results in fatal crash (#78) (3f0dcaa)
  • synchronize style switching to filtered PointsOfInterests (75f2c0e)

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)

Bug Fixes #

2.3.1 - 2024-11-13 #

Bug Fixes #

  • dismissTracking called only when SBBMap leaves tracking mode (#28) (8ba8ae2)
  • initialCameraPosition null causes crash in SBBMap (#30) (57b15b7)
  • rebuilding the CustomMapStyler correctly wires it to the MapStyleButton (6ff2a70)

2.3.0 - 2024-11-04 #

Features #

  • add example app and make README complete (3d2b016)
  • add version 2_3_0 following open source standards (ab9aa0f)
  • add version 2_3_0 open source standards api keyless (6e2b988)
  • exclude v in release tag, exclude component in tag, update renovate (60529f7)
7
likes
135
points
1.55k
downloads

Documentation

API reference

Publisher

verified publishersbb.ch

Weekly Downloads

Incorporate SBB styled maps into your flutter application based on Maplibre.

Repository (GitHub)
View/report issues
Contributing

Topics

#map #maps #maplibre

License

MIT (license)

Dependencies

collection, flutter, logger, maplibre_gl, permission_handler

More

Packages that depend on sbb_maps_flutter