mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Remove debugging statements
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user