Reputation: 11
What function would be able to hide local landmarks when browsing a confined region via Apple Maps API?
Upvotes: 0
Views: 717
Reputation: 3091
showsPointsOfInterest is deprecated.
With IOS 13 you have the option to filter: here a example to show no items on the map
mapView.pointOfInterestFilter = .some(MKPointOfInterestFilter(including: []))
Upvotes: 0
Reputation: 1361
There is a property called showsPointsOfInterest
for MKMapView
, you can set it to NO
to hide icons and labels for restaurants, schools, and other relevant points of interest.
Upvotes: 0