Fix(TileLayer.WMS & Canvas): get rid of calls to global L (#6048)
* 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.
This commit is contained in:
parent
870365de4c
commit
fa374e67a2
@ -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;
|
||||
|
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user