updated the markers function on the map view to accept the map as an
argument