Refresh canvas after show/hide layers. Fix #8096