Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.7.4

- Added `showAssetsLabels`, `showGeofencesLabels`, `showPoisLabels`, and `showAssetsTrails` boolean fields to `Locator` and `LocatorInput`.
- `enableSidebar` and `showAssetsTrails` default to `true` in `LocatorInput`.

## 3.7.3
- Refactor `CaclInput`.

Expand Down
108 changes: 76 additions & 32 deletions lib/src/locator/locator.freezed.dart

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion lib/src/locator/locator.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/src/locator/src/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ abstract class Locator with _$Locator {
/// [enableSidebar] indicates if the sidebar is enabled for this locator
bool? enableSidebar,

/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator
bool? showAssetsLabels,

/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator
bool? showGeofencesLabels,

/// [showPoisLabels] indicates if the POI label overlays are visible for this locator
bool? showPoisLabels,

/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator
bool? showAssetsTrails,

/// [boundary] is the geographic bounding box of the locator
LocatorBoundary? boundary,

Expand Down Expand Up @@ -461,6 +473,10 @@ abstract class Locator with _$Locator {
}

enableSidebar
showAssetsLabels
showGeofencesLabels
showPoisLabels
showAssetsTrails
boundary {
topleft {
latitude
Expand Down
14 changes: 13 additions & 1 deletion lib/src/locator/src/locator_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@ abstract class LocatorInput with _$LocatorInput {
String? mapLayerId,

/// [enableSidebar] indicates if the sidebar is enabled for this locator
@Default(false) bool enableSidebar,
@Default(true) bool enableSidebar,

/// [showAssetsLabels] indicates if the asset label overlays are visible for this locator
@Default(false) bool showAssetsLabels,

/// [showGeofencesLabels] indicates if the geofence label overlays are visible for this locator
@Default(false) bool showGeofencesLabels,

/// [showPoisLabels] indicates if the POI label overlays are visible for this locator
@Default(false) bool showPoisLabels,

/// [showAssetsTrails] indicates if the asset trail lines are visible for this locator
@Default(true) bool showAssetsTrails,

/// [boundary] is the geographic bounding box of the locator
LocatorBoundaryInput? boundary,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API.
name: layrz_models
version: "3.7.3"
version: "3.7.4"
repository: https://github.com/goldenm-software/layrz_models

environment:
Expand Down
Loading