sharee.bike-App/TINKLib/Model/Map/NullMapSpan.cs

17 lines
383 B
C#
Raw Normal View History

2022-01-22 18:16:10 +01:00

namespace TINK.Model.Map
{
2022-09-06 16:08:19 +02:00
public class NullMapSpan : IMapSpan
{
internal NullMapSpan() { }
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
/// <summary> Center of map displayed area.</summary>
public IPosition Center { get; } = PositionFactory.Create();
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
/// <summary> Radius of displayed map area. </summary>
public double Radius => double.NaN;
2022-01-22 18:16:10 +01:00
2022-09-06 16:08:19 +02:00
public bool IsValid => MapSpan.GetIsValid(Center, Radius);
}
2022-01-22 18:16:10 +01:00
}