nav mobile
This commit is contained in:
parent
f8abb4d11a
commit
912b4da08e
8 changed files with 234 additions and 52 deletions
|
|
@ -5,7 +5,7 @@
|
|||
@if (isLoading) {
|
||||
<span class="loading-indicator">⏳</span>
|
||||
}
|
||||
<a routerLink="/embed" class="btn-share" title="Partager et intégrer les événements">
|
||||
<a [routerLink]="['/embed']" [queryParams]="getShareQueryParams()" class="btn-share" title="Partager et intégrer les événements">
|
||||
🔗 Partager
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -852,4 +852,31 @@ export class Home implements OnInit, OnDestroy {
|
|||
onMapMove(bbox: { minLng: number, minLat: number, maxLng: number, maxLat: number }) {
|
||||
this.setCurrentBbox(bbox);
|
||||
}
|
||||
|
||||
getShareQueryParams(): any {
|
||||
const params: any = {};
|
||||
|
||||
// Récupérer les paramètres de filtrage actuels
|
||||
if (this.selectedWhatFilter) {
|
||||
params.what = this.selectedWhatFilter;
|
||||
}
|
||||
|
||||
if (this.startDateStr) {
|
||||
params.start = this.startDateStr;
|
||||
}
|
||||
|
||||
if (this.endDateStr) {
|
||||
params.end = this.endDateStr;
|
||||
}
|
||||
|
||||
// Ajouter bbox si disponible
|
||||
if (this.useBboxFilter && this.currentBbox) {
|
||||
params.bbox = `${this.currentBbox.minLng},${this.currentBbox.minLat},${this.currentBbox.maxLng},${this.currentBbox.maxLat}`;
|
||||
}
|
||||
|
||||
// Limite par défaut pour l'embed
|
||||
params.limit = 50;
|
||||
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
<div class="nav-section">
|
||||
<h3>Communauté</h3>
|
||||
<a routerLink="/community-upcoming" class="link" (click)="closeMenu()">👥 Community à venir</a>
|
||||
<a href="https://community.openstreetmap.org/" class="link" target="_blank" (click)="closeMenu()">💬 Forum OpenStreetMap</a>
|
||||
<a href="https://source.cipherbliss.com/tykayn/oedb-backend" class="link" target="_blank" (click)="closeMenu()">💻 Sources</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue