Can't Repro
Status Update
Comments
br...@google.com <br...@google.com>
ma...@gmail.com <ma...@gmail.com> #3
Fixed in version 1.10.0. Thanks for the report!
al...@gmail.com <al...@gmail.com> #4
It seems the issue is not fixed (Version 1.10.4)
Description
To reproduce the problem:
1. Create a simple single view application with a GMSMapView in it and set the GMSMapView's myLocationEnabled property to YES in viewDidLoad.
2. Add a boolean property to the view controller like @property (nonatomic)BOOL shouldEnableMyLocation;
3. Add a repeating NSTimer which will cycle the boolean property once every few seconds:
[NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(cycleMyLocationEnabled) userInfo:nil repeats:YES];
- (void)cycleMyLocationEnabled {
self.shouldEnableMyLocation = !self.shouldEnableMyLocation;
self.myGMSMapView.myLocationEnabled = self.shouldEnableMyLocation
}
4. Run in the simulator and select one of the stock set of simulated locations (e.g. London, Moscow, Tokyo etc). If myLocationEnabled is set to YES, the blue dot should appear. Once it's set to NO, the blue dot will disappear. Once it's set to YES again, the blue dot will NOT reappear, even when myLocationEnabled has been cycled back to YES. To make the blue dot reappear, one must choose a different simulated location, as the change of location is what seems to trigger the dot's reappearance. Note that this problem is probably easier to debug in a simulator than on a device, or at least on a device with no true GPS. On a device, especially one with a true GPS, the location may change frequently making it potentially hard to observe the effect of the blue dot not reappearing, given that a location change seems to trigger it to reappear.
*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************