map context: refresh map when changing visibility or style for a layer