Force the view to refresh on layer visibility changes