separate location extension
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user