change the map ceter point when slide points in pathPreview