From 654c13ce083e4f1547f9c7b59d159f403c785ace Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 15 Apr 2025 17:05:09 +0200 Subject: [PATCH] keep photo viewer open when disabling Panoramax overlay, fixes #10966 --- CHANGELOG.md | 2 ++ modules/svg/panoramax_images.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ec52bad..78d333476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ _Breaking developer changes, which may affect downstream projects or sites that #### :sparkles: Usability & Accessibility #### :scissors: Operations #### :camera: Street-Level +* Keep photo viewer open when disabling Panoramax overlay ([#10966]) #### :white_check_mark: Validation * Show unchanged tags of a [deprecation rule](https://github.com/ideditor/schema-builder?tab=readme-ov-file#deprecations) explicitly in the validation warning ([#10104]) #### :bug: Bugfixes @@ -51,6 +52,7 @@ _Breaking developer changes, which may affect downstream projects or sites that [#9873]: https://github.com/openstreetmap/iD/issues/9873 [#10104]: https://github.com/openstreetmap/iD/issues/10104 +[#10966]: https://github.com/openstreetmap/iD/issues/10966 # v2.33.0 diff --git a/modules/svg/panoramax_images.js b/modules/svg/panoramax_images.js index 32c242085..f87e07b2c 100644 --- a/modules/svg/panoramax_images.js +++ b/modules/svg/panoramax_images.js @@ -188,8 +188,6 @@ export function svgPanoramaxImages(projection, context, dispatch) { } function editOff() { - const service = getService(); - service.hideViewer(context); layer.selectAll('.viewfield-group').remove(); layer.style('display', 'none'); }