diff options
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/MapView/CollectionMapView.scss | 1 | ||||
| -rw-r--r-- | src/client/views/collections/MapView/CollectionMapView.tsx | 9 |
2 files changed, 5 insertions, 5 deletions
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<MapSchema, Part @observable private markerMap: { [id: string]: google.maps.Marker } = {}; @observable private center = defaultCenter; @observable private zoom = 2.5; - @observable private clickedLatLng = null; @observable private infoWindowOpen = false; @observable private bounds = new window.google.maps.LatLngBounds(); @observable private inputRef = React.createRef<HTMLInputElement>(); - @observable private buttonRef = React.createRef<HTMLDivElement>(); @observable private searchMarkers: google.maps.Marker[] = []; @observable private searchBox = new window.google.maps.places.Autocomplete(this.inputRef.current!, options); |
