Update polygon.class.js
Update polyline.class.js
Update polyline.class.js
Merge pull request #1664 from asturur/Polygon-and-Polylines-code-reduction

Polygon and polylines code reduction