new method api-polygon draw