timwis/leaflet-choropleth

change valueProperty dynamically

iacopoff opened this issue · 0 comments

Hi, I was wondering if it was possible to define the valueProperty of a layer dynamically.

Let's say that i have a geojson with different properties, is it possible to set the valueProperty to a variable that changes according to what the user select using an input box or slider?

at the moment i am recreating the whole layer every time.

thanks!