Add map markers for search results
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user