Ejemplo n.º 1
0
void SetRectFixedAR(m2::AnyRectD const & rect, const ScalesProcessor & scales, Navigator & navigator)
{
  double const halfSize = scales.GetTileSize() / 2.0;
  m2::RectD etalonRect(-halfSize, -halfSize, halfSize, halfSize);

  m2::PointD const pxCenter = navigator.Screen().PixelRect().Center();
  etalonRect.Offset(pxCenter);

  navigator.SetFromRects(rect, etalonRect);
}