Skip to content

Releases: mapbox/mapbox-maps-flutter

v2.23.1

13 May 09:56

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.23.1
    • For platform-specific updates see: iOS & Android

v2.22.3

07 May 05:08

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.22.3
    • For platform-specific updates see: iOS & Android

v2.24.0-rc.1

07 May 07:55

Choose a tag to compare

v2.24.0-rc.1 Pre-release
Pre-release

New Features ✨

  • Add TileStore.setOptionForKey to allow setting custom tile store options by arbitrary string key, in addition to the existing predefined options (diskQuota, mapboxApiUrl, tileUrlTemplate).

Dependency Updates

  • Update Mapbox Maps SDK to v11.24.0-rc.1
    • For platform-specific updates see: iOS & Android

v2.21.4

06 May 13:45

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.21.4
    • For platform-specific updates see: iOS & Android

v2.23.0

30 Apr 13:06

Choose a tag to compare

Note

There is a known crash when calling TileStore.createAt on Android. This will be addressed in v2.24.0-rc.1.


Deprecations ⚠️

  • Deprecate MapWidget.cameraOptions in favor of the viewport API — existing usage still works but will be removed in next major version; migrate camera initialization and updates to the viewport API.
    // Before
    MapWidget(
      cameraOptions: CameraOptions(
        center: Point(coordinates: Position(-117.918976, 33.812092)),
        zoom: 15.0,
      ),
    );

    // After
    MapWidget(
      viewport: CameraViewportState(
        center: Point(coordinates: Position(-117.918976, 33.812092)),
        zoom: 15.0,
      ),
    );
  • Deprecate MapWidget.onTapListener and MapWidget.onLongTapListener in favor of the MapboxMap.addInteraction API — tap/long-tap handlers will be removed in next major version; migrate to the Interactions API for richer feature-aware handling.
    Other gesture listeners (scroll, zoom, etc.) are unaffected.
  // Before
  MapWidget(
    onTapListener: (context) {
      print('Tapped at ${context.point}');
    },
    onLongTapListener: (context) {
      print('Long-tapped at ${context.point}');
    },
  );

  // After — on the map itself
  mapboxMap.addInteraction(TapInteraction.onMap((context) {
    print('Tapped at ${context.point}');
  }));
  mapboxMap.addInteraction(LongTapInteraction.onMap((context) {
    print('Long-tapped at ${context.point}');
  }));

Dependency Updates

  • Update Mapbox Maps SDK to v11.23.0
    • For platform-specific updates see: iOS & Android

v2.22.1

28 Apr 15:49

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.22.1
    • For platform-specific updates see: iOS & Android

v2.21.3

24 Apr 13:19

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.21.3
    • For platform-specific updates see: iOS & Android

v2.23.0-rc.1

22 Apr 07:16

Choose a tag to compare

v2.23.0-rc.1 Pre-release
Pre-release

Deprecations ⚠️

  • Deprecate MapWidget.cameraOptions in favor of the viewport API — existing usage still works but will be removed in next major version; migrate camera initialization and updates to the viewport API.
    // Before
    MapWidget(
      cameraOptions: CameraOptions(
        center: Point(coordinates: Position(-117.918976, 33.812092)),
        zoom: 15.0,
      ),
    );

    // After
    MapWidget(
      viewport: CameraViewportState(
        center: Point(coordinates: Position(-117.918976, 33.812092)),
        zoom: 15.0,
      ),
    );
  • Deprecate MapWidget.onTapListener and MapWidget.onLongTapListener in favor of the MapboxMap.addInteraction API — tap/long-tap handlers will be removed in next major version; migrate to the Interactions API for richer feature-aware handling.
    Other gesture listeners (scroll, zoom, etc.) are unaffected.
  // Before
  MapWidget(
    onTapListener: (context) {
      print('Tapped at ${context.point}');
    },
    onLongTapListener: (context) {
      print('Long-tapped at ${context.point}');
    },
  );

  // After — on the map itself
  mapboxMap.addInteraction(TapInteraction.onMap((context) {
    print('Tapped at ${context.point}');
  }));
  mapboxMap.addInteraction(LongTapInteraction.onMap((context) {
    print('Long-tapped at ${context.point}');
  }));

Dependency Updates

  • Update Mapbox Maps SDK to v11.23.0-rc.1
    • For platform-specific updates see: iOS & Android

v2.22.0

17 Apr 08:11

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.22.0
    • For platform-specific updates see: iOS & Android

v.2.21.2

17 Apr 08:09

Choose a tag to compare

Dependency Updates

  • Update Mapbox Maps SDK to v11.21.2
    • For platform-specific updates see: iOS & Android