diff --git a/CHANGELOG.md b/CHANGELOG.md index 331d07e..c88b223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 4.1.0 + +### Added + +* Added the ability to set a custom Mapbox style using the new `mapStyleUri` on `MapsIndoorsWidget` + +### Fixed + +* Fixed issue where setting `mapsIndoorsTransitionLevel` on `MapsIndoorsWidget` had no effect +* Fixed error when parsing `MPRoute` objects + +### Changed + +* Updated Mapsindoors SDKs: + * iOS to 4.8.3 + + ## 4.0.2 ### Changed diff --git a/README.md b/README.md index 84666d2..4aa7f2b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This plugin is based on the MapsIndoors V4 SDK for Android and iOS. Add MapsIndoors to your `pubspec.yaml`. ```yaml -mapsindoors_mapbox: ^4.0.2 +mapsindoors_mapbox: ^4.1.0 ``` ### Android diff --git a/lib/core/mapsindoors_widget.dart b/lib/core/mapsindoors_widget.dart index 81b1edd..53169e5 100644 --- a/lib/core/mapsindoors_widget.dart +++ b/lib/core/mapsindoors_widget.dart @@ -16,6 +16,7 @@ class MapsIndoorsWidget extends UniqueWidget { final bool useDefaultMapsIndoorsStyle; final OnMapReadyListener? readyListener; final MPCameraPosition? initialCameraPosition; + final String? mapStyleUri; /// Build the widget, MapsIndoors currently supports the following platforms: /// * Android @@ -23,6 +24,8 @@ class MapsIndoorsWidget extends UniqueWidget { /// /// Has optional [MPFloorSelector] widget. Package includes a [MPDefaultFloorSelector]. /// + /// [mapStyleUri] When using Mapbox this can be set to use a custom Mapbox style. this setting is ignored if [useDefaultMapsIndoorsStyle] is not disabled. + /// /// [floorSelectorAlignment] defaults to [Alignment.centerRight] if none is provided. MapsIndoorsWidget({ this.mapLabelFont, @@ -39,6 +42,7 @@ class MapsIndoorsWidget extends UniqueWidget { this.readyListener, this.initialCameraPosition, this.useDefaultMapsIndoorsStyle = true, + this.mapStyleUri, }) : super(key: const GlobalObjectKey(MapsIndoorsWidget)) { if (readyListener != null) { MapcontrolPlatform.instance.setOnMapControlReadyListener(readyListener!); @@ -401,6 +405,7 @@ class _MapsIndoorsState extends State { "tileFadeInEnabled": widget.enabletileFadeIn, "mapsindoorsTransitionLevel": widget.mapsIndoorsTransitionLevel, "useDefaultMapsIndoorsStyle": widget.useDefaultMapsIndoorsStyle, + "mapStyleUri": widget.mapStyleUri, }), "floorSelectorAutoFloorChange": widget.floorSelector?.isAutoFloorChangeEnabled == true, diff --git a/pubspec.yaml b/pubspec.yaml index 7d38069..0063263 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mapsindoors_mapbox description: A MapsIndoors flutter plugin using the Mapbox platform for Android and iOS app usage. -version: 4.0.2 +version: 4.1.0 repository: https://github.com/MapsPeople/mapsindoors_flutter_mapbox homepage: https://www.mapsindoors.com/ @@ -19,9 +19,9 @@ flutter: dependencies: flutter: sdk: flutter - mapsindoors_mapbox_android: ^4.0.2 - mapsindoors_mapbox_ios: ^4.0.2 - mapsindoors_platform_interface: ^4.0.2 + mapsindoors_mapbox_android: ^4.1.0 + mapsindoors_mapbox_ios: ^4.1.0 + mapsindoors_platform_interface: ^4.1.0 dev_dependencies: