refresh
Refreshes the layer by re-rendering it. If a complete refresh is needed including triggering the associated data source to reload, then pass an argument of true
when calling the method. Otherwise, existing cached data will be used when the layer is re-rendered.
Parameters
clear
Whether to clear the layer's data source and re-fetch data.