From 96b66adc234d1af00ba8f57f077c7060182a2cb5 Mon Sep 17 00:00:00 2001 From: Ludwig Richter Date: Tue, 9 Mar 2021 13:18:35 +0100 Subject: [PATCH] fix(widget): Fix map widget to be conform with GPS data message type --- src/model/messages/gps-data.ts | 6 +++--- src/widgets/map-widget/widget.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/model/messages/gps-data.ts b/src/model/messages/gps-data.ts index 48a87c6..045cee8 100644 --- a/src/model/messages/gps-data.ts +++ b/src/model/messages/gps-data.ts @@ -4,9 +4,9 @@ import { DataMessage } from '../channels'; interface GpsDataData { [key: string]: JsonSerializable; satCount: number; - fix: number; - north: number; - east: number; + fix: boolean; + latitude: number; + longitude: number; time: number; className: string; } diff --git a/src/widgets/map-widget/widget.tsx b/src/widgets/map-widget/widget.tsx index d0bee33..7b1f257 100644 --- a/src/widgets/map-widget/widget.tsx +++ b/src/widgets/map-widget/widget.tsx @@ -65,8 +65,8 @@ export function Widget() { {latestMessage && (