Javascript Polygon Around Closed Loop Polyline Issue Stack Overflow

Javascript Polygon Around Closed Loop Polyline Issue Stack Overflow