aboutsummaryrefslogtreecommitdiff
path: root/socket.js
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:48:01 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:48:01 -0500
commit283faa1479cb0a640ab7055bced6aafea0416835 (patch)
tree9f75afcc4dd0d368fb72afe92127523f3395aa69 /socket.js
parent1e9ae892df9b0da85fde94bdfbfdc030c15992d7 (diff)
unified socket.fetch coord notation
Diffstat (limited to 'socket.js')
-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,