addCopyExtent function

Copy current view extent to the clipboard