aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--socket.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.js b/socket.js
index e819e17..524312e 100644
--- a/socket.js
+++ b/socket.js
@@ -46,10 +46,10 @@ class Socket extends retryws {
}
});
- this.fetch = function(coords){ //coords is a list of quadruplets, each a min/max pair of y/x coordinate pairs which describes at most 1000 tiles
+ this.fetch = function(coords){ //coords is a list of min/max pairs of y/x coordinate pairs which each describe at most 1000 tiles
//Unchecked for speed
for (var i=0; i<coords.length; i++){
- coords[i] = {"minY":coords[i][0], "minX":coords[i][1], "maxY":coords[i][2], "maxX":coords[i][3]};
+ coords[i] = {"minY":coords[i][0][0], "minX":coords[i][0][1], "maxY":coords[i][1][0], "maxX":coords[i][1][1]};
}
this.send( JSON.stringify({
"fetchRectangles": coords,