Skip to content

Commit da2848e

Browse files
authored
Merge branch 'main' into fix/mouseposition-edit-inputs
2 parents 1cd952f + 91de411 commit da2848e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

DRAFT_CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ __DATE__
2828

2929
* 🐛 [Fixed]
3030

31-
- MousePosition : Edition des coordonnées (#407)
31+
- MousePosition : Edition des coordonnées (#407 #416)
32+
- Layerswitcher : Menu contextuel en mode mobile snas items vides (#417)
3233

3334
* 🔒 [Security]
3435

src/packages/Controls/LayerSwitcher/LayerSwitcherDOM.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,15 @@ var LayerSwitcherDOM = {
589589
button.setAttribute("tabindex", "0");
590590
button.setAttribute("type", "button");
591591

592-
// hack pour garder un emplacement vide
593592
if (!obj.editable || (obj.layer.config && obj.layer.config.serviceParams.id === "GPP:TMS" && obj.layer.config.styles.length === 1)) {
594-
button.style.opacity = "0";
595-
button.style.visibility = "hidden";
593+
// hack pour garder un emplacement vide en mode desktop
594+
// et cacher l'entrée en mode mobile
595+
if (contextual) {
596+
button.style.display = "none";
597+
} else {
598+
button.style.opacity = "0";
599+
button.style.display = "hidden";
600+
}
596601
}
597602

598603
var context = this;

0 commit comments

Comments
 (0)