| 66 | } |
| 67 | |
| 68 | m2::RectD CalcLimitRect(CountryId const & countryId, Storage const & storage, |
| 69 | CountryInfoGetter const & countryInfoGetter) |
| 70 | { |
| 71 | m2::RectD boundingBox; |
| 72 | auto const accumulator = [&countryInfoGetter, &boundingBox](CountryId const & descendantId, bool groupNode) |
| 73 | { |
| 74 | if (!groupNode) |
| 75 | boundingBox.Add(countryInfoGetter.GetLimitRectForLeaf(descendantId)); |
| 76 | }; |
| 77 | |
| 78 | storage.ForEachInSubtree(countryId, accumulator); |
| 79 | |
| 80 | ASSERT(boundingBox.IsValid(), ()); |
| 81 | return boundingBox; |
| 82 | } |
| 83 | |
| 84 | MwmSize GetRemoteSize(diffs::DiffsDataSource const & diffsDataSource, platform::CountryFile const & file) |
| 85 | { |