export getCenterAndExtent function