Remove debugging statements

This commit is contained in:
D. Berge
2020-08-11 20:55:26 +02:00
parent b2b6a88c19
commit 656f5a2c6d

View File

@@ -212,10 +212,10 @@ export default {
if ((layer.features && layer.features.length < limit) || ("length" in layer && layer.length < limit)) {
l.layer.addData(layer);
} else {
console.log("Too much data from", l.url(query));
}
if (--requestsCount == 0) {
this.loading = false;
console.warn("Too much data from", l.url(query));
}
})
}
@@ -239,13 +239,11 @@ export default {
let moveStart = map.getBounds().pad(0.3);
let zoomStart = map.getZoom();
console.log("MAP", map);
map.on('movestart', () => {
moveStart = map.getBounds().pad(0.3);
zoomStart = map.getZoom();
});
map.on('moveend', () => {
console.log("Contained", moveStart.contains(map.getBounds()), map.getZoom() != zoomStart);
if (!moveStart.contains(map.getBounds()) || map.getZoom() != zoomStart) {
this.refreshLayers();
}