path: root/Xamarin.Forms.Core/ResourcesChangedEventArgs.cs
diff options
authorindydawgy <>2017-03-07 10:40:47 (GMT)
committerRui Marinho <>2017-03-07 10:40:47 (GMT)
commit917d27e079a23c96ee3201cc7f35069cd837ed9a (patch)
tree7a655b95e4370614cbaac758271abbf534265a5d /Xamarin.Forms.Core/ResourcesChangedEventArgs.cs
parentf6633c462929fdf426492dd9f08e9862b523b420 (diff)
UWP MapRenderer fixes. (#724)
* Issues: 1. The MapRenderer calls TrySetViewBoundsAsync before the map is ready for it. This causes the map to hardly ever initialize to the correct position. 2. The visible region calculation gets the zoom wrong. 3. Map can cause a crash if you rotate/zoom a lot when setting the visible region. Fixes: 1. Call MoveToRegion using MapControl's RunIdleAsync to have it move after the map starts rendering 2. lat/long delta should be: var latitudeDelta = Math.Abs(nw.Position.Latitude - se.Position.Latitude); var longitudeDelta = Math.Abs(nw.Position.Longitude - se.Position.Longitude); rather than calculated from the center 3. Move the visible region set into the try/catch block. * Made spaces into tabs to conform to previous standard.
Diffstat (limited to 'Xamarin.Forms.Core/ResourcesChangedEventArgs.cs')
0 files changed, 0 insertions, 0 deletions