Add map markers for search results

This commit is contained in:
2026-03-21 16:52:37 +04:00
parent 9183e3c366
commit 5b37894821
5 changed files with 119 additions and 11 deletions

10
app/routes/index.js Normal file
View File

@@ -0,0 +1,10 @@
import Route from '@ember/routing/route';
import { service } from '@ember/service';
export default class IndexRoute extends Route {
@service mapUi;
activate() {
this.mapUi.clearSearchResults();
}
}

View File

@@ -169,6 +169,7 @@ export default class SearchRoute extends Route {
super.setupController(controller, model);
// Ensure pulse is stopped if we reach here
this.mapUi.stopSearch();
this.mapUi.setSearchResults(model);
}
@action