You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When computing tilerow number for the first row, the result of let tilerow = -Math.round((nw.y - Y0) / tilewidth); is 1 instead of 0 if using too "big" precision for latlng;
I fixed it with using Math.round(); instead.
The text was updated successfully, but these errors were encountered:
zigacernigoj
changed the title
Math.fllo
tilerow = -Math.round((nw.y - Y0) / tilewidth) returns wrong value for what should result in tilerow=0
Jul 10, 2018
zigacernigoj
changed the title
tilerow = -Math.round((nw.y - Y0) / tilewidth) returns wrong value for what should result in tilerow=0
tilerow = -Math.round((nw.y - Y0) / tilewidth) computes wrong value for what should result in tilerow=0
Jul 10, 2018
When computing tilerow number for the first row, the result of
let tilerow = -Math.round((nw.y - Y0) / tilewidth);
is 1 instead of 0 if using too "big" precision for latlng;I fixed it with using
Math.round();
instead.The text was updated successfully, but these errors were encountered: