From a5df9293ed748fb20811b87df7532262949b4152 Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Thu, 26 Dec 2024 02:43:27 +0100 Subject: [PATCH] disable load indicators for now --- src/c3nav/site/static/site/js/c3nav.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/c3nav/site/static/site/js/c3nav.js b/src/c3nav/site/static/site/js/c3nav.js index eca932ed..75209aa4 100644 --- a/src/c3nav/site/static/site/js/c3nav.js +++ b/src/c3nav/site/static/site/js/c3nav.js @@ -155,6 +155,7 @@ c3nav = { }, _load_indicator_timer: null, load_load_indicator_data: function () { + return; c3nav._load_indicator_timer = null; c3nav_api.get('map/load') .then(data => { @@ -261,6 +262,7 @@ c3nav = { c3nav._update_loadinfo_labels(); }, _update_loadinfo_labels: function () { + return; if (!c3nav._loadIndicatorLayer) return; c3nav._loadIndicatorLayer.clearLayers(); if (!c3nav._loadIndicatorControl.enabled) return; @@ -1603,17 +1605,17 @@ c3nav = { }, }).addTo(c3nav.map); - c3nav._loadIndicatorControl = new ToggleControl({ - storageId: 'load_indicator', - enabledIcon: c3nav._map_material_icon('bar_chart'), - disabledIcon: c3nav._map_material_icon('bar_chart_off'), - onEnable: () => { - c3nav._update_loadinfo_labels(); - }, - onDisable: () => { - c3nav._update_loadinfo_labels(); - }, - }).addTo(c3nav.map); + // c3nav._loadIndicatorControl = new ToggleControl({ + // storageId: 'load_indicator', + // enabledIcon: c3nav._map_material_icon('bar_chart'), + // disabledIcon: c3nav._map_material_icon('bar_chart_off'), + // onEnable: () => { + // c3nav._update_loadinfo_labels(); + // }, + // onDisable: () => { + // c3nav._update_loadinfo_labels(); + // }, + // }).addTo(c3nav.map); // setup grid control if ($map.is('[data-grid]')) {