From e502c7c66fde0c9923e0e9db8053867d57ba8fff Mon Sep 17 00:00:00 2001 From: KelryFernandes Date: Thu, 27 Jun 2024 15:42:45 +0100 Subject: [PATCH] added new property polylineDottedIconAsset --- packages/atlas/CHANGELOG.md | 4 ++++ packages/atlas/lib/src/atlas.dart | 6 +++++- packages/atlas/lib/src/provider.dart | 3 +-- packages/atlas/pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/atlas/CHANGELOG.md b/packages/atlas/CHANGELOG.md index a019ccb..d23dd96 100644 --- a/packages/atlas/CHANGELOG.md +++ b/packages/atlas/CHANGELOG.md @@ -1,5 +1,9 @@ # atlas +## v1.4.0 (2024-06-27) + +- Added `polylineDottedIconAsset` + ## v1.3.0 (2024-05-21) - Added support for `Clustering` diff --git a/packages/atlas/lib/src/atlas.dart b/packages/atlas/lib/src/atlas.dart index 7362bb9..377ca37 100644 --- a/packages/atlas/lib/src/atlas.dart +++ b/packages/atlas/lib/src/atlas.dart @@ -1,5 +1,4 @@ import 'package:atlas/atlas.dart'; -import 'package:atlas/src/cluster_options.dart'; import 'package:flutter/widgets.dart'; /// `Atlas` is a Flutter [Widget] which abstracts the underlying map provider @@ -125,6 +124,9 @@ class Atlas extends StatelessWidget { /// Sets the device location icon asset path. final String? deviceLocationIconAsset; + /// Sets the dotted line icon asset path. + final String? polylineDottedIconAsset; + /// Sets the country name. final String? country; @@ -175,6 +177,7 @@ class Atlas extends StatelessWidget { this.onPan, this.deviceLocation, this.deviceLocationIconAsset, + this.polylineDottedIconAsset, this.country, this.setPoliticalViews, this.zoom, @@ -226,6 +229,7 @@ class Atlas extends StatelessWidget { onPan: onPan, deviceLocation: deviceLocation, deviceLocationIconAsset: deviceLocationIconAsset, + polylineDottedIconAsset: polylineDottedIconAsset, country: country, setPoliticalViews: setPoliticalViews, zoom: zoom, diff --git a/packages/atlas/lib/src/provider.dart b/packages/atlas/lib/src/provider.dart index 699d631..7503932 100644 --- a/packages/atlas/lib/src/provider.dart +++ b/packages/atlas/lib/src/provider.dart @@ -1,8 +1,6 @@ import 'package:atlas/atlas.dart'; import 'package:flutter/widgets.dart'; -import 'cluster_options.dart'; - /// Callback function taking a single argument. typedef void ArgumentCallback(T argument); @@ -44,6 +42,7 @@ abstract class Provider { final MapLanguage? mapLanguage, final DeviceLocation? deviceLocation, final String? deviceLocationIconAsset, + final String? polylineDottedIconAsset, final String? country, final bool? setPoliticalViews, final double? zoom, diff --git a/packages/atlas/pubspec.yaml b/packages/atlas/pubspec.yaml index 3b5f10c..3572b96 100644 --- a/packages/atlas/pubspec.yaml +++ b/packages/atlas/pubspec.yaml @@ -1,6 +1,6 @@ name: atlas description: An extensible map abstraction for Flutter with support for multiple map providers -version: 1.3.0 +version: 1.4.0 repository: https://github.com/bmw-tech/atlas issue_tracker: https://github.com/bmw-tech/atlas/issues homepage: https://bmw-tech.github.io/atlas