@@ -97,7 +97,7 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
9797 if self . lastSubmittedLocation? . coordinate. latitude
9898 != loc. coordinate. latitude
9999 || self . lastSubmittedLocation? . coordinate. longitude
100- != loc. coordinate. longitude {
100+ != loc. coordinate. longitude {
101101 self . onLocationUpdate ? (
102102 RNLocation (
103103 RNLatLng (
@@ -120,36 +120,36 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
120120 private func applyPending( ) {
121121
122122 if let padding = pendingMapPadding {
123- mapView. padding = UIEdgeInsets (
124- top: padding. top,
125- left: padding. left,
126- bottom: padding. bottom,
127- right: padding. right
128- )
123+ mapView. padding = UIEdgeInsets (
124+ top: padding. top,
125+ left: padding. left,
126+ bottom: padding. bottom,
127+ right: padding. right
128+ )
129129 }
130130
131131 if let style = pendingCustomMapStyle {
132- mapView. mapStyle = style
132+ mapView. mapStyle = style
133133 }
134134
135135 if let mapType = pendingMapType {
136- mapView. mapType = mapType
136+ mapView. mapType = mapType
137137 }
138138
139139 if let buildings = pendingBuildingEnabled {
140- mapView. isBuildingsEnabled = buildings
140+ mapView. isBuildingsEnabled = buildings
141141 }
142142
143143 if let traffic = pendingTrafficEnabled {
144- mapView. isTrafficEnabled = traffic
144+ mapView. isTrafficEnabled = traffic
145145 }
146146
147147 if let uiStyle = pendingUserInterfaceStyle {
148- mapView. overrideUserInterfaceStyle = uiStyle
148+ mapView. overrideUserInterfaceStyle = uiStyle
149149 }
150150
151151 if let minZoom = pendingMinZoomLevel, let maxZoom = pendingMaxZoomLevel {
152- mapView. setMinZoom ( Float ( minZoom) , maxZoom: Float ( maxZoom) )
152+ mapView. setMinZoom ( Float ( minZoom) , maxZoom: Float ( maxZoom) )
153153 }
154154
155155 if !pendingMarkers. isEmpty {
@@ -260,10 +260,10 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
260260 pendingMapPadding = newValue
261261 if let padding = newValue {
262262 mapView. padding = UIEdgeInsets (
263- top: padding. top,
264- left: padding. left,
265- bottom: padding. bottom,
266- right: padding. right
263+ top: padding. top,
264+ left: padding. left,
265+ bottom: padding. bottom,
266+ right: padding. right
267267 )
268268 } else {
269269 mapView. padding = . zero
@@ -494,7 +494,7 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
494494 super. didMoveToWindow ( )
495495 if window != nil {
496496 if mapView != nil && mapReady {
497- onMapReady ? ( true )
497+ onMapReady ? ( true )
498498 }
499499 locationHandler. start ( )
500500 } else {
@@ -541,11 +541,11 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
541541
542542 func mapView( _ mapView: GMSMapView , didChange position: GMSCameraPosition ) {
543543 if let last = lastSubmittedCameraPosition,
544- last. target. latitude == position. target. latitude,
545- last. target. longitude == position. target. longitude,
546- last. zoom == position. zoom,
547- last. bearing == position. bearing,
548- last. viewingAngle == position. viewingAngle {
544+ last. target. latitude == position. target. latitude,
545+ last. target. longitude == position. target. longitude,
546+ last. zoom == position. zoom,
547+ last. bearing == position. bearing,
548+ last. viewingAngle == position. viewingAngle {
549549 return
550550 }
551551 let visibleRegion = mapView. projection. visibleRegion ( )
@@ -613,10 +613,10 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
613613 didTapAt coordinate: CLLocationCoordinate2D
614614 ) {
615615 onMapPress ? (
616- RNLatLng (
617- latitude: coordinate. latitude,
618- longitude: coordinate. longitude
619- ) )
616+ RNLatLng (
617+ latitude: coordinate. latitude,
618+ longitude: coordinate. longitude
619+ ) )
620620 }
621621
622622 func mapView( _ mapView: GMSMapView , didTap marker: GMSMarker ) -> Bool {
0 commit comments