From 078260d8e7603c8d68a71429e7d4367abdaf06a8 Mon Sep 17 00:00:00 2001 From: somebody1234 Date: Mon, 20 Nov 2023 21:25:23 +1000 Subject: [PATCH] Fix Geo Map visualization (#8311) - Fixes #8300 - Fixes Geo Map visualization being completely broken - Fixes Mapbox attribution icon in bottom right being invisible - Fixes Mapbox attribution button being unclickable # Important Notes None --- app/gui2/index.html | 11 ---------- .../visualizations/GeoMapVisualization.vue | 20 ++++++++++++++----- app/gui2/src/stores/visualization/index.ts | 5 ++++- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/gui2/index.html b/app/gui2/index.html index f2bb9d7e56f..4fd63b22a3e 100644 --- a/app/gui2/index.html +++ b/app/gui2/index.html @@ -24,16 +24,5 @@
- diff --git a/app/gui2/src/components/visualizations/GeoMapVisualization.vue b/app/gui2/src/components/visualizations/GeoMapVisualization.vue index 9b79f7caccb..6740d3f23f4 100644 --- a/app/gui2/src/components/visualizations/GeoMapVisualization.vue +++ b/app/gui2/src/components/visualizations/GeoMapVisualization.vue @@ -404,7 +404,7 @@ function pushPoints(newPoints: Location[]) { -
+
@@ -412,10 +412,20 @@ function pushPoints(newPoints: Location[]) { .GeoMapVisualization { height: 100%; } - - diff --git a/app/gui2/src/stores/visualization/index.ts b/app/gui2/src/stores/visualization/index.ts index 8b080f53212..48c9ee6720a 100644 --- a/app/gui2/src/stores/visualization/index.ts +++ b/app/gui2/src/stores/visualization/index.ts @@ -166,7 +166,10 @@ export const useVisualizationStore = defineStore('visualization', () => { currentProjectProtocol + pathString, await projectRoot, await proj.dataConnection, - ) + ).then(async (viz) => { + await loadScripts(viz) + return viz + }) if (key) cache.set(key, vizPromise) const viz = await vizPromise if (abortController.signal.aborted) break