Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/atlas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# atlas

## v1.4.0 (2024-06-27)

- Added `polylineDottedIconAsset`

## v1.3.0 (2024-05-21)

- Added support for `Clustering`
Expand Down
6 changes: 5 additions & 1 deletion packages/atlas/lib/src/atlas.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -175,6 +177,7 @@ class Atlas extends StatelessWidget {
this.onPan,
this.deviceLocation,
this.deviceLocationIconAsset,
this.polylineDottedIconAsset,
this.country,
this.setPoliticalViews,
this.zoom,
Expand Down Expand Up @@ -226,6 +229,7 @@ class Atlas extends StatelessWidget {
onPan: onPan,
deviceLocation: deviceLocation,
deviceLocationIconAsset: deviceLocationIconAsset,
polylineDottedIconAsset: polylineDottedIconAsset,
country: country,
setPoliticalViews: setPoliticalViews,
zoom: zoom,
Expand Down
3 changes: 1 addition & 2 deletions packages/atlas/lib/src/provider.dart
Original file line number Diff line number Diff line change
@@ -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>(T argument);

Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down