diff --git a/bower.json b/bower.json index b1d4479..e31210e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "topojson", - "version": "1.6.19", + "version": "1.6.20", "main": "topojson.js", "scripts": [ "topojson.js" diff --git a/package.json b/package.json index 6552a80..a2c374f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "topojson", - "version": "1.6.19", + "version": "1.6.20", "description": "An extension to GeoJSON that encodes topology.", "keywords": [ "geojson", diff --git a/topojson.js b/topojson.js index 43b43f5..9488482 100644 --- a/topojson.js +++ b/topojson.js @@ -1,6 +1,6 @@ !function() { var topojson = { - version: "1.6.19", + version: "1.6.20", mesh: function(topology) { return object(topology, meshArcs.apply(this, arguments)); }, meshArcs: meshArcs, merge: function(topology) { return object(topology, mergeArcs.apply(this, arguments)); }, @@ -180,7 +180,7 @@ return { type: "MultiPolygon", arcs: components.map(function(polygons) { - var arcs = []; + var arcs = [], n; // Extract the exterior (unique) arcs. polygons.forEach(function(polygon) { @@ -414,7 +414,7 @@ } return topology; - }; + } function cartesianRingArea(ring) { var i = -1, @@ -429,7 +429,7 @@ area += a[0] * b[1] - a[1] * b[0]; } - return area * .5; + return area / 2; } function cartesianTriangleArea(triangle) {