From f61bce7ea6e1f3fd0a1e0c3b615faa919bdb75cd Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Wed, 30 Sep 2026 06:07:54 +0000 Subject: [PATCH] Gospel Resources: a country or people-group selection tells the tap hint it can go The tap hint goes away on the reader's first pin, and it listens for uiStore.selectPeopleGroup, which this map never calls: it selects through its own refs. A selection here now says so with the dxmaps:pin-selected event the hint also hears, from inside the map's root. The watch sits after both refs are declared; above them it would throw at setup. Rebuilds gospel-resources only, with its pages and the two manifests. --- .../gospel-resources/resources-map.vue | 6 +++++ public/dx-maps/doxa-maps-spa/manifest.json | 16 ++++++------ .../gospel-resources/charts/index.html | 2 +- .../gospel-resources/data-tables/index.html | 2 +- .../gospel-dashboard/index.html | 2 +- .../gospel-resources/gospel-resources.js | 26 +++++++++---------- .../resources-list/index.html | 2 +- .../gospel-resources/resources-map/index.html | 2 +- public/dx-maps/manifest.json | 16 ++++++------ 9 files changed, 40 insertions(+), 34 deletions(-) diff --git a/plugin-designs/gospel-resources/resources-map.vue b/plugin-designs/gospel-resources/resources-map.vue index 34bf7aad1..492834154 100644 --- a/plugin-designs/gospel-resources/resources-map.vue +++ b/plugin-designs/gospel-resources/resources-map.vue @@ -289,6 +289,12 @@ const linkVerify = ref(null) const pgLoading = ref(false) const pgErr = ref(null) const selectedGroup = ref(null) // set = the people-group detail is showing +// The tap hint (PinHint) goes away on the reader's first pin. It listens for uiStore.selectPeopleGroup, +// which this map never calls: it selects through its own refs. So a country or a people-group selection +// here says so with the event PinHint also hears, from inside this map's root. +watch([selected, selectedGroup], ([c, g]) => { + if ((c || g) && mapEl.value) mapEl.value.dispatchEvent(new CustomEvent('dxmaps:pin-selected', { bubbles: true, composed: true })) +}) const pinRows = shallowRef([]) // [name, lat, lng, iso3, code, population, tier, slug] const doxaTotal = ref(0) // every group on Doxa's roster, placed or not const doxaUnplaced = ref(0) // on the roster, no coordinates in this build yet diff --git a/public/dx-maps/doxa-maps-spa/manifest.json b/public/dx-maps/doxa-maps-spa/manifest.json index be8eed129..ef7ae8510 100644 --- a/public/dx-maps/doxa-maps-spa/manifest.json +++ b/public/dx-maps/doxa-maps-spa/manifest.json @@ -782,7 +782,7 @@ "bundle": "gospel-resources", "scriptUrl": "./gospel-resources/gospel-resources.js", "output": "dx-maps/gospel-resources/gospel-resources.js", - "integrity": "sha384-na5TkLuHG8k1Aq2uX2S6PBhDeEEUmoyEPS85ZoQphi+YvMGvAObL9QIBZyB8pmNL", + "integrity": "sha384-yrez2aZ3b6tleY/6CW2rP6a8cNL80CrEce25c1IFG1Xb0LDLMUKB64E79oEwIWW6", "elements": [ "gospel-resources-map" ], @@ -805,7 +805,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -821,7 +821,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -837,8 +837,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -854,7 +854,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -870,8 +870,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] diff --git a/public/dx-maps/gospel-resources/charts/index.html b/public/dx-maps/gospel-resources/charts/index.html index 1ebe9fc77..450f9a265 100644 --- a/public/dx-maps/gospel-resources/charts/index.html +++ b/public/dx-maps/gospel-resources/charts/index.html @@ -61,7 +61,7 @@ - + - + - + - + - + \n\n\n" + "script": "\n\n\n" } }, { @@ -821,7 +821,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -837,8 +837,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -854,7 +854,7 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -870,8 +870,8 @@ "scriptUrl": "./gospel-resources/gospel-resources.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ]