Reputation: 746
I am implementing Google Maps in my iOS App. I want to remove certain labels from the map. I want to keep street names but want to remove malls, temples, restuarents etc labels from the map. How can i do this?
Upvotes: 1
Views: 532
Reputation: 746
I got it. We can style our maps using Map styles.check this link Just Style and download the json. Copy the json file into project and set the style like this:
if let stylesFile = Bundle.main.url(forResource: "style", withExtension: "json")
{
mMapView.mapStyle = try! GMSMapStyle.init(contentsOfFileURL: stylesFile)
}
Upvotes: 2