Completed the map drawing method