From 5aa499f6bc140e76ebb26dd2d5eeffa5e539267c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Dabet?= Date: Thu, 31 Aug 2023 11:26:29 +0200 Subject: [PATCH] Add showUserHeading property to GeolocateControl --- lib/src/interop/ui/control/geolocate_control_interop.dart | 2 ++ lib/src/ui/control/geolocate_control.dart | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/src/interop/ui/control/geolocate_control_interop.dart b/lib/src/interop/ui/control/geolocate_control_interop.dart index c8adb50..203c779 100644 --- a/lib/src/interop/ui/control/geolocate_control_interop.dart +++ b/lib/src/interop/ui/control/geolocate_control_interop.dart @@ -12,6 +12,7 @@ class GeolocateControlOptionsJsImpl { external bool get trackUserLocation; external bool get showAccuracyCircle; external bool get showUserLocation; + external bool get showUserHeading; external factory GeolocateControlOptionsJsImpl({ PositionOptionsJsImpl? positionOptions, @@ -19,6 +20,7 @@ class GeolocateControlOptionsJsImpl { bool? trackUserLocation, bool? showAccuracyCircle, bool? showUserLocation, + bool? showUserHeading, }); } diff --git a/lib/src/ui/control/geolocate_control.dart b/lib/src/ui/control/geolocate_control.dart index 4dedcb5..8410eb2 100644 --- a/lib/src/ui/control/geolocate_control.dart +++ b/lib/src/ui/control/geolocate_control.dart @@ -11,6 +11,7 @@ class GeolocateControlOptions bool get trackUserLocation => jsObject.trackUserLocation; bool get showAccuracyCircle => jsObject.showAccuracyCircle; bool get showUserLocation => jsObject.showUserLocation; + bool get showUserHeading => jsObject.showUserHeading; factory GeolocateControlOptions({ required PositionOptions positionOptions, @@ -18,6 +19,7 @@ class GeolocateControlOptions bool? trackUserLocation, bool? showAccuracyCircle, bool? showUserLocation, + bool? showUserHeading, }) => GeolocateControlOptions.fromJsObject(GeolocateControlOptionsJsImpl( positionOptions: positionOptions.jsObject, @@ -25,6 +27,7 @@ class GeolocateControlOptions trackUserLocation: trackUserLocation, showAccuracyCircle: showAccuracyCircle, showUserLocation: showUserLocation, + showUserHeading: showUserHeading, )); /// Creates a new MapOptions from a [jsObject].