We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00173b0 commit cd5b1c9Copy full SHA for cd5b1c9
1 file changed
assets/js/components/map_display.js
@@ -789,6 +789,16 @@ export function initializeMap(config) {
789
if (layerControl) {
790
layerControl.applyImageLayerVisibility();
791
}
792
+
793
+ // When "Show Other Images" toggle controls visibility, re-hide layers
794
+ // unless the toggle checkbox is currently checked (applyImageLayerVisibility
795
+ // above doesn't know about the toggle and would make them visible).
796
+ if (showOtherImages && imageId) {
797
+ const toggle = document.getElementById("show-other-images-toggle");
798
+ if (!toggle || !toggle.checked) {
799
+ window.toggleOtherImages(false);
800
+ }
801
802
803
804
// Map load handler
0 commit comments