add map_location rotate functions, and tests
Merge branch 'add_map_location_rotate'