diff --git a/smppir-checkin-portal/src/Pages/Map.js b/smppir-checkin-portal/src/Pages/Map.js index 713a3e50e1a8cd20a735d9314998a4f0ffe78e6d..a0d8ba8c9b55f99420b9a2da8d81db0d3c7393d9 100644 --- a/smppir-checkin-portal/src/Pages/Map.js +++ b/smppir-checkin-portal/src/Pages/Map.js @@ -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){