Skip to content

Commit

Permalink
Pushing version 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Dahlin Holst committed Jan 9, 2025
1 parent ff76dd4 commit 6115fcd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/core/mapsindoors_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ 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
/// * iOS
///
/// 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,
Expand All @@ -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!);
Expand Down Expand Up @@ -401,6 +405,7 @@ class _MapsIndoorsState extends State<MapsIndoorsWidget> {
"tileFadeInEnabled": widget.enabletileFadeIn,
"mapsindoorsTransitionLevel": widget.mapsIndoorsTransitionLevel,
"useDefaultMapsIndoorsStyle": widget.useDefaultMapsIndoorsStyle,
"mapStyleUri": widget.mapStyleUri,
}),
"floorSelectorAutoFloorChange":
widget.floorSelector?.isAutoFloorChangeEnabled == true,
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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/

Expand All @@ -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:
Expand Down

0 comments on commit 6115fcd

Please sign in to comment.