コード例 #1
0
 public void SetSize(double width, double height)
 {
     _viewport.SetSize(width, height);
     if (_viewport.HasSize)
     {
         Limiter.LimitExtent(_viewport, Map.Envelope);
     }
 }
コード例 #2
0
 public void SetCenter(MReadOnlyPoint center, long duration = 0, Easing?easing = default)
 {
     if (Map?.PanLock ?? false)
     {
         return;
     }
     _viewport.SetCenter(center, duration, easing);
     Limiter?.LimitExtent(_viewport, Map?.Extent);
 }
コード例 #3
0
 public virtual void SetCenterAndResolution(double x, double y, double resolution, long duration = 0, Easing?easing = default)
 {
     if (Map?.PanLock ?? false)
     {
         return;
     }
     _viewport.SetCenterAndResolution(x, y, resolution, duration, easing);
     Limiter?.LimitExtent(_viewport, Map?.Extent);
 }
コード例 #4
0
 public void SetRotation(double rotation, long duration = 0, Easing?easing = default)
 {
     if (Map?.RotationLock ?? false)
     {
         return;
     }
     _viewport.SetRotation(rotation, duration, easing);
     Limiter?.LimitExtent(_viewport, Map?.Extent);
 }
コード例 #5
0
 public void SetRotation(double rotation)
 {
     if (Map.RotationLock)
     {
         return;
     }
     _viewport.SetRotation(rotation);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }
コード例 #6
0
 public void SetCenter(ReadOnlyPoint center)
 {
     if (Map.PanLock)
     {
         return;
     }
     _viewport.SetCenter(center);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }
コード例 #7
0
 public virtual void SetCenter(double x, double y)
 {
     if (Map.PanLock)
     {
         return;
     }
     _viewport.SetCenter(x, y);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }
コード例 #8
0
 public void SetRotation(double rotation)
 {
     _viewport.SetRotation(rotation);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }
コード例 #9
0
 public void SetCenter(ReadOnlyPoint center)
 {
     _viewport.SetCenter(center);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }
コード例 #10
0
 public virtual void SetCenter(double x, double y)
 {
     _viewport.SetCenter(x, y);
     Limiter.LimitExtent(_viewport, Map.Envelope);
 }