projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
17967f7
)
add a note on where the slow drawing on tablet sends slow script warnings
author
Robert Kaiser
<kairo@kairo.at>
Tue, 11 Sep 2012 15:25:00 +0000
(17:25 +0200)
committer
Robert Kaiser
<kairo@kairo.at>
Tue, 11 Sep 2012 15:25:00 +0000
(17:25 +0200)
js/map.js
patch
|
blob
|
blame
|
history
diff --git
a/js/map.js
b/js/map.js
index 5709a561b8c3a85e5671fb237baaacd5a53aaa83..5cd194e59268d17dda3175e399cdc55e97efa7fc 100644
(file)
--- a/
js/map.js
+++ b/
js/map.js
@@
-262,7
+262,7
@@
function drawMap() {
// Go through all the tiles we want.
// If any of them aren't loaded or being loaded, do so.
for (var x = Math.floor(xMin / size); x < Math.ceil(xMax / size); x++) {
// Go through all the tiles we want.
// If any of them aren't loaded or being loaded, do so.
for (var x = Math.floor(xMin / size); x < Math.ceil(xMax / size); x++) {
- for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) {
+ for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) {
// slow script warnings on the tablet appear here!
var xoff = (x * size - xMin) / gZoomFactor;
var yoff = (y * size - yMin) / gZoomFactor;
var tileKey = encodeIndex(x, y, gPos.z);
var xoff = (x * size - xMin) / gZoomFactor;
var yoff = (y * size - yMin) / gZoomFactor;
var tileKey = encodeIndex(x, y, gPos.z);