public void Transform(Point position, Point previousPosition, double deltaResolution = 1, double deltaRotation = 0) { if (Map.ZoomLock) { deltaResolution = 1; } if (Map.PanLock) { position = previousPosition; } _viewport.Transform(position, previousPosition, deltaResolution, deltaRotation); Limiter.Limit(_viewport, Map.Resolutions, Map.Envelope); }
public void Transform(double positionX, double positionY, double previousPositionX, double previousPositionY, double deltaResolution = 1, double deltaRotation = 0) { _viewport.Transform(positionX, positionY, previousPositionX, previousPositionY, deltaResolution, deltaRotation); Limiter.Limit(_viewport, Map.Resolutions, Map.Envelope); }