disable load indicators for now

This commit is contained in:
Gwendolyn 2024-12-26 02:43:27 +01:00
parent a3e769223b
commit a5df9293ed

View file

@ -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]')) {