0

Moved gmap tiles into a tiles/ subdirectory for a cleaner gmap final output (output directory contains just index.html and tiles/)

This commit is contained in:
Gregory Short
2010-09-06 19:58:56 -05:00
parent 56a8970bdc
commit bf07d3d10c
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
</script>
<script type="text/javascript">
var config = {
path: '.',
path: 'tiles',
fileExt: 'png',
tileSize: 384,
defaultZoom: 1,
@@ -30,10 +30,10 @@
for(var z = zoom - 1; z >= 0; --z) {
var x = Math.floor(tile.x / Math.pow(2, z)) % 2;
var y = Math.floor(tile.y / Math.pow(2, z)) % 2;
url += '/' + (x + 2 * y)
url += '/' + (x + 2 * y);
}
}
url += '.' + config.fileExt;
url = config.path + url + '.' + config.fileExt;
return(url);
},
tileSize: new google.maps.Size(config.tileSize, config.tileSize),