Integrate category search with search box

This commit is contained in:
2026-03-20 18:56:18 +04:00
parent 8e9beb16de
commit 7e98b6796c
2 changed files with 62 additions and 3 deletions

View File

@@ -129,13 +129,21 @@ export default class SearchBoxComponent extends Component {
}
this.results = [];
let lat = null,
lon = null;
if (this.mapUi.currentCenter) {
({ lat, lon } = this.mapUi.currentCenter);
lat = lat?.toString();
lon = lon?.toString();
}
this.router.transitionTo('search', {
queryParams: {
q: place.title,
category: place.id,
selected: null,
lat: null,
lon: null,
lat: lat,
lon: lon,
},
});
return;