Пример #1
0
        /// <summary>
        /// Notifies movement.
        /// </summary>
        private void NotifyMovement()
        {
            // create the view.
            View2D view = _renderer.Create(this.Width, this.Height,
                                           this.Map, (float)this.Map.Projection.ToZoomFactor(this.ZoomLevel), this.Center, false, true);

            _target.SetOrtho((float)view.LeftTop[0], (float)view.RightTop[0],
                             (float)view.LeftBottom[1], (float)view.LeftTop[1]);
        }
Пример #2
0
 private void SetOrtho(View2D view)
 {
     // TODO: create rotation.
     _target.SetOrtho((float)view.LeftTop[0], (float)view.RightTop[0],
                      (float)view.LeftTop[1], (float)view.RightBottom[1]);
 }