From 91c67f0b5f9efc1c73f2b59e41463dc9c88095f2 Mon Sep 17 00:00:00 2001 From: vjrj Date: Fri, 2 Mar 2018 07:22:19 +0100 Subject: [PATCH] Don't fit subsunion when adding --- imports/ui/components/SelectionMap/SelectionMap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imports/ui/components/SelectionMap/SelectionMap.js b/imports/ui/components/SelectionMap/SelectionMap.js index a621e2e..88889bf 100644 --- a/imports/ui/components/SelectionMap/SelectionMap.js +++ b/imports/ui/components/SelectionMap/SelectionMap.js @@ -42,7 +42,7 @@ class SelectionMap extends Component { zoom: props.zoom || 11, distance: props.distance, draggable: true, - subsFit: true + subsFit: this.props.action !== action.add }; this.getMap = this.getMap.bind(this); @@ -68,11 +68,11 @@ class SelectionMap extends Component { marker: nextMarker, distance: nextProps.distance || this.state.distance }); - this.fit(); + // this.fit(); } componentDidUpdate() { - // this.fit(); + this.fit(); } onFstBtn() {