Skip to content

Commit

Permalink
fix ring classification
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Mar 16, 2016
1 parent 8a8f615 commit e4ec4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vectortilefeature.js
Expand Up @@ -210,7 +210,7 @@ function classifyRings(rings) {
var area = signedArea(rings[i]);
if (area === 0) continue;

if (!ccw) ccw = area < 0;
if (ccw === undefined) ccw = area < 0;

if (ccw === area < 0) {
if (polygon) polygons.push(polygon);
Expand Down

0 comments on commit e4ec4c6

Please sign in to comment.