Multi layers DECK.GL visualization (#4096)

* Multi layers DECK.GL viz

* Fix tests

* rebasing

* Fix error handling in chartActions

* Addressing comments
This commit is contained in:
Maxime Beauchemin
2017-12-26 10:47:29 -08:00
committed by GitHub
parent 82ed4878c4
commit 45686a1af6
21 changed files with 280 additions and 236 deletions

View File

@@ -120,7 +120,20 @@ export function runQuery(formData, force = false, timeout = 60, key) {
if (err.statusText === 'timeout') {
dispatch(chartUpdateTimeout(err.statusText, timeout, key));
} else if (err.statusText !== 'abort') {
dispatch(chartUpdateFailed(err.responseJSON, key));
let errObject;
if (err.responseJSON) {
errObject = err.responseJSON;
} else if (err.stack) {
errObject = {
error: 'Unexpected error: ' + err.description,
stacktrace: err.stack,
};
} else {
errObject = {
error: 'Unexpected error.',
};
}
dispatch(chartUpdateFailed(errObject, key));
}
});
const annotationLayers = formData.annotation_layers || [];