added rowPolygon function to Map