| 153 | } |
| 154 | |
| 155 | drape_ptr<MapScaleAnimation> GetScaleAnimation(ScreenBase const & startScreen, m2::PointD pxScaleCenter, |
| 156 | m2::PointD glbScaleCenter, double factor) |
| 157 | { |
| 158 | ScreenBase endScreen = startScreen; |
| 159 | ApplyScale(pxScaleCenter, factor, endScreen); |
| 160 | |
| 161 | auto anim = |
| 162 | make_unique_dp<MapScaleAnimation>(startScreen.GetScale(), endScreen.GetScale(), glbScaleCenter, pxScaleCenter); |
| 163 | anim->SetMaxDuration(kMaxAnimationTimeSec); |
| 164 | |
| 165 | return anim; |
| 166 | } |
| 167 | |
| 168 | } // namespace df |
no test coverage detected