如何删除 Google 地图上 iOS 的兴趣点

How to get rid of points of interests on Google Maps for iOS

是否可以去掉地图上由 Google(iOS 的 SDK)自动分配的兴趣点,例如:学校、公司等?其中一些标记在下面的屏幕截图中。

我不知道如何使用 google 地图 API 来做到这一点。我建议改用 MapKit。

您可以使用 showsPointsOfInterest 方法设置兴趣点是否可见。

Documentation link

When this property is set to true, the map displays icons and labels for restaurants, schools, and other relevant points of interest. The default value of this property is true.

对于 google 地图,您可以使用 json 样式隐藏

https://developers.google.com/maps/documentation/ios-sdk/hiding-features

最简单的方法:

mapView.pointOfInterestFilter = .excludingAll