fix whitespace
This commit is contained in:
parent
a169b6cb86
commit
0a83b83237
@ -368,11 +368,11 @@ L.TileLayer = L.Class.extend({
|
|||||||
|
|
||||||
if (this.options.bounds) {
|
if (this.options.bounds) {
|
||||||
var tileSize = this.options.tileSize,
|
var tileSize = this.options.tileSize,
|
||||||
nwPoint = tilePoint.multiplyBy(tileSize),
|
nwPoint = tilePoint.multiplyBy(tileSize),
|
||||||
sePoint = nwPoint.add(new L.Point(tileSize, tileSize)),
|
sePoint = nwPoint.add(new L.Point(tileSize, tileSize)),
|
||||||
nw = this._map.unproject(nwPoint),
|
nw = this._map.unproject(nwPoint),
|
||||||
se = this._map.unproject(sePoint),
|
se = this._map.unproject(sePoint),
|
||||||
bounds = new L.LatLngBounds([nw, se]);
|
bounds = new L.LatLngBounds([nw, se]);
|
||||||
|
|
||||||
if (!this.options.bounds.intersects(bounds)) {
|
if (!this.options.bounds.intersects(bounds)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user