예제 #1
0
 public void SetResolution(double resolution)
 {
     if (Map.ZoomLock)
     {
         return;
     }
     resolution = Limiter.LimitResolution(resolution, _viewport.Width, _viewport.Height, Map.Resolutions, Map.Envelope);
     _viewport.SetResolution(resolution);
 }
예제 #2
0
        public void SetResolution(double resolution, long duration = 0, Easing?easing = default)
        {
            if (Map?.ZoomLock ?? true)
            {
                return;
            }
            if (Limiter != null)
            {
                resolution = Limiter.LimitResolution(resolution, _viewport.Width, _viewport.Height, Map.Resolutions, Map.Extent);
            }

            _viewport.SetResolution(resolution, duration, easing);
        }