openlayers 3 - How to update cluster source on wfs source -
i have wfs source , cluster source in vector layer. time time know changed in serverside wfs source, want update vector layer show new features. how can trigger update of wfs layer without interaction of user (especially change resolution)? clear()
on cluster source or vector source or combination of did not help. changed()
or map.render()
did not work. trigger somehow loader-function of vector source. help!
this related known issue: https://github.com/openlayers/ol3/pull/3917
i'd suggest using change pull request above in custom build, should enable reload layer (and cluster) calling clear on base source.
alternatively, initialize new cluster source each time call clear on base source, , replace cluster source calling setsource on layer.
Comments
Post a Comment