@loaders.gl/gis
Advanced tools
Comparing version 3.0.0-alpha.19 to 3.0.0-alpha.20
{ | ||
"name": "@loaders.gl/gis", | ||
"description": "Helpers for GIS category data", | ||
"version": "3.0.0-alpha.19", | ||
"version": "3.0.0-alpha.20", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.19", | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.20", | ||
"@mapbox/vector-tile": "^1.3.1", | ||
@@ -33,5 +33,5 @@ "pbf": "^3.2.1" | ||
"devDependencies": { | ||
"@math.gl/proj4": "^3.3.0" | ||
"@math.gl/proj4": "3.5.0-alpha.1" | ||
}, | ||
"gitHead": "4e0a11c8f59a3c3b96eab8e5b81469f72d682e96" | ||
"gitHead": "a21d85019d34c9045feae797e22ee7ce7f34d648" | ||
} |
@@ -125,5 +125,5 @@ export function binaryToGeoJson(data, type, format) { | ||
const {positions} = data; | ||
const polygonIndices = data.polygonIndices.value.filter(x => x >= startIndex && x <= endIndex); | ||
const polygonIndices = data.polygonIndices.value.filter((x) => x >= startIndex && x <= endIndex); | ||
const primitivePolygonIndices = data.primitivePolygonIndices.value.filter( | ||
x => x >= startIndex && x <= endIndex | ||
(x) => x >= startIndex && x <= endIndex | ||
); | ||
@@ -149,4 +149,7 @@ const multi = polygonIndices.length > 2; | ||
const endPolygonIndex = polygonIndices[i + 1]; | ||
const polygonCoordinates = polygonToGeoJson(data, startPolygonIndex, endPolygonIndex) | ||
.coordinates; | ||
const polygonCoordinates = polygonToGeoJson( | ||
data, | ||
startPolygonIndex, | ||
endPolygonIndex | ||
).coordinates; | ||
coordinates.push(polygonCoordinates); | ||
@@ -161,3 +164,3 @@ } | ||
const {positions} = data; | ||
const pathIndices = data.pathIndices.value.filter(x => x >= startIndex && x <= endIndex); | ||
const pathIndices = data.pathIndices.value.filter((x) => x >= startIndex && x <= endIndex); | ||
const multi = pathIndices.length > 2; | ||
@@ -164,0 +167,0 @@ |
@@ -126,3 +126,3 @@ // Convert GeoJSON features to flat binary arrays | ||
// Array of keys whose values are always numeric | ||
numericPropKeys: Object.keys(numericPropKeys).filter(k => numericPropKeys[k]) | ||
numericPropKeys: Object.keys(numericPropKeys).filter((k) => numericPropKeys[k]) | ||
}; | ||
@@ -129,0 +129,0 @@ } |
@@ -40,3 +40,3 @@ /** | ||
return array.map(item => { | ||
return array.map((item) => { | ||
return coordMap(item, fn); | ||
@@ -43,0 +43,0 @@ }); |
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 not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
197759
2479
+ Added@loaders.gl/loader-utils@3.0.0-alpha.20(transitive)
+ Added@loaders.gl/worker-utils@3.0.0-alpha.20(transitive)
- Removed@loaders.gl/loader-utils@3.0.0-alpha.19(transitive)
- Removed@loaders.gl/worker-utils@3.0.0-alpha.19(transitive)