diff options
author | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-08-21 13:52:34 -0700 |
---|---|---|
committer | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-08-21 13:52:34 -0700 |
commit | becf6eeac2bd370fef2eb67c107ccfaeef5805e4 (patch) | |
tree | 7296dca266d3ccf383ac6e8ef325f012f95fce5b /src/client/views/nodes/MapBox/MapMarker.tsx | |
parent | db0682f46338277f4553a5a0ac8b83129237bfe5 (diff) |
render map marker gps updates
Diffstat (limited to 'src/client/views/nodes/MapBox/MapMarker.tsx')
-rw-r--r-- | src/client/views/nodes/MapBox/MapMarker.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/MapBox/MapMarker.tsx b/src/client/views/nodes/MapBox/MapMarker.tsx index 34057cf48..fbad0cf65 100644 --- a/src/client/views/nodes/MapBox/MapMarker.tsx +++ b/src/client/views/nodes/MapBox/MapMarker.tsx @@ -17,7 +17,6 @@ import { AnchorMenu } from "../../pdf/AnchorMenu"; import { FieldView, FieldViewProps } from "../FieldView"; import { FormattedTextBox } from "../formattedText/FormattedTextBox"; import { RichTextMenu } from "../formattedText/RichTextMenu"; -import { PresMovement } from "../PresBox"; type MarkerDocument = makeInterface<[typeof documentSchema]>; const MarkerDocument = makeInterface(documentSchema); @@ -27,6 +26,7 @@ export type Coordinates = { lng: number, } +//TODO: MapMarkerBox @observer export class MapMarker extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps & FieldViewProps, MarkerDocument>(MarkerDocument) { makeLinkAnchor(arg1: string, undefined: undefined, arg3: string) { @@ -52,6 +52,8 @@ export class MapMarker extends ViewBoxAnnotatableComponent<ViewBoxAnnotatablePro return tagDocs; } + @computed get lat() { return NumCast(this.dataDoc.lat) } + @computed get lng() { return NumCast(this.dataDoc.lng) } /** * Methods |