Made the map view store some variables that will be useful