geojson-vt
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "geojson-vt", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Slice GeoJSON data into vector tiles efficiently", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mapbox/geojson-vt", |
@@ -79,4 +79,9 @@ ## geojson-vt — GeoJSON Vector Tiles | ||
##### 2.2.0 (Jun 9, 2015) | ||
##### 2.3.0 (Jul 29, 2016) | ||
- Improved tiling algorithm to avoid redundant clipping when tiles are requested in an empty area. | ||
- Fixed issues with GeoJSON that only has data above 180 or below -180 longitude. | ||
##### 2.2.0 (Jun 9, 2016) | ||
- Fixed ring winding order for polygons and multipolygons in accordance with vector tile specification 2.0. | ||
@@ -83,0 +88,0 @@ - Fixed handling of features with null geometry (now ignored instead of throwing an error). |
@@ -150,6 +150,8 @@ 'use strict'; | ||
if (tl) stack.push(tl, z + 1, x * 2, y * 2); | ||
if (bl) stack.push(bl, z + 1, x * 2, y * 2 + 1); | ||
if (tr) stack.push(tr, z + 1, x * 2 + 1, y * 2); | ||
if (br) stack.push(br, z + 1, x * 2 + 1, y * 2 + 1); | ||
if (features.length) { | ||
stack.push(tl || [], z + 1, x * 2, y * 2); | ||
stack.push(bl || [], z + 1, x * 2, y * 2 + 1); | ||
stack.push(tr || [], z + 1, x * 2 + 1, y * 2); | ||
stack.push(br || [], z + 1, x * 2 + 1, y * 2 + 1); | ||
} | ||
} | ||
@@ -156,0 +158,0 @@ |
@@ -13,3 +13,3 @@ 'use strict'; | ||
if (left || right) { | ||
merged = clip(features, 1, -buffer, 1 + buffer, 0, intersectX, -1, 2); // center world copy | ||
merged = clip(features, 1, -buffer, 1 + buffer, 0, intersectX, -1, 2) || []; // center world copy | ||
@@ -16,0 +16,0 @@ if (left) merged = shiftFeatureCoords(left, 1).concat(merged); // merge left into center |
@@ -30,3 +30,3 @@ 'use strict'; | ||
t.equal(index.total, 29); | ||
t.equal(index.total, 37); | ||
@@ -33,0 +33,0 @@ t.end(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1808733
40
8217
148