The gallery gives each tab its map name (mapTitle) for the map-print header

This commit is contained in:
Doxa Maps 2026-09-30 09:55:39 +00:00
parent 70c716057a
commit 72fb88a6ea
6 changed files with 10 additions and 7 deletions

View file

@ -1490,6 +1490,9 @@ export default defineComponent({
// #anchor and retitled the host's browser tab "Regions". A child that syncs its state into the
// URL standalone should read this and stand down; children that never write the URL ignore it.
pc.urlSync = false
// The MAP's own name for its print header (mapPrintTemplate.js): this tab's localized label. A plugin that
// does not print ignores it.
pc.mapTitle = this.tabLabel(t)
return pc
},
// The PAGE GLOBALS a generated leaf page bakes and a foreign host page does not — set here, and

File diff suppressed because one or more lines are too long

View file

@ -61,7 +61,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-maps-spa> custom element. -->
<script src="../../doxa-maps-spa.js" integrity="sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp" crossorigin="anonymous"></script>
<script src="../../doxa-maps-spa.js" integrity="sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

View file

@ -61,7 +61,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-maps-spa> custom element. -->
<script src="../doxa-maps-spa.js" integrity="sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp" crossorigin="anonymous"></script>
<script src="../doxa-maps-spa.js" integrity="sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

View file

@ -361,7 +361,7 @@
"bundle": "doxa-maps-spa",
"scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js",
"output": "dx-maps/doxa-maps-spa/doxa-maps-spa.js",
"integrity": "sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp",
"integrity": "sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6",
"elements": [
"doxa-maps-spa"
],
@ -389,7 +389,7 @@
"scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js",
"embed": {
"iframe": "<iframe src=\"./doxa-maps-spa/doxa-maps-spa/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-maps-spa/doxa-maps-spa.js\" integrity=\"sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp\" crossorigin=\"anonymous\"></script>\n<!-- provider: \"maplibre\" is the default; change it to \"mapbox\" and fill tk to use Mapbox. -->\n<doxa-maps-spa profile-config='{\"profile\":\"doxa-maps-spa\",\"provider\":\"maplibre\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-maps-spa>"
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-maps-spa/doxa-maps-spa.js\" integrity=\"sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6\" crossorigin=\"anonymous\"></script>\n<!-- provider: \"maplibre\" is the default; change it to \"mapbox\" and fill tk to use Mapbox. -->\n<doxa-maps-spa profile-config='{\"profile\":\"doxa-maps-spa\",\"provider\":\"maplibre\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-maps-spa>"
},
"instances": [
{

View file

@ -361,7 +361,7 @@
"bundle": "doxa-maps-spa",
"scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js",
"output": "dx-maps/doxa-maps-spa/doxa-maps-spa.js",
"integrity": "sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp",
"integrity": "sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6",
"elements": [
"doxa-maps-spa"
],
@ -389,7 +389,7 @@
"scriptUrl": "./doxa-maps-spa/doxa-maps-spa.js",
"embed": {
"iframe": "<iframe src=\"./doxa-maps-spa/doxa-maps-spa/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-maps-spa/doxa-maps-spa.js\" integrity=\"sha384-sW6vaNdZBtWMZXTy4zyVRAij2cYKLTdC3T/Yqnettso/4u4CmAm0uqtzWMlm3etp\" crossorigin=\"anonymous\"></script>\n<!-- provider: \"maplibre\" is the default; change it to \"mapbox\" and fill tk to use Mapbox. -->\n<doxa-maps-spa profile-config='{\"profile\":\"doxa-maps-spa\",\"provider\":\"maplibre\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-maps-spa>"
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-maps-spa/doxa-maps-spa.js\" integrity=\"sha384-wbxEugyxYQihhEudGHoltvDdr091K3gN5EmaWUA2pN15ZM2JaDhm22kOTAJmGUv6\" crossorigin=\"anonymous\"></script>\n<!-- provider: \"maplibre\" is the default; change it to \"mapbox\" and fill tk to use Mapbox. -->\n<doxa-maps-spa profile-config='{\"profile\":\"doxa-maps-spa\",\"provider\":\"maplibre\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-maps-spa>"
},
"instances": [
{