mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:57:07 +00:00
Don't show alert if layer is empty (but log to console)
This commit is contained in:
@@ -522,6 +522,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
l.layer.lastRequestURL = url;
|
l.layer.lastRequestURL = url;
|
||||||
|
} else if (!layer.features) {
|
||||||
|
console.log(`Layer ${url} is empty`);
|
||||||
} else {
|
} else {
|
||||||
console.warn(`Too much data from ${url} (${layer.features?.length ?? layer.length} ≥ ${limit} features)`);
|
console.warn(`Too much data from ${url} (${layer.features?.length ?? layer.length} ≥ ${limit} features)`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user