-
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.
Merge pull request #1026 from hpi-sam/release/v0.7.0
Release v0.7.0
- Loading branch information
Showing
220 changed files
with
4,505 additions
and
866 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
44 changes: 44 additions & 0 deletions
44
...e/shared/coordinate-picker/coordinate-picker-modal/coordinate-picker-modal.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div class="modal-header"> | ||
<h4 class="modal-title">Koordinaten-Auswahl</h4> | ||
<button type="button" class="btn-close" (click)="close()"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<p>Bitte geben Sie die Koordinaten im Format <code>XX.XXXXXX</code> an.</p> | ||
|
||
<div class="form-group mb-3"> | ||
<label class="form-label">Breitengrad:</label> | ||
<input | ||
class="form-control" | ||
type="text" | ||
[(ngModel)]="latitude" | ||
required | ||
appGeographicCoordinateValidator | ||
#latInput="ngModel" | ||
/> | ||
</div> | ||
|
||
<div class="form-group mb-3"> | ||
<label class="form-label">Längengrad:</label> | ||
<input | ||
class="form-control" | ||
type="text" | ||
[(ngModel)]="longitude" | ||
required | ||
appGeographicCoordinateValidator | ||
#lonInput="ngModel" | ||
/> | ||
</div> | ||
|
||
<button | ||
(click)="goToCoordinates()" | ||
class="btn btn-primary me-1" | ||
type="button" | ||
[disabled]="latInput.invalid || lonInput.invalid" | ||
> | ||
Übernehmen | ||
</button> | ||
|
||
<button (click)="close()" class="btn btn-secondary" type="button"> | ||
Abbrechen | ||
</button> | ||
</div> |
File renamed without changes.
42 changes: 42 additions & 0 deletions
42
...ise/shared/coordinate-picker/coordinate-picker-modal/coordinate-picker-modal.component.ts
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import type { OnInit } from '@angular/core'; | ||
import { Component, Input } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { toLonLat } from 'ol/proj'; | ||
import { OlMapManager } from '../../exercise-map/utility/ol-map-manager'; | ||
|
||
@Component({ | ||
selector: 'app-coordinate-picker-modal', | ||
templateUrl: './coordinate-picker-modal.component.html', | ||
styleUrls: ['./coordinate-picker-modal.component.scss'], | ||
}) | ||
export class CoordinatePickerModalComponent implements OnInit { | ||
@Input() | ||
public olMapManager!: OlMapManager; | ||
|
||
public latitude = ''; | ||
public longitude = ''; | ||
|
||
constructor(public activeModal: NgbActiveModal) {} | ||
|
||
ngOnInit() { | ||
const center = this.olMapManager.getCoordinates(); | ||
|
||
if (!center) return; | ||
|
||
const latLonCoordinates = toLonLat(center) | ||
.reverse() | ||
.map((coordinate) => coordinate.toFixed(6)); | ||
|
||
this.latitude = latLonCoordinates[0]!; | ||
this.longitude = latLonCoordinates[1]!; | ||
} | ||
|
||
public goToCoordinates() { | ||
this.olMapManager.tryGoToCoordinates(+this.latitude, +this.longitude); | ||
this.activeModal.close(); | ||
} | ||
|
||
public close() { | ||
this.activeModal.close(); | ||
} | ||
} |
Oops, something went wrong.