Skip to content

Instantly share code, notes, and snippets.

@lapfelix
Last active September 12, 2016 03:03
Show Gist options
  • Save lapfelix/48d1828b32731b9e2b7737ec40cae2c2 to your computer and use it in GitHub Desktop.
Save lapfelix/48d1828b32731b9e2b7737ec40cae2c2 to your computer and use it in GitHub Desktop.
@import GoogleMaps;
@protocol LabelsEntityProviderLabeling <NSObject>
@property (assign, nonatomic) bool labelingEnabled;
@end
- (void)forceRemoveLabelsFromMap:(GMSMapView *)mapView {
GMSUISettings *settings = mapView.settings;
NSObject *vectorMapView = [settings valueForKey:@"_vectorMapView"];
NSObject<LabelsEntityProviderLabeling> *labelsEntityProvider = [vectorMapView valueForKey:@"_labelsEntityProvider"];
labelsEntityProvider.labelingEnabled = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment