Skip to content
New issue

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

Fix(TileLayer.WMS & Canvas): get rid of calls to global L #6048

Merged
merged 2 commits into from
Feb 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix(TileLayerWMS): get rid of L.TileLayer global call
and rely on imported TileLayer instead.
  • Loading branch information
ghybs committed Feb 12, 2018
commit 563ea263c7f859eda5a2b90a7f763f265612f5cc
2 changes: 1 addition & 1 deletion src/layer/tile/TileLayer.WMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export var TileLayerWMS = TileLayer.extend({
bbox = (this._wmsVersion >= 1.3 && this._crs === EPSG4326 ?
[min.y, min.x, max.y, max.x] :
[min.x, min.y, max.x, max.y]).join(','),
url = L.TileLayer.prototype.getTileUrl.call(this, coords);
url = TileLayer.prototype.getTileUrl.call(this, coords);
return url +
getParamString(this.wmsParams, url, this.options.uppercase) +
(this.options.uppercase ? '&BBOX=' : '&bbox=') + bbox;
Expand Down