X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=f27b0191c51efa38c6108e7cae000a3d56d22a75;hp=8b4ffbbd0aead264d492d60b0d9c8d5d1090b547;hb=814b6b2858eea707e5a3977881ec9f62253710a4;hpb=6de10e15dd696eaa97a24f3af50e2b98c5bbe537 diff --git a/js/map.js b/js/map.js index 8b4ffbb..f27b019 100644 --- a/js/map.js +++ b/js/map.js @@ -184,6 +184,8 @@ function setMapStyle() { if (mapSel.selectedIndex >= 0 && gActiveMap != mapSel.value) { gActiveMap = mapSel.value; gTiles = {}; + document.getElementById("copyright").innerHTML = + gMapStyles[gActiveMap].copyright; drawMap(); } } @@ -263,7 +265,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++) { - 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);