@@ -173,97 +173,97 @@ final class GoogleMapsViewImpl: UIView, GMSMapViewDelegate {
173173
174174 @MainActor
175175 var buildingEnabled : Bool ? {
176- get { mapView. isBuildingsEnabled }
177- set {
178- pendingBuildingEnabled = newValue
179- if let value = newValue {
180- mapView. isBuildingsEnabled = value
181- }
176+ get { mapView. isBuildingsEnabled }
177+ set {
178+ pendingBuildingEnabled = newValue
179+ if let value = newValue {
180+ mapView. isBuildingsEnabled = value
182181 }
182+ }
183183 }
184184
185185 @MainActor
186186 var trafficEnabled : Bool ? {
187- get { mapView. isTrafficEnabled }
188- set {
189- pendingTrafficEnabled = newValue
190- if let value = newValue {
191- mapView. isTrafficEnabled = value
192- }
187+ get { mapView. isTrafficEnabled }
188+ set {
189+ pendingTrafficEnabled = newValue
190+ if let value = newValue {
191+ mapView. isTrafficEnabled = value
193192 }
193+ }
194194 }
195195
196196 @MainActor
197197 var customMapStyle : GMSMapStyle ? {
198- get { pendingCustomMapStyle }
199- set {
200- pendingCustomMapStyle = newValue
201- if let style = newValue {
202- mapView. mapStyle = style
203- }
198+ get { pendingCustomMapStyle }
199+ set {
200+ pendingCustomMapStyle = newValue
201+ if let style = newValue {
202+ mapView. mapStyle = style
204203 }
204+ }
205205 }
206206
207207 @MainActor
208208 var initialCamera : GMSCameraPosition ? {
209- get { pendingInitialCamera }
210- set {
211- pendingInitialCamera = newValue
212- if let camera = newValue, !mapReady {
213- mapView. camera = camera
214- }
209+ get { pendingInitialCamera }
210+ set {
211+ pendingInitialCamera = newValue
212+ if let camera = newValue, !mapReady {
213+ mapView. camera = camera
215214 }
215+ }
216216 }
217217
218218 @MainActor
219219 var userInterfaceStyle : UIUserInterfaceStyle ? {
220- get { pendingUserInterfaceStyle }
221- set {
222- pendingUserInterfaceStyle = newValue
223- if let style = newValue {
224- mapView. overrideUserInterfaceStyle = style
225- }
220+ get { pendingUserInterfaceStyle }
221+ set {
222+ pendingUserInterfaceStyle = newValue
223+ if let style = newValue {
224+ mapView. overrideUserInterfaceStyle = style
226225 }
226+ }
227227 }
228228
229229 @MainActor
230230 var minZoomLevel : Double ? {
231- get { pendingMinZoomLevel }
232- set {
233- pendingMinZoomLevel = newValue
234- if let min = newValue, let max = pendingMaxZoomLevel {
235- mapView. setMinZoom ( Float ( min) , maxZoom: Float ( max) )
236- }
231+ get { pendingMinZoomLevel }
232+ set {
233+ pendingMinZoomLevel = newValue
234+ if let min = newValue, let max = pendingMaxZoomLevel {
235+ mapView. setMinZoom ( Float ( min) , maxZoom: Float ( max) )
237236 }
237+ }
238238 }
239239
240240 @MainActor
241241 var maxZoomLevel : Double ? {
242- get { pendingMaxZoomLevel }
243- set {
244- pendingMaxZoomLevel = newValue
245- if let max = newValue, let min = pendingMinZoomLevel {
246- mapView. setMinZoom ( Float ( min) , maxZoom: Float ( max) )
247- }
242+ get { pendingMaxZoomLevel }
243+ set {
244+ pendingMaxZoomLevel = newValue
245+ if let max = newValue, let min = pendingMinZoomLevel {
246+ mapView. setMinZoom ( Float ( min) , maxZoom: Float ( max) )
248247 }
248+ }
249249 }
250250
251251 @MainActor
252252 var mapPadding : RNMapPadding ? {
253- get { pendingMapPadding }
254- set {
255- pendingMapPadding = newValue
256- if let padding = newValue {
257- mapView. padding = UIEdgeInsets (
258- top: padding. top,
259- left: padding. left,
260- bottom: padding. bottom,
261- right: padding. right
262- )
263- } else {
264- mapView. padding = . zero
265- }
253+ get { pendingMapPadding }
254+ set {
255+ pendingMapPadding = newValue
256+ if let padding = newValue {
257+ mapView. padding = UIEdgeInsets (
258+ top: padding. top,
259+ left: padding. left,
260+ bottom: padding. bottom,
261+ right: padding. right
262+ )
263+ } else {
264+ mapView. padding = . zero
266265 }
266+ }
267267 }
268268
269269 func setCamera( camera: RNCamera , animated: Bool , durationMS: Double ) {
0 commit comments