I thought it had to be easy...but
So I have GMSMapView,
mapView.myLocationEnabled = true
mapView.settings.myLocationButton = true
I don't know how custom location button.
I found a solution how to change the position of the button
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;
}
}
}
}
source: Change my location button position in google map ios
I think this method will be possible to change the button image, but I do not know how to do it using Swift.
Thanks for help!