File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,10 @@ - (void) setMapView:(MKMapView *)mapView {
404404
405405- (void ) ensureMapLayout {
406406 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults ];
407- _mapView.mapType = [defaults integerForKey: @" mapType" ];
407+ self.mapView .mapType = [defaults integerForKey: @" mapType" ];
408+
409+ BOOL showTraffic = [defaults boolForKey: @" mapShowTraffic" ];
410+ self.mapView .showsTraffic = showTraffic && self.mapView .mapType != MKMapTypeSatellite;
408411
409412 [self updateCacheOverlaysSynchronized: [[CacheOverlays getInstance ] getOverlays ]];
410413
Original file line number Diff line number Diff line change @@ -142,9 +142,6 @@ - (void) viewWillAppear:(BOOL)animated {
142142 self.mapDelegate .hideLocations = [defaults boolForKey: @" hidePeople" ];
143143 self.mapDelegate .hideObservations = [defaults boolForKey: @" hideObservations" ];
144144
145- Boolean showTraffic = [defaults boolForKey: @" mapShowTraffic" ];
146- self.mapView .showsTraffic = showTraffic;
147-
148145 [self setNavBarTitle ];
149146
150147 [defaults addObserver: self
You can’t perform that action at this time.
0 commit comments