Comparing version 0.0.1 to 0.0.2
@@ -20,7 +20,14 @@ var GeoJSON = function() { | ||
if( obj.length == 0 ) | ||
return; | ||
return true; | ||
if( Array.isArray(obj[0]) ) { | ||
for( var ai = 0; ai < obj.length; ai++ ) | ||
addpt(obj[ai]); | ||
for( var ai = 0; ai < obj.length; ai++ ) { | ||
if( addpt(obj[ai]) == false ) { | ||
obj.splice(ai, 1); | ||
ai--; | ||
} | ||
} | ||
} else { | ||
if( typeof obj[0] != 'number' || typeof obj[1] != 'number' ) | ||
return false; | ||
if( first || obj[0] < minx ) | ||
@@ -50,5 +57,5 @@ minx = obj[0]; | ||
addpt(obj.geometries[pi]); | ||
} else { | ||
} else | ||
addpt(obj.coordinates); | ||
} | ||
return true; | ||
} | ||
@@ -55,0 +62,0 @@ |
{ | ||
"name": "geojson-qt", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "utilities for storing and handling geojson geometry in a quadtree", | ||
@@ -14,4 +14,4 @@ "main": "lib/geojson.js", | ||
"dependencies": { | ||
"simple-quadtree": "~0.1.2" | ||
"simple-quadtree": "^0.1.2" | ||
} | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5733119
10079
Updatedsimple-quadtree@^0.1.2