Google Maps draws the wrong circle if it borders the South Pole

I am trying to draw a circle with a given radius and center point. However, for some reason, Google Maps for iOS returns a result if the circle reaches the south pole.

Here is the result with radius = 6000 km and center in Sydney. It looks simple:

enter image description here

But if I set the radius to 7000 km, the result will be useless:

enter image description here

Expected Result:

enter image description here

The code I'm using to add a circle is pretty simple:

GMSCircle *geoFenceCircle = [[GMSCircle alloc] init];
geoFenceCircle.radius = 6000000; // Meters
geoFenceCircle.position = _sydneyMarker.position;
geoFenceCircle.fillColor = [UIColor colorWithWhite:0.7 alpha:0.5];
geoFenceCircle.strokeWidth = 3;
geoFenceCircle.strokeColor = [UIColor orangeColor];
geoFenceCircle.map = mapView; 

Is there any way to fix this?

+4
source share

All Articles