Skip to content
Snippets Groups Projects
Commit fa26c3b4 authored by Henrique Varella Ehrenfried's avatar Henrique Varella Ehrenfried
Browse files

Set the right coordinates to reset map

parent 75deea35
No related branches found
No related tags found
1 merge request!1Login feature
......@@ -43,14 +43,11 @@ class Map extends Component {
let df = new DataFrame(response)
let df2 = new DataFrame(response2)
let latLng = df.select('latitude', 'longitude','geolocation_name').toCollection()
this.setState({geolocationsDF: df, locationsDF: df, categoriesDF: df2, latLng: latLng})
this.setState({geolocationsDF: df, locationsDF: df, categoriesDF: df2, latLng: latLng, originalLocation: [-14.424429, -49.265382]})
})
})
}
componentDidMount(){
let centerLocation = this.state.centerLocation
this.setState({'originalLocation': centerLocation});
}
render() {
let items = this.outerCollapsibleItems()
if (this.state.redirect){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment