From d1081ff3e52eb8812fa08c7bdc5a1655ad5671c3 Mon Sep 17 00:00:00 2001 From: David Stone Date: Fri, 19 Jun 2026 16:22:56 +0100 Subject: [PATCH] Set `focus: false` in the addPanel() config to stop map getting the focus on page load --- src/client/javascripts/geospatial-map.js | 1 + src/client/javascripts/location-map.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/javascripts/geospatial-map.js b/src/client/javascripts/geospatial-map.js index 8311e30fa..29b35d4a5 100644 --- a/src/client/javascripts/geospatial-map.js +++ b/src/client/javascripts/geospatial-map.js @@ -16,6 +16,7 @@ import { import { formatDelimtedList } from '~/src/client/javascripts/utils.js' const helpPanelConfig = { + focus: false, showLabel: true, label: 'How to use this map', mobile: { diff --git a/src/client/javascripts/location-map.js b/src/client/javascripts/location-map.js index 324424765..bfd8f2209 100644 --- a/src/client/javascripts/location-map.js +++ b/src/client/javascripts/location-map.js @@ -444,6 +444,7 @@ export function processLocation(config, location, index) { // Add info panel map.addPanel('info', { + focus: false, showLabel: true, label: 'How to use the map', mobile: {