Skip to content

Commit

Permalink
fix(route-draw): hide buttons when layerManager open
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Apr 26, 2024
1 parent 548d9b4 commit 2995ba0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ class MenuNavigation {
DOM.$search.style.display = "none";
DOM.$filterPoiBtn.style.top = "calc(10px + var(--safe-area-inset-top))";
DOM.$backTopLeftBtn.classList.remove("d-none");
if (!Globals.routeDraw.readonly) {
DOM.$routeDrawBtns.classList.add("d-none");
DOM.$routeDrawEdit.classList.add("d-none");
DOM.$bottomButtons.style.removeProperty("bottom");
DOM.$bottomButtons.style.removeProperty("left");
DOM.$bottomButtons.style.removeProperty("width");
}
Globals.currentScrollIndex = 1;
break;
case "informations":
Expand Down

0 comments on commit 2995ba0

Please sign in to comment.