Small javascript fixes
This commit is contained in:
@@ -41,7 +41,7 @@ overviewer.collections = {
|
|||||||
/**
|
/**
|
||||||
* holds a reference to the spawn marker.
|
* holds a reference to the spawn marker.
|
||||||
*/
|
*/
|
||||||
'spawnMarker': null,
|
'spawnMarker': null
|
||||||
};
|
};
|
||||||
|
|
||||||
overviewer.classes = {
|
overviewer.classes = {
|
||||||
@@ -86,7 +86,7 @@ overviewer.gmap = {
|
|||||||
if(tile.x < 0 || tile.x >= Math.pow(2, zoom) ||
|
if(tile.x < 0 || tile.x >= Math.pow(2, zoom) ||
|
||||||
tile.y < 0 || tile.y >= Math.pow(2, zoom)) {
|
tile.y < 0 || tile.y >= Math.pow(2, zoom)) {
|
||||||
url += '/blank';
|
url += '/blank';
|
||||||
} else if(zoom == 0) {
|
} else if(zoom === 0) {
|
||||||
url += '/base';
|
url += '/base';
|
||||||
} else {
|
} else {
|
||||||
for(var z = zoom - 1; z >= 0; --z) {
|
for(var z = zoom - 1; z >= 0; --z) {
|
||||||
@@ -100,6 +100,6 @@ overviewer.gmap = {
|
|||||||
url += '?c=' + overviewerConfig.map.cacheTag;
|
url += '?c=' + overviewerConfig.map.cacheTag;
|
||||||
}
|
}
|
||||||
return(urlBase + url);
|
return(urlBase + url);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user