fixed bug where grid updater is never executed

This commit is contained in:
Jenny Danzmayr 2018-12-19 15:29:46 +01:00
parent eca9905ace
commit e1438dda19

View file

@ -1582,7 +1582,7 @@ L.SquareGridLayer = L.Layer.extend({
},
_updateGrid: function(map) {
if (!this.cols || this.cols.length) return;
if (!this.cols || this.cols.length == 0) return;
var mapSize = map.getSize(),
sidebarStart = $('#sidebar').outerWidth() + 15,
searchHeight = $('#search').outerHeight() + 10,