Don't fit subsunion when adding
This commit is contained in:
parent
e703057377
commit
91c67f0b5f
1 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ class SelectionMap extends Component {
|
||||||
zoom: props.zoom || 11,
|
zoom: props.zoom || 11,
|
||||||
distance: props.distance,
|
distance: props.distance,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
subsFit: true
|
subsFit: this.props.action !== action.add
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getMap = this.getMap.bind(this);
|
this.getMap = this.getMap.bind(this);
|
||||||
|
|
@ -68,11 +68,11 @@ class SelectionMap extends Component {
|
||||||
marker: nextMarker,
|
marker: nextMarker,
|
||||||
distance: nextProps.distance || this.state.distance
|
distance: nextProps.distance || this.state.distance
|
||||||
});
|
});
|
||||||
this.fit();
|
// this.fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
// this.fit();
|
this.fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
onFstBtn() {
|
onFstBtn() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue