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

View File

@@ -12,6 +12,7 @@ export default class MapUiService extends Service {
@tracked searchBoxHasFocus = false;
@tracked selectionOptions = {};
@tracked preventNextZoom = false;
@tracked searchResults = [];
selectPlace(place, options = {}) {
this.selectedPlace = place;
@@ -24,6 +25,14 @@ export default class MapUiService extends Service {
this.preventNextZoom = false;
}
setSearchResults(results) {
this.searchResults = results || [];
}
clearSearchResults() {
this.searchResults = [];
}
startSearch() {
this.isSearching = true;
this.isCreating = false;