separate location extension

This commit is contained in:
2022-03-18 18:44:30 +08:00
parent 7ca377b8c2
commit b7affae8ab
4 changed files with 56 additions and 34 deletions

View File

@ -14,7 +14,7 @@ namespace Billing.Views
if (bill.Latitude != null && bill.Longitude != null)
{
var (longitude, latitude) = Helper.Wgs84ToGcj02(bill.Longitude.Value, bill.Latitude.Value);
var (longitude, latitude) = (bill.Longitude.Value, bill.Latitude.Value).Wgs84ToGcj02();
var position = new Position(latitude, longitude);
var mapSpan = new MapSpan(position, 0.01, 0.01);
Content = new Map(mapSpan)