complete the function of drawing the map