amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

Invalid CoordinateBounds was created when Longitude<-90 or Longitude>90 #560

Closed uitmaurik closed 5 years ago

uitmaurik commented 5 years ago

Using another constructor for CoordinateBounds results in a valid object when the longitude of the center is <-90 or >90. With this valid object, the correct region is set.

In the original code calling MoveToRegion(MapSpan.FromCenterAndRadius(new Position(0, 91), Distance.FromKilometers(10000)), false); or MoveToRegion(MapSpan.FromCenterAndRadius(new Position(0, -91), Distance.FromKilometers(10000)), false); did not set the region. With the new code it correctly sets the region.

galadril commented 5 years ago

👍

amay077 commented 5 years ago

ref #559

amay077 commented 5 years ago

Good job! 👍