| 228 | namespace |
| 229 | { |
| 230 | bool IsDrawableForIndexGeometryOnly(TypesHolder const & types, m2::RectD const & limitRect, int level) |
| 231 | { |
| 232 | Classificator const & c = classif(); |
| 233 | |
| 234 | static uint32_t const buildingPartType = c.GetTypeByPath({"building:part"}); |
| 235 | |
| 236 | // Exclude too small area features unless it's a part of a coast or a building. |
| 237 | if (types.GetGeomType() == GeomType::Area && !types.Has(c.GetCoastType()) && !types.Has(buildingPartType) && |
| 238 | !scales::IsGoodForLevel(level, limitRect)) |
| 239 | return false; |
| 240 | |
| 241 | return true; |
| 242 | } |
| 243 | |
| 244 | bool IsDrawableForIndexClassifOnly(TypesHolder const & types, int level) |
| 245 | { |
no test coverage detected