iOS 10 GMSMapView显示我的白色背景位置图标

时间:2016-07-07 19:46:36

标签: gmsmapview ios10

此问题未在以前的iOS版本中显示。但在iOS 10测试版中,用户位置图标显示错误。蓝点在不同的背景中显示其框架而不是clearColor。

enter image description here

enter image description here

这是iOS10的问题吗?设置蓝色图标的背景颜色的任何解决方法?

我知道我们可以通过将蓝点设置为NO和

来放置自定义图标
 GMSMarker *pointMarker = [GMSMarker markerWithPosition:currentPosition];
 pointMarker.icon = [UIImage imageNamed:@"YourImage"];
 pointMarker.map = _map;

有没有其他方法可以将用户位置的背景设置为清除颜色?

1 个答案:

答案 0 :(得分:0)

这有时会发生在模拟器中,我在较旧的iOS版本上看到过它。

如果在设备上发生这种情况,那么它就是一个错误。