Abstract MapProjection.RelativeScale

This commit is contained in:
ClemensFischer 2026-01-25 18:04:59 +01:00
parent ceb19a9ae4
commit e8e7cacac0
4 changed files with 54 additions and 44 deletions

View file

@ -3,6 +3,7 @@ using ProjNet.CoordinateSystems.Transformations;
using System;
#if WPF
using System.Windows;
using System.Windows.Media;
#elif AVALONIA
using Avalonia;
#endif
@ -70,6 +71,11 @@ namespace MapControl.Projections
public MathTransform MapToLocationTransform { get; private set; }
public override Matrix RelativeScale(double latitude, double longitude)
{
return new Matrix(1d, 0d, 0d, 1d, 0d, 0d);
}
public override Point? LocationToMap(double latitude, double longitude)
{
if (LocationToMapTransform == null)