Add function to create MapView