We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Leaflet 3, L.TileLayer.WMS does not use the subdomains option and the {s} template tag to use subdomains.
The following patch to WMS getTileUrl() adds support for subdomains and {s} in the URL.
OLD: return this._url + L.Util.getParamString(this.wmsParams) + "&bbox=" + bbox;
NEW: var subdomains = this.options.subdomains; var s = this.options.subdomains[(tilePoint.x + tilePoint.y) % subdomains.length]; var baseurl = L.Util.template(this._url, L.Util.extend({ s: s }) ); var tileurl = baseurl + L.Util.getParamString(this.wmsParams) + "&bbox=" + bbox; return tileurl;
The text was updated successfully, but these errors were encountered:
Agreed, thanks for the suggestion - will be added!
Sorry, something went wrong.
cc60eb8
mourner
No branches or pull requests
In Leaflet 3, L.TileLayer.WMS does not use the subdomains option and the {s} template tag to use subdomains.
The following patch to WMS getTileUrl() adds support for subdomains and {s} in the URL.
OLD:
return this._url + L.Util.getParamString(this.wmsParams) + "&bbox=" + bbox;
NEW:
var subdomains = this.options.subdomains;
var s = this.options.subdomains[(tilePoint.x + tilePoint.y) % subdomains.length];
var baseurl = L.Util.template(this._url, L.Util.extend({ s: s }) );
var tileurl = baseurl + L.Util.getParamString(this.wmsParams) + "&bbox=" + bbox;
return tileurl;
The text was updated successfully, but these errors were encountered: