Fixing linting errors
This commit is contained in:
parent
4eba3a0973
commit
243daa90ef
@ -201,10 +201,10 @@ L.TileLayer = L.GridLayer.extend({
|
|||||||
|
|
||||||
getTileSize: function () {
|
getTileSize: function () {
|
||||||
var map = this._map,
|
var map = this._map,
|
||||||
tileSize = L.GridLayer.prototype.getTileSize.call(this),
|
tileSize = L.GridLayer.prototype.getTileSize.call(this),
|
||||||
zoom = this._tileZoom + this.options.zoomOffset,
|
zoom = this._tileZoom + this.options.zoomOffset,
|
||||||
minNativeZoom = this.options.minNativeZoom,
|
minNativeZoom = this.options.minNativeZoom,
|
||||||
maxNativeZoom = this.options.maxNativeZoom;
|
maxNativeZoom = this.options.maxNativeZoom;
|
||||||
|
|
||||||
// decrease tile size when scaling below minNativeZoom
|
// decrease tile size when scaling below minNativeZoom
|
||||||
if (minNativeZoom !== null && zoom < minNativeZoom) {
|
if (minNativeZoom !== null && zoom < minNativeZoom) {
|
||||||
@ -212,7 +212,7 @@ L.TileLayer = L.GridLayer.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// increase tile size when scaling above maxNativeZoom
|
// increase tile size when scaling above maxNativeZoom
|
||||||
if(maxNativeZoom !== null && zoom > maxNativeZoom){
|
if (maxNativeZoom !== null && zoom > maxNativeZoom) {
|
||||||
return tileSize.divideBy(map.getZoomScale(maxNativeZoom, zoom)).round();
|
return tileSize.divideBy(map.getZoomScale(maxNativeZoom, zoom)).round();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,11 +225,11 @@ L.TileLayer = L.GridLayer.extend({
|
|||||||
|
|
||||||
_getZoomForUrl: function () {
|
_getZoomForUrl: function () {
|
||||||
var zoom = this._tileZoom,
|
var zoom = this._tileZoom,
|
||||||
maxZoom = this.options.maxZoom,
|
maxZoom = this.options.maxZoom,
|
||||||
zoomReverse = this.options.zoomReverse,
|
zoomReverse = this.options.zoomReverse,
|
||||||
zoomOffset = this.options.zoomOffset,
|
zoomOffset = this.options.zoomOffset,
|
||||||
minNativeZoom = this.options.minNativeZoom,
|
minNativeZoom = this.options.minNativeZoom,
|
||||||
maxNativeZoom = this.options.maxNativeZoom;
|
maxNativeZoom = this.options.maxNativeZoom;
|
||||||
|
|
||||||
if (zoomReverse) {
|
if (zoomReverse) {
|
||||||
zoom = maxZoom - zoom;
|
zoom = maxZoom - zoom;
|
||||||
@ -242,7 +242,7 @@ L.TileLayer = L.GridLayer.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// increase tile size when scaling above maxNativeZoom
|
// increase tile size when scaling above maxNativeZoom
|
||||||
if(maxNativeZoom !== null && zoom > maxNativeZoom) {
|
if (maxNativeZoom !== null && zoom > maxNativeZoom) {
|
||||||
return maxNativeZoom;
|
return maxNativeZoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user