add Polyline and Polygon getCenter, openPopup in centroid