-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pablo Lopez
committed
Aug 28, 2024
1 parent
e243ff0
commit 8a71f87
Showing
5 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
18 changes: 14 additions & 4 deletions
18
src/interface/src/app/treatments/map-base-layer/map-base-layer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
<h4>Map Base</h4> | ||
<button *ngFor="let t of terrainTypes" [value]="t" (click)="updateBaseLayer(t)"> | ||
{{ t }} | ||
</button> | ||
<details open> | ||
<summary>Map Base</summary> | ||
<div class="base-options"> | ||
<div *ngFor="let t of baseLayers" class="base-option"> | ||
<input | ||
type="radio" | ||
[value]="t" | ||
[id]="'layer-' + t" | ||
name="baseLayer" | ||
(click)="updateBaseLayer(t)" /> | ||
<label [for]="'layer-' + t">{{ t }}</label> | ||
</div> | ||
</div> | ||
</details> |
28 changes: 28 additions & 0 deletions
28
src/interface/src/app/treatments/map-base-layer/map-base-layer.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
button { | ||
display: block; | ||
} | ||
|
||
summary { | ||
border-bottom: 1px solid black; | ||
padding: 0 14px; | ||
cursor: pointer; | ||
} | ||
|
||
.base-options { | ||
padding: 16px 14px; | ||
} | ||
|
||
.base-option { | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
margin-bottom: 8px; | ||
text-transform: capitalize; | ||
|
||
input { | ||
margin: 0; | ||
cursor: pointer; | ||
} | ||
|
||
label { | ||
cursor: pointer; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
} | ||
|
||
.left-side { | ||
padding: 20px; | ||
width: 200px; | ||
} |