Added ViewTransform methods

This commit is contained in:
ClemensFischer 2026-01-07 19:39:28 +01:00
parent eee71e9190
commit 26e9b21816
6 changed files with 25 additions and 12 deletions

View file

@ -221,7 +221,7 @@ namespace MapControl
if (point.HasValue)
{
point = ViewTransform.MapToViewMatrix.Transform(point.Value);
point = ViewTransform.MapToView(point.Value);
}
return point;
@ -240,7 +240,7 @@ namespace MapControl
/// </summary>
public Location ViewToLocation(Point point)
{
return MapProjection.MapToLocation(ViewTransform.ViewToMapMatrix.Transform(point));
return MapProjection.MapToLocation(ViewTransform.ViewToMap(point));
}
/// <summary>
@ -248,7 +248,7 @@ namespace MapControl
/// </summary>
public BoundingBox ViewToBoundingBox(Rect rect)
{
return MapProjection.MapToBoundingBox(ViewTransform.ViewToMapMatrix.TransformBounds(rect));
return MapProjection.MapToBoundingBox(ViewTransform.ViewToMapBounds(rect));
}
/// <summary>