Open Koosch opened 4 years ago
Hi, I think the problem is here:
onChange: updateInputs,
onChange: function (e) { // <- you are using onChange twice + it does not have event object and e.target - it has data object, check readme on github
var Puissance = parseInt(e.target.updateInputs);
// update the map
map.setFilter('Puissance', ['==', ['number', ['get', 'LAM_Puissance']], Puissance]);
}
Hi,
I am looking for help to connect hosted geoJSON to this specific rangeSlider :
https://jsfiddle.net/IonDen/avcm6wpj/
My first try was with a simple slider :
HTML :
Javascript :
It works fine, but it would be a lot better if this data was range between two values, as the slider on the fiddle proposes. I tried some combinations, but it appears that there is no link at all between the range slider and the data. I followed the example here : http://ionden.com/a/plugins/ion.rangeSlider/demo_interactions.html
and get this error :
Would you have any clue on how to bind it to the geojson ?
Thank you !