Skip to content

Commit

Permalink
fix dataloader and $D
Browse files Browse the repository at this point in the history
  • Loading branch information
YukaUU committed Jul 15, 2024
1 parent 4d9c558 commit 9b9f79e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions apps/viewer/dataloaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -117,7 +117,7 @@ function layersLoader() {
loadingRulerOverlayers();
loadingHeatmapOverlayers();
loadingComputerOverlayers();
loadingLogs();
visualization();
}
}, 500);
}
2 changes: 1 addition & 1 deletion apps/viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9b9f79e

Please sign in to comment.