public void SetResolution(double resolution) { if (Map.ZoomLock) { return; } resolution = Limiter.LimitResolution(resolution, _viewport.Width, _viewport.Height, Map.Resolutions, Map.Envelope); _viewport.SetResolution(resolution); }
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); }