@@ -436,19 +436,19 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
436
436
: nil ];
437
437
}
438
438
NSNumber *compassEnabled = config.compassEnabled ;
439
- if (compassEnabled) {
439
+ if (compassEnabled != nil ) {
440
440
[self setCompassEnabled: compassEnabled.boolValue];
441
441
}
442
442
NSNumber *indoorEnabled = config.indoorViewEnabled ;
443
- if (indoorEnabled) {
443
+ if (indoorEnabled != nil ) {
444
444
[self setIndoorEnabled: indoorEnabled.boolValue];
445
445
}
446
446
NSNumber *trafficEnabled = config.trafficEnabled ;
447
- if (trafficEnabled) {
447
+ if (trafficEnabled != nil ) {
448
448
[self setTrafficEnabled: trafficEnabled.boolValue];
449
449
}
450
450
NSNumber *buildingsEnabled = config.buildingsEnabled ;
451
- if (buildingsEnabled) {
451
+ if (buildingsEnabled != nil ) {
452
452
[self setBuildingsEnabled: buildingsEnabled.boolValue];
453
453
}
454
454
FGMPlatformMapTypeBox *mapType = config.mapType ;
@@ -457,8 +457,8 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
457
457
}
458
458
FGMPlatformZoomRange *zoomData = config.minMaxZoomPreference ;
459
459
if (zoomData) {
460
- float minZoom = zoomData.min ? zoomData.min .floatValue : kGMSMinZoomLevel ;
461
- float maxZoom = zoomData.max ? zoomData.max .floatValue : kGMSMaxZoomLevel ;
460
+ float minZoom = zoomData.min != nil ? zoomData.min .floatValue : kGMSMinZoomLevel ;
461
+ float maxZoom = zoomData.max != nil ? zoomData.max .floatValue : kGMSMaxZoomLevel ;
462
462
[self setMinZoom: minZoom maxZoom: maxZoom];
463
463
}
464
464
FGMPlatformEdgeInsets *padding = config.padding ;
@@ -467,31 +467,31 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
467
467
}
468
468
469
469
NSNumber *rotateGesturesEnabled = config.rotateGesturesEnabled ;
470
- if (rotateGesturesEnabled) {
470
+ if (rotateGesturesEnabled != nil ) {
471
471
[self setRotateGesturesEnabled: rotateGesturesEnabled.boolValue];
472
472
}
473
473
NSNumber *scrollGesturesEnabled = config.scrollGesturesEnabled ;
474
- if (scrollGesturesEnabled) {
474
+ if (scrollGesturesEnabled != nil ) {
475
475
[self setScrollGesturesEnabled: scrollGesturesEnabled.boolValue];
476
476
}
477
477
NSNumber *tiltGesturesEnabled = config.tiltGesturesEnabled ;
478
- if (tiltGesturesEnabled) {
478
+ if (tiltGesturesEnabled != nil ) {
479
479
[self setTiltGesturesEnabled: tiltGesturesEnabled.boolValue];
480
480
}
481
481
NSNumber *trackCameraPosition = config.trackCameraPosition ;
482
- if (trackCameraPosition) {
482
+ if (trackCameraPosition != nil ) {
483
483
[self setTrackCameraPosition: trackCameraPosition.boolValue];
484
484
}
485
485
NSNumber *zoomGesturesEnabled = config.zoomGesturesEnabled ;
486
- if (zoomGesturesEnabled) {
486
+ if (zoomGesturesEnabled != nil ) {
487
487
[self setZoomGesturesEnabled: zoomGesturesEnabled.boolValue];
488
488
}
489
489
NSNumber *myLocationEnabled = config.myLocationEnabled ;
490
- if (myLocationEnabled) {
490
+ if (myLocationEnabled != nil ) {
491
491
[self setMyLocationEnabled: myLocationEnabled.boolValue];
492
492
}
493
493
NSNumber *myLocationButtonEnabled = config.myLocationButtonEnabled ;
494
- if (myLocationButtonEnabled) {
494
+ if (myLocationButtonEnabled != nil ) {
495
495
[self setMyLocationButtonEnabled: myLocationButtonEnabled.boolValue];
496
496
}
497
497
NSString *style = config.style ;
@@ -665,7 +665,8 @@ - (void)animateCameraWithUpdate:(nonnull FGMPlatformCameraUpdate *)cameraUpdate
665
665
details: nil ];
666
666
return ;
667
667
}
668
- FGMCATransactionWrapper *transaction = durationMilliseconds ? self.transactionWrapper : nil ;
668
+ FGMCATransactionWrapper *transaction =
669
+ durationMilliseconds != nil ? self.transactionWrapper : nil ;
669
670
[transaction begin ];
670
671
[transaction setAnimationDuration: [durationMilliseconds doubleValue ] / 1000 ];
671
672
[self .controller.mapView animateWithCameraUpdate: update];
0 commit comments