Shardul Sahdev
Shardul Sahdev

Reputation: 11

How to remove landmarks while using MapKit API (iOS)?

What function would be able to hide local landmarks when browsing a confined region via Apple Maps API?

Upvotes: 0

Views: 717

Answers (2)

Usman Nisar
Usman Nisar

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

Paras Gorasiya
Paras Gorasiya

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

Related Questions