Re: Custom Maps in v2
Nice tutorial. Just a small comment:
G_NORMAL_TYPE.getTileLayers()[0].getTileUrl() returns
function(a, b) {
b = 17 - b;
var c = (a.x + a.y) % this.baseUrls.length;
return this.baseUrls[c] + "x=" + a.x + "&y=" + a.y + "&zoom=" + b;
}
As you can see this takes into consideration the fact that all of
Google's tiles had to be renamed. If people are creating tiles
according to version 2 numbering the line altering b should be omitted.
0 Comments:
Yorum Gönder
<< Home