Skip to content

Commit

Permalink
Fix(TileLayer.WMS & Canvas): get rid of calls to global L (#6048)
Browse files Browse the repository at this point in the history
* Fix(TileLayerWMS): get rid of L.TileLayer global call

and rely on imported TileLayer instead.

* Fix(Canvas): get rid of L.stamp global call

and rely on imported Util.stamp instead.
  • Loading branch information
ghybs authored and cherniavskii committed Feb 12, 2018
1 parent 870365d commit fa374e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/layer/vector/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export var Canvas = Renderer.extend({

delete layer._order;

delete this._layers[L.stamp(layer)];
delete this._layers[Util.stamp(layer)];

this._requestRedraw(layer);
},
Expand Down

0 comments on commit fa374e6

Please sign in to comment.