Filter basemap results for road maps

This commit is contained in:
Victor Shcherb 2012-11-20 20:41:14 +01:00
parent 981ddd553d
commit 771ec143ba

View file

@ -1239,7 +1239,7 @@ ResultPublisher* searchObjectsForRendering(SearchQuery* q, bool skipDuplicates,
o->objectNames["name"] = msgNothingFound;
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());
} else {
deleteObjects(basemapResult);