Revert "More readable check from DataLayer.showAtZoom"
This reverts commit c0dd8901e4
.
This commit is contained in:
parent
7078557831
commit
b06cfca1f2
1 changed files with 1 additions and 2 deletions
|
@ -390,8 +390,7 @@ L.U.DataLayer = L.Evented.extend({
|
||||||
const from = parseInt(this.options.fromZoom, 10),
|
const from = parseInt(this.options.fromZoom, 10),
|
||||||
to = parseInt(this.options.toZoom, 10),
|
to = parseInt(this.options.toZoom, 10),
|
||||||
zoom = this.map.getZoom()
|
zoom = this.map.getZoom()
|
||||||
if (isNaN(from) || isNaN(to)) return false
|
return !((!isNaN(from) && zoom < from) || (!isNaN(to) && zoom > to))
|
||||||
return (zoom >= from && zoom <= to)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchRemoteData: function () {
|
fetchRemoteData: function () {
|
||||||
|
|
Loading…
Reference in a new issue