Small fixes

This commit is contained in:
Edin Dazdarevic
2017-04-17 13:37:41 +02:00
parent 9de077df32
commit a9664dbcc0
5 changed files with 35 additions and 26 deletions

View File

@@ -102,19 +102,6 @@ export default class Filters extends React.Component {
}
onResetSearch (e) {
this.props.dispatch({
type: 'UPDATE_ROUTE',
action: {
params: {
minPrice: '',
maxPrice: '',
minSize: '',
maxSize: '',
rooms: '',
category: ''
}
}
})
this.props.dispatch({
type: 'RESET_FILTERS'
})

View File

@@ -95,7 +95,8 @@ class Main extends React.Component {
});
var options = {
componentRestrictions: {country: 'BA'}
componentRestrictions: {country: 'BA'},
types: [ 'geocode' ]
}
const regularIdle = () => {
@@ -163,6 +164,8 @@ class Main extends React.Component {
this.dispatch({type: 'MOBILE_MAP_VIEW'})
map.fitBounds(place.geometry.viewport)
}
map.setZoom(map.zoom + 1);
} else {
map.setCenter(place.geometry.location)
map.setZoom(18)