From 992b5ca20414c28eba255cf319eb2b762cb69933 Mon Sep 17 00:00:00 2001
From: Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>
Date: Tue, 13 Jul 2021 11:05:23 -0700
Subject: npm, sharp, npm-gyp issue, try relaunch

---
 src/client/views/nodes/MapMarker/MapMarker.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/client/views/nodes/MapMarker/MapMarker.tsx

(limited to 'src/client/views/nodes/MapMarker/MapMarker.tsx')

diff --git a/src/client/views/nodes/MapMarker/MapMarker.tsx b/src/client/views/nodes/MapMarker/MapMarker.tsx
new file mode 100644
index 000000000..9705986a8
--- /dev/null
+++ b/src/client/views/nodes/MapMarker/MapMarker.tsx
@@ -0,0 +1,23 @@
+//TODO: mock imagebox, create marker as a doc
+import { IReactionDisposer } from "mobx";
+import { observer } from "mobx-react";
+import * as React from "react";
+import { documentSchema } from "../../../../fields/documentSchemas";
+import { createSchema, makeInterface } from "../../../../fields/Schema";
+import { ViewBoxBaseComponent } from "../../DocComponent";
+import { FieldView, FieldViewProps } from "../FieldView";
+
+export const markerSchema = createSchema({
+    lat: "number",
+    lng: "number"
+});
+
+type MarkerDocument = makeInterface<[typeof markerSchema, typeof documentSchema]>;
+const MarkerDocument = makeInterface(markerSchema, documentSchema);
+
+@observer
+export class MapMarker extends ViewBoxBaseComponent<FieldViewProps, MarkerDocument>(MarkerDocument) {
+    public static LayoutString(fieldKey: string) { return FieldView.LayoutString(MapMarker, fieldKey); }
+    private _markerRef: React.RefObject<google.maps.Marker> = React.createRef();
+    private _disposers: { [name: string]: IReactionDisposer } = {};
+}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

