Fixed unshowed values
This commit is contained in:
parent
22ed4c0494
commit
0acb1f6829
@ -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
|
||||
|
@ -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 {
|
||||
<input type="range" min="10" max="200" onInput={(e) => {
|
||||
this.props.onUpdateAfstand(e.target.value, "Hoogstraat")
|
||||
}} />
|
||||
<output>{afstandNFI}</output>
|
||||
<output>{afstandHoogstraat}</output>
|
||||
</div>
|
||||
<div className='priceFilterBlock'>
|
||||
<li>Afstand Korhoen(minuten)</li>
|
||||
<input type="range" min="10" max="200" onInput={(e) => {
|
||||
this.props.onUpdateAfstand(e.target.value, "Korhoen")
|
||||
}} />
|
||||
<output>{afstandNFI}</output>
|
||||
<output>{afstandKorhoen}</output>
|
||||
</div>
|
||||
<div className='priceFilterBlock'>
|
||||
<li>Afstand Bakkersdijk(minuten)</li>
|
||||
<input type="range" min="10" max="200" onInput={(e) => {
|
||||
this.props.onUpdateAfstand(e.target.value, "Bakkersdijk")
|
||||
}} />
|
||||
<output>{afstandNFI}</output>
|
||||
<output>{afstandBakkersdijk}</output>
|
||||
</div>
|
||||
|
||||
<div className="location-list container">
|
||||
|
Loading…
Reference in New Issue
Block a user