From 9b9f79eb748adeb337be789cd54814a0f5cf6d25 Mon Sep 17 00:00:00 2001 From: YukaUU Date: Tue, 16 Jul 2024 01:46:14 +0900 Subject: [PATCH] fix dataloader and $D --- apps/viewer/dataloaders.js | 10 +++++----- apps/viewer/init.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/viewer/dataloaders.js b/apps/viewer/dataloaders.js index 046b6e743..28919b539 100644 --- a/apps/viewer/dataloaders.js +++ b/apps/viewer/dataloaders.js @@ -98,11 +98,11 @@ function layersLoader() { }); } - // logs - function loadingLogs() { + // visualization + function visualization() { $CAMIC.store.findMark($D.params.slideId).then(function(layers) { - $D.logs = [...layers.map(covertToVisualization)]; - visualizationLayerItems($D.logs); + $D.visualizations = [...layers.map(covertToVisualization)]; + visualizationLayerItems($D.visualizations); }).catch(function(error) { // overlayers schema $UI.message.addError('Loading Logs is Error'); @@ -117,7 +117,7 @@ function layersLoader() { loadingRulerOverlayers(); loadingHeatmapOverlayers(); loadingComputerOverlayers(); - loadingLogs(); + visualization(); } }, 500); } diff --git a/apps/viewer/init.js b/apps/viewer/init.js index 4bf0baa22..bf8dffba9 100644 --- a/apps/viewer/init.js +++ b/apps/viewer/init.js @@ -1616,7 +1616,7 @@ function visualizationLayerItems(data) { var initialZommingData = []; // Get initial data - $D.logs.map((d) => { + $D.visualizations.map((d) => { if (d.states) { for (let i = 0; i < d.geometries.features.length; i++) { initialZommingData.push(roundToSecondDecimalPlace(d.states.zoom));