Cache category search results
And abort ongoing searches when there's a new query
This commit is contained in:
@@ -42,7 +42,7 @@ export default class SearchRoute extends Route {
|
||||
};
|
||||
}
|
||||
|
||||
pois = await this.osm.getCategoryPois(bounds, params.category);
|
||||
pois = await this.osm.getCategoryPois(bounds, params.category, lat, lon);
|
||||
|
||||
// Sort by distance from center
|
||||
pois = pois
|
||||
|
||||
Reference in New Issue
Block a user