当通过Apple Maps API浏览受限区域时,什么功能可以隐藏本地地标?
MKMapView
有一个名为showsPointsOfInterest
的属性,您可以将其设置为NO
,以隐藏餐馆,学校和其他相关兴趣点的图标和标签。
showpointsofestest已弃用。
使用iOS 13,您可以选择过滤:这里是一个示例,可以在地图上显示任何项目
mapView.pointOfInterestFilter = .some(MKPointOfInterestFilter(including: []))