I know this is already asked question but I tried all the solutions which is in that SO question but none of them worked so can any one tell me how to change frame of the google map my location button. I am using 1.13.23885.0 version of the google map.
1) Not working
mapView = [[GMSMapView alloc] init];
mapView.tag = Tag_googleMapView;
mapView.frame = CGRectMake(0.0, 0.0, view.frame.size.width,view.frame.size.height);
mapView.delegate = self;
mapView.indoorEnabled = YES;
[mapView setMyLocationEnabled:YES];
[mapView.settings setMyLocationButton:YES];
[view addSubview:mapView];
[self setupOverviewMarker:view];
[mapView setPadding:UIEdgeInsetsMake(70.0, 10.0, 0.0, 0.0)];
2) Not Working
for (UIView *object in mapView.subviews) {
if([[[object class] description] isEqualToString:@"GMSUISettingsView"] )
{
for(UIView *view in object.subviews) {
if([[[view class] description] isEqualToString:@"GMSx_QTMButton"] ) {
CGRect frame = view.frame;
frame.origin.y = 0.0;
view.frame = frame;
}
}
}
}
[mapView updateConstraintsIfNeeded];
[mapView layoutIfNeeded];
Is it possible in new SDK?