-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back zoom buttons and shortcuts (#437)
- Loading branch information
1 parent
ec2f169
commit 9f06dca
Showing
2 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
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
37 changes: 20 additions & 17 deletions
37
...d/src/app/modules/application/components/floating-buttons/floating-buttons.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,32 +1,35 @@ | ||
<div class="floating-buttons"> | ||
<div class="add-node no-touch"> | ||
<button | ||
(click)="mmpService.addNode()" | ||
[title]="'TOOLTIPS.ADD_NODE' | translate" | ||
[disabled]="editDisabled" | ||
class="mat-elevation-z2" | ||
mat-mini-fab> | ||
<button (click)="mmpService.addNode()" [title]="'TOOLTIPS.ADD_NODE' | translate" [disabled]="editDisabled" | ||
class="mat-elevation-z2" mat-mini-fab> | ||
<mat-icon aria-label="Add node">add</mat-icon> | ||
</button> | ||
</div> | ||
<div class="remove-node no-touch"> | ||
<button | ||
(click)="mmpService.removeNode()" | ||
[title]="'TOOLTIPS.REMOVE_NODE' | translate" | ||
[disabled]="editDisabled" | ||
class="mat-elevation-z2" | ||
mat-mini-fab> | ||
<button (click)="mmpService.removeNode()" [title]="'TOOLTIPS.REMOVE_NODE' | translate" [disabled]="editDisabled" | ||
class="mat-elevation-z2" mat-mini-fab> | ||
<mat-icon aria-label="Remove node">remove</mat-icon> | ||
</button> | ||
</div> | ||
|
||
<div class="center no-touch"> | ||
<button | ||
(click)="mmpService.center()" | ||
[title]="'TOOLTIPS.CENTER_MAP' | translate" | ||
class="mat-elevation-z2" | ||
<button (click)="mmpService.center()" [title]="'TOOLTIPS.CENTER_MAP' | translate" class="mat-elevation-z2" | ||
mat-mini-fab> | ||
<mat-icon aria-label="Center" color="primary">center_focus_weak</mat-icon> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="zoom-in no-touch"> | ||
<button (click)="mmpService.zoomIn()" [title]="'TOOLTIPS.ZOOM_IN_MAP' | translate" class="mat-elevation-z2" | ||
mat-mini-fab> | ||
<mat-icon aria-label="Zoom in" color="primary">zoom_in</mat-icon> | ||
</button> | ||
</div> | ||
|
||
<div class="zoom-out no-touch"> | ||
<button (click)="mmpService.zoomOut()" [title]="'TOOLTIPS.ZOOM_OUT_MAP' | translate" class="mat-elevation-z2" | ||
mat-mini-fab> | ||
<mat-icon aria-label="Zoom out" color="primary">zoom_out</mat-icon> | ||
</button> | ||
</div> | ||
</div> |