mkcoordinatespan

Trying to get the span size in meters for an iOS MKCoordinateSpan

大兔子大兔子 提交于 2019-12-03 07:32:32
问题 When I need to make an MKCoordinateRegion , I do the following: var region = MKCoordinateRegion .FromDistance(coordinate, RegionSizeInMeters, RegionSizeInMeters); very simple - works perfectly. Now I wish to store the value of the current region span . When i look at the region.Span value, it’s an MKCoordinateSpan which has two properties: public double LatitudeDelta; public double LongitudeDelta; How can I convert the LatitudeDelta value into a latitudinalMeters please? (So then I can

Trying to get the span size in meters for an iOS MKCoordinateSpan

房东的猫 提交于 2019-12-02 22:25:01
When I need to make an MKCoordinateRegion , I do the following: var region = MKCoordinateRegion .FromDistance(coordinate, RegionSizeInMeters, RegionSizeInMeters); very simple - works perfectly. Now I wish to store the value of the current region span . When i look at the region.Span value, it’s an MKCoordinateSpan which has two properties: public double LatitudeDelta; public double LongitudeDelta; How can I convert the LatitudeDelta value into a latitudinalMeters please? (So then I can recreate my region (later on) using the above method... Hannes As I can see you already have the region of