nav mobile
This commit is contained in:
parent
f8abb4d11a
commit
912b4da08e
8 changed files with 234 additions and 52 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue