Refreshable overlays example

You can refresh the overlay/baselayer state adding a boolean property to the layer:

        doRefresh: true

Open the console to see what's happening.