@@ -436,19 +436,19 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
436436 : nil ];
437437 }
438438 NSNumber *compassEnabled = config.compassEnabled ;
439- if (compassEnabled) {
439+ if (compassEnabled != nil ) {
440440 [self setCompassEnabled: compassEnabled.boolValue];
441441 }
442442 NSNumber *indoorEnabled = config.indoorViewEnabled ;
443- if (indoorEnabled) {
443+ if (indoorEnabled != nil ) {
444444 [self setIndoorEnabled: indoorEnabled.boolValue];
445445 }
446446 NSNumber *trafficEnabled = config.trafficEnabled ;
447- if (trafficEnabled) {
447+ if (trafficEnabled != nil ) {
448448 [self setTrafficEnabled: trafficEnabled.boolValue];
449449 }
450450 NSNumber *buildingsEnabled = config.buildingsEnabled ;
451- if (buildingsEnabled) {
451+ if (buildingsEnabled != nil ) {
452452 [self setBuildingsEnabled: buildingsEnabled.boolValue];
453453 }
454454 FGMPlatformMapTypeBox *mapType = config.mapType ;
@@ -457,8 +457,8 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
457457 }
458458 FGMPlatformZoomRange *zoomData = config.minMaxZoomPreference ;
459459 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 ;
462462 [self setMinZoom: minZoom maxZoom: maxZoom];
463463 }
464464 FGMPlatformEdgeInsets *padding = config.padding ;
@@ -467,31 +467,31 @@ - (void)interpretMapConfiguration:(FGMPlatformMapConfiguration *)config {
467467 }
468468
469469 NSNumber *rotateGesturesEnabled = config.rotateGesturesEnabled ;
470- if (rotateGesturesEnabled) {
470+ if (rotateGesturesEnabled != nil ) {
471471 [self setRotateGesturesEnabled: rotateGesturesEnabled.boolValue];
472472 }
473473 NSNumber *scrollGesturesEnabled = config.scrollGesturesEnabled ;
474- if (scrollGesturesEnabled) {
474+ if (scrollGesturesEnabled != nil ) {
475475 [self setScrollGesturesEnabled: scrollGesturesEnabled.boolValue];
476476 }
477477 NSNumber *tiltGesturesEnabled = config.tiltGesturesEnabled ;
478- if (tiltGesturesEnabled) {
478+ if (tiltGesturesEnabled != nil ) {
479479 [self setTiltGesturesEnabled: tiltGesturesEnabled.boolValue];
480480 }
481481 NSNumber *trackCameraPosition = config.trackCameraPosition ;
482- if (trackCameraPosition) {
482+ if (trackCameraPosition != nil ) {
483483 [self setTrackCameraPosition: trackCameraPosition.boolValue];
484484 }
485485 NSNumber *zoomGesturesEnabled = config.zoomGesturesEnabled ;
486- if (zoomGesturesEnabled) {
486+ if (zoomGesturesEnabled != nil ) {
487487 [self setZoomGesturesEnabled: zoomGesturesEnabled.boolValue];
488488 }
489489 NSNumber *myLocationEnabled = config.myLocationEnabled ;
490- if (myLocationEnabled) {
490+ if (myLocationEnabled != nil ) {
491491 [self setMyLocationEnabled: myLocationEnabled.boolValue];
492492 }
493493 NSNumber *myLocationButtonEnabled = config.myLocationButtonEnabled ;
494- if (myLocationButtonEnabled) {
494+ if (myLocationButtonEnabled != nil ) {
495495 [self setMyLocationButtonEnabled: myLocationButtonEnabled.boolValue];
496496 }
497497 NSString *style = config.style ;
@@ -665,7 +665,7 @@ - (void)animateCameraWithUpdate:(nonnull FGMPlatformCameraUpdate *)cameraUpdate
665665 details: nil ];
666666 return ;
667667 }
668- FGMCATransactionWrapper *transaction = durationMilliseconds ? self.transactionWrapper : nil ;
668+ FGMCATransactionWrapper *transaction = durationMilliseconds != nil ? self.transactionWrapper : nil ;
669669 [transaction begin ];
670670 [transaction setAnimationDuration: [durationMilliseconds doubleValue ] / 1000 ];
671671 [self .controller.mapView animateWithCameraUpdate: update];
0 commit comments