mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-06 15:54:14 +01:00
Update MainWindow.xaml.cs
This commit is contained in:
parent
6429776853
commit
2dc7431c25
|
|
@ -107,12 +107,17 @@ namespace ProjectionDemo
|
|||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(PushpinLocation)));
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(PushpinText)));
|
||||
}
|
||||
} = new();
|
||||
}
|
||||
|
||||
public string PushpinText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PushpinLocation == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var latitude = (int)Math.Round(PushpinLocation.Latitude * 36000);
|
||||
var longitude = (int)Math.Round(Location.NormalizeLongitude(PushpinLocation.Longitude) * 36000);
|
||||
var latHemisphere = 'N';
|
||||
|
|
|
|||
Loading…
Reference in a new issue