Esempio n. 1
0
 public void zoom(int zoomFactor)
 {
     if (this.baseLayer != null)
     {
         this.center().setPosition(CoordinateSystemUtilities.GetZoomedView(this.GetCoordinateSystem(), this.center().llz, zoomFactor));
     }
 }
Esempio n. 2
0
 protected override void OnMouseDoubleClick(MouseEventArgs e)
 {
     if (this.baseLayer != null)
     {
         Point point          = this.ScreenCenter();
         Point offsetInPixels = new Point(point.X - e.Location.X, point.Y - e.Location.Y);
         this.center().setPosition(CoordinateSystemUtilities.GetZoomedView(this.GetCoordinateSystem(), this.GetCoordinateSystem().GetTranslationInLatLon(this.center().llz, offsetInPixels), 1));
     }
     base.OnMouseDoubleClick(e);
 }