Refactor MapActivity to be a fragment rather than an activity, so it behaves in the tablet layout