refresh map canvas after pasting style (fix #9908)