diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:48:01 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:48:01 -0500 |
commit | 283faa1479cb0a640ab7055bced6aafea0416835 (patch) | |
tree | 9f75afcc4dd0d368fb72afe92127523f3395aa69 | |
parent | 1e9ae892df9b0da85fde94bdfbfdc030c15992d7 (diff) |
unified socket.fetch coord notation
-rw-r--r-- | socket.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |