From df83cc8ae5e4ca5db2c1ca79b0017263f83ef496 Mon Sep 17 00:00:00 2001 From: Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:46:48 -0700 Subject: marker updates --- src/client/views/collections/MapView/CollectionMapView.scss | 1 + src/client/views/collections/MapView/CollectionMapView.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/views/collections') diff --git a/src/client/views/collections/MapView/CollectionMapView.scss b/src/client/views/collections/MapView/CollectionMapView.scss index 6ad0f3a92..0dc226c04 100644 --- a/src/client/views/collections/MapView/CollectionMapView.scss +++ b/src/client/views/collections/MapView/CollectionMapView.scss @@ -26,6 +26,7 @@ position: absolute; left: 50%; margin-left: -120px; + margin-top: 5px; } } } diff --git a/src/client/views/collections/MapView/CollectionMapView.tsx b/src/client/views/collections/MapView/CollectionMapView.tsx index d7025f6da..1166de61c 100644 --- a/src/client/views/collections/MapView/CollectionMapView.tsx +++ b/src/client/views/collections/MapView/CollectionMapView.tsx @@ -14,7 +14,7 @@ import React = require("react"); import requestPromise = require("request-promise"); import ReactDOM from 'react-dom'; import { DragManager } from '../../../util/DragManager'; -import { MapMarker } from '../../nodes/MapMarker/MapMarker'; +import { MapMarker } from '../../nodes/MapBox/MapMarker'; /** @@ -60,8 +60,9 @@ const drawingManager = new google.maps.drawing.DrawingManager({ position: google.maps.ControlPosition.TOP_RIGHT, drawingModes: [ google.maps.drawing.OverlayType.MARKER, - google.maps.drawing.OverlayType.CIRCLE, - google.maps.drawing.OverlayType.POLYLINE, + // currently we are not supporting the following drawing mode on map, a thought for future development + // google.maps.drawing.OverlayType.CIRCLE, + // google.maps.drawing.OverlayType.POLYLINE, ], }, }); @@ -83,11 +84,9 @@ export default class CollectionMapView extends CollectionSubView(); - @observable private buttonRef = React.createRef(); @observable private searchMarkers: google.maps.Marker[] = []; @observable private searchBox = new window.google.maps.places.Autocomplete(this.inputRef.current!, options); -- cgit v1.2.3-70-g09d2