aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/MapView/CollectionMapView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/MapView/CollectionMapView.tsx')
-rw-r--r--src/client/views/collections/MapView/CollectionMapView.tsx9
1 files changed, 4 insertions, 5 deletions
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);