Skip to content

Commit

Permalink
Remove old WMS getTileUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Apr 22, 2021
1 parent bc6d701 commit 848b96d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/essence/Basics/Layers_/leaflet-tilelayer-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,28 +158,6 @@ var wmsExtension = {

L.TileLayer.prototype.onAdd.call(this, map)
},

getTileUrlOLD: function (coords) {
var tileBounds = this._tileCoordsToBounds(coords),
nw = this._crs.project(tileBounds.getNorthWest()),
se = this._crs.project(tileBounds.getSouthEast()),
bbox = (this._wmsVersion >= 1.3 && this._crs === L.CRS.EPSG4326
? [se.y, nw.x, nw.y, se.x]
: [nw.x, se.y, se.x, nw.y]
).join(','),
url = L.TileLayer.prototype.getTileUrl.call(this, coords)

return (
url +
L.Util.getParamString(
this.wmsParams,
url,
this.extensionOptions.uppercase
) +
(this.extensionOptions.uppercase ? '&BBOX=' : '&bbox=') +
bbox
)
},
getTileUrl: function (coords) {
var tileBounds = this._tileCoordsToNwSe(coords),
crs = this._crs,
Expand Down

0 comments on commit 848b96d

Please sign in to comment.