Fixed _destroy function to clean up polylines and polygons in addition to markers