Bing tiles fails to load when p.x or p.y is -ve #31

Closed
deval-chauhan opened this Issue Aug 7, 2012 · 0 comments

Comments

Projects
None yet
2 participants

getTileUrl: function (p, z) {
var z = this._getZoomForUrl();
var subdomains = this.options.subdomains,
s = this.options.subdomains[Math.abs((p.x + p.y) % subdomains.length)];
return this._url.replace('{subdomain}', s)
.replace('{quadkey}', this.tile2quad(p.x, p.y, z))
.replace('{culture}', '');
}

Fix is use Math.abs while calculating subdomains as shown above

@shramov shramov closed this in d74d67d Sep 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment