Keep search results, only hide sidebar when closed
This commit is contained in:
@@ -96,6 +96,7 @@ export default class PlaceRoute extends Route {
|
||||
if (model) {
|
||||
const options = { preventZoom: this.mapUi.preventNextZoom };
|
||||
this.mapUi.selectPlace(model, options);
|
||||
this.mapUi.showSidebar();
|
||||
this.mapUi.preventNextZoom = false;
|
||||
}
|
||||
// Stop the pulse animation if it was running (e.g. redirected from search)
|
||||
|
||||
@@ -22,6 +22,7 @@ export default class PlaceNewRoute extends Route {
|
||||
this.mapUi.updateCreationCoordinates(model.lat, model.lon);
|
||||
}
|
||||
this.mapUi.startCreating();
|
||||
this.mapUi.showSidebar();
|
||||
}
|
||||
|
||||
deactivate() {
|
||||
|
||||
@@ -193,6 +193,7 @@ export default class SearchRoute extends Route {
|
||||
// Ensure pulse is stopped if we reach here
|
||||
this.mapUi.stopSearch();
|
||||
this.mapUi.setSearchResults(model);
|
||||
this.mapUi.showSidebar();
|
||||
|
||||
// Store current search params to allow "Up" navigation from place details
|
||||
const { q, category, lat, lon } = this.paramsFor('search');
|
||||
|
||||
Reference in New Issue
Block a user