Is it possible to reload data with new properties?
FarhodKurbonov opened this issue · 2 comments
FarhodKurbonov commented
In source code I found setData method that clear previous layers and add new ones. In Examples airports.html I also found using reloadData method. Is it possible to reload not only new data but with new properties(layerOptions, displayOptions and so on)?
sfairgrieve commented
I believe you should be able to do something like this for now:
dataLayer.setOptions(<new options>);
dataLayer.reloadData();
I can also add a method that makes this easier. Let me know if the above example works for you.
sfairgrieve commented
The DataLayer setOptions method should now do what I mentioned in my previous comment. Let me know if this is what you were looking for/makes sense.