up edit
This commit is contained in:
parent
f991aee8ed
commit
bdb3728494
13 changed files with 283 additions and 20 deletions
|
@ -72,6 +72,12 @@
|
|||
<button class="button">oui, toujours là</button>
|
||||
<button class="button">non plus là</button>
|
||||
<button class="button">pouet pouet!</button>
|
||||
<hr>
|
||||
<button class="button" (click)="toggleView()">Basculer carte / tableau</button>
|
||||
<div class="downloaders">
|
||||
<button class="button" (click)="downloadGeoJSON()">Télécharger GeoJSON</button>
|
||||
<button class="button" (click)="downloadCSV()">Télécharger CSV</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="user_infos">
|
||||
login OSM:
|
||||
|
|
|
@ -10,6 +10,9 @@ import oedb_what_categories from '../../../../oedb-types';
|
|||
export class Menu {
|
||||
|
||||
public oedb_what_categories: Array<any> = [];
|
||||
public onToggleView?: () => void;
|
||||
public onDownloadGeoJSON?: () => void;
|
||||
public onDownloadCSV?: () => void;
|
||||
|
||||
constructor() {
|
||||
let keys = Object.keys(oedb_what_categories.presets.what);
|
||||
|
@ -22,4 +25,8 @@ export class Menu {
|
|||
);
|
||||
})
|
||||
}
|
||||
|
||||
toggleView() { this.onToggleView && this.onToggleView(); }
|
||||
downloadGeoJSON() { this.onDownloadGeoJSON && this.onDownloadGeoJSON(); }
|
||||
downloadCSV() { this.onDownloadCSV && this.onDownloadCSV(); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue