@@ -86,7 +86,9 @@ export default defineComponent({
//Location and zoom to pan to upon next projection change
scheduledPan = ref
(null),
- scheduledZoom = ref(null);
+ scheduledZoom = ref(null),
+
+ mapTitle = computed(() => store.state.messages.mapTitle);
return {
leaflet,
@@ -111,6 +113,8 @@ export default defineComponent({
scheduledPan,
scheduledZoom,
+
+ mapTitle
}
},
diff --git a/src/index.d.ts b/src/index.d.ts
index ea9f5bc..97a85e1 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -64,6 +64,7 @@ interface LiveAtlasMessageConfig {
contextMenuCopyLink: string;
contextMenuCenterHere: string;
toggleTitle: string;
+ mapTitle: string;
}
export type LiveAtlasUIElement = 'chat' | 'players' | 'maps' | 'settings';
diff --git a/src/store/state.ts b/src/store/state.ts
index 3fb7a88..9f20a12 100644
--- a/src/store/state.ts
+++ b/src/store/state.ts
@@ -131,6 +131,7 @@ export const state: State = {
contextMenuCopyLink: '',
contextMenuCenterHere: '',
toggleTitle: '',
+ mapTitle: '',
},
loggedIn: false,