From 981305426488b24e651f5f88ab323440dd418803 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 26 May 2021 21:13:54 +0100 Subject: [PATCH] Customisable map aria label --- index.html | 1 + src/api.ts | 1 + src/components/Map.vue | 8 ++++++-- src/index.d.ts | 1 + src/store/state.ts | 1 + 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 672ea54..f51c626 100644 --- a/index.html +++ b/index.html @@ -109,6 +109,7 @@ contextMenuCopyLink: 'Copy link to here', contextMenuCenterHere: 'Center here', toggleTitle: 'Click to toggle this section', + mapTitle: 'Map - Use the arrow keys to pan the map' } }; diff --git a/src/api.ts b/src/api.ts index fb28bad..ce7c1a9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -96,6 +96,7 @@ function buildMessagesConfig(response: any): LiveAtlasMessageConfig { contextMenuCopyLink: liveAtlasMessages.contextMenuCopyLink || '', contextMenuCenterHere: liveAtlasMessages.contextMenuCenterHere || '', toggleTitle: liveAtlasMessages.toggleTitle || '', + mapTitle: liveAtlasMessages.mapTitle || '', } } diff --git a/src/components/Map.vue b/src/components/Map.vue index e7706a4..e68c769 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -15,7 +15,7 @@ -->