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..a5145a4 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]. @@ -40,7 +43,7 @@ class PositionOptions extends JsObjectWrapper { factory PositionOptions({ bool? enableHighAccuracy, num? maximumAge, - num? timeout, + num? timeout = 6000, }) => PositionOptions.fromJsObject(PositionOptionsJsImpl( enableHighAccuracy: enableHighAccuracy,