Finished getMapLoc function, but did not test.