Filter basemap results for road maps
This commit is contained in:
parent
981ddd553d
commit
771ec143ba
1 changed files with 1 additions and 1 deletions
|
@ -1239,7 +1239,7 @@ ResultPublisher* searchObjectsForRendering(SearchQuery* q, bool skipDuplicates,
|
||||||
o->objectNames["name"] = msgNothingFound;
|
o->objectNames["name"] = msgNothingFound;
|
||||||
tempResult.push_back(o);
|
tempResult.push_back(o);
|
||||||
}
|
}
|
||||||
if (q->zoom <= BASEMAP_ZOOM || emptyData || renderRouteDataFile >= 0) {
|
if (q->zoom <= BASEMAP_ZOOM || emptyData || (renderRouteDataFile >= 0 && q->zoom < 15)) {
|
||||||
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
|
tempResult.insert(tempResult.end(), basemapResult.begin(), basemapResult.end());
|
||||||
} else {
|
} else {
|
||||||
deleteObjects(basemapResult);
|
deleteObjects(basemapResult);
|
||||||
|
|
Loading…
Reference in a new issue