From 8e8992b634a06390c468b58a8fce8656ee0d840b Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Tue, 10 Dec 2019 13:46:25 +0100 Subject: [PATCH] ENH: Map is disabled by default, example json file exists now. --- conf/core/json/ext_map.json | 3 +++ src/core/js/ext_map.js | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 conf/core/json/ext_map.json diff --git a/conf/core/json/ext_map.json b/conf/core/json/ext_map.json new file mode 100644 index 00000000..33bcc2e5 --- /dev/null +++ b/conf/core/json/ext_map.json @@ -0,0 +1,3 @@ +{ + "disabled": true +} diff --git a/src/core/js/ext_map.js b/src/core/js/ext_map.js index 5ef5c5dc..aba52042 100644 --- a/src/core/js/ext_map.js +++ b/src/core/js/ext_map.js @@ -742,6 +742,9 @@ var caosdb_map = new function () { var toggle_button = undefined; try { const config = await this.load_config(); + if (config.disabled) { + return; + } if (!config.views || config.views.length === 0) { logger.warn("no views in config"); return; -- GitLab