Making the mapPath Class generic.
Use the MapPath for the polygon as well