diff --git a/react_usse/src/App.js b/react_usse/src/App.js index 637ba337..81905858 100644 --- a/react_usse/src/App.js +++ b/react_usse/src/App.js @@ -84,7 +84,7 @@ class App extends Component { } else { showingLocations = allLocations } - if (showingLocations.length === 0) {showingLocations = allLocations} + // if (showingLocations.length === 0) {showingLocations = allLocations} // showingLocations.sort(sortBy('name')); const position = [51.505, -0.09]; // Latitude and Longitude of the map center diff --git a/react_usse/src/MapContainer.js b/react_usse/src/MapContainer.js index b47eec5f..6d6dc4b2 100644 --- a/react_usse/src/MapContainer.js +++ b/react_usse/src/MapContainer.js @@ -106,6 +106,9 @@ class LeafletMap extends Component { let { markers} = this.props let { maxPrice} = this.props let { afstandNFI} = this.props + let { afstandHoogstraat} = this.props + let { afstandKorhoen} = this.props + let { afstandBakkersdijk} = this.props let { activeMarker, activeMarkerProps} = this.state; if (markers === undefined || markers.length === 0) { console.log('No markers') @@ -147,21 +150,21 @@ class LeafletMap extends Component { { this.props.onUpdateAfstand(e.target.value, "Hoogstraat") }} /> - {afstandNFI} + {afstandHoogstraat}
  • Afstand Korhoen(minuten)
  • { this.props.onUpdateAfstand(e.target.value, "Korhoen") }} /> - {afstandNFI} + {afstandKorhoen}
  • Afstand Bakkersdijk(minuten)
  • { this.props.onUpdateAfstand(e.target.value, "Bakkersdijk") }} /> - {afstandNFI} + {afstandBakkersdijk}