diff --git a/data/core.yaml b/data/core.yaml index 1b3ce1fab..441275802 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -676,8 +676,11 @@ en: tooltip: Show a zoomed out map to help locate the area currently displayed. key: '/' panel: - description: Show Detail Panel + description: Show Background Panel tooltip: Show advanced background information. + location_panel: + description: Show Location Panel + tooltip: Show coordinates and regional details. fix_misalignment: Imagery Offset offset: "Drag anywhere in the gray area below to adjust the imagery offset, or enter the offset values in meters." map_data: diff --git a/dist/locales/en.json b/dist/locales/en.json index a4d4d8a04..87a0d9d01 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -845,9 +845,13 @@ "key": "/" }, "panel": { - "description": "Show Detail Panel", + "description": "Show Background Panel", "tooltip": "Show advanced background information." }, + "location_panel": { + "description": "Show Location Panel", + "tooltip": "Show coordinate and regional details." + }, "fix_misalignment": "Imagery Offset", "offset": "Drag anywhere in the gray area below to adjust the imagery offset, or enter the offset values in meters." }, diff --git a/modules/ui/sections/background_list.js b/modules/ui/sections/background_list.js index 441a02dc8..63f9cfaff 100644 --- a/modules/ui/sections/background_list.js +++ b/modules/ui/sections/background_list.js @@ -96,6 +96,28 @@ export function uiSectionBackgroundList(context) { .append('span') .text(t('background.panel.description')); + var locPanelLabelEnter = bgExtrasListEnter + .append('li') + .attr('class', 'location-panel-toggle-item') + .append('label') + .call(uiTooltip() + .title(t('background.location_panel.tooltip')) + .keys([uiCmd('⌘⇧' + t('info_panels.location.key'))]) + .placement('top') + ); + + locPanelLabelEnter + .append('input') + .attr('type', 'checkbox') + .on('change', function() { + d3_event.preventDefault(); + context.ui().info.toggle('location'); + }); + + locPanelLabelEnter + .append('span') + .text(t('background.location_panel.description')); + // "Info / Report a Problem" link selection.selectAll('.imagery-faq')