CODE: Refactor MapView.