react-native-google-maps-plus 1.6.1-dev.6 → 1.6.1-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -278,7 +278,7 @@ GMSIndoorDisplayDelegate {
|
|
|
278
278
|
disableActions: false,
|
|
279
279
|
duration: durationMs / 1000.0
|
|
280
280
|
) {
|
|
281
|
-
mapView?.animate(to: camera)
|
|
281
|
+
self.mapView?.animate(to: camera)
|
|
282
282
|
}
|
|
283
283
|
} else {
|
|
284
284
|
let update = GMSCameraUpdate.setCamera(camera)
|
|
@@ -318,7 +318,7 @@ GMSIndoorDisplayDelegate {
|
|
|
318
318
|
disableActions: false,
|
|
319
319
|
duration: durationMs / 1000.0
|
|
320
320
|
) {
|
|
321
|
-
mapView?.animate(with: update)
|
|
321
|
+
self.mapView?.animate(with: update)
|
|
322
322
|
}
|
|
323
323
|
} else {
|
|
324
324
|
mapView?.moveCamera(update)
|
package/ios/MapHelper.swift
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import QuartzCore
|
|
2
2
|
|
|
3
|
-
@inline(__always)
|
|
3
|
+
@MainActor @inline(__always)
|
|
4
4
|
func withCATransaction(
|
|
5
5
|
disableActions: Bool = true,
|
|
6
6
|
duration: CFTimeInterval? = nil,
|
|
7
7
|
timingFunction: CAMediaTimingFunction? = nil,
|
|
8
8
|
completion: (() -> Void)? = nil,
|
|
9
|
-
_ body: () -> Void
|
|
9
|
+
_ body: @escaping @MainActor () -> Void
|
|
10
10
|
) {
|
|
11
|
-
|
|
11
|
+
onMain {
|
|
12
|
+
CATransaction.begin()
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
CATransaction.setDisableActions(disableActions)
|
|
15
|
+
duration.map { CATransaction.setAnimationDuration($0) }
|
|
16
|
+
timingFunction.map { CATransaction.setAnimationTimingFunction($0) }
|
|
17
|
+
completion.map { CATransaction.setCompletionBlock($0) }
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
body()
|
|
20
|
+
CATransaction.commit()
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
@MainActor @inline(__always)
|
|
@@ -132,19 +132,19 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
|
|
|
132
132
|
withCATransaction(disableActions: true) {
|
|
133
133
|
|
|
134
134
|
removed.forEach {
|
|
135
|
-
impl.removeMarker(id: $0)
|
|
136
|
-
markerBuilder.cancelIconTask($0)
|
|
135
|
+
self.impl.removeMarker(id: $0)
|
|
136
|
+
self.markerBuilder.cancelIconTask($0)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
for (id, next) in nextById {
|
|
140
140
|
if let prev = prevById[id] {
|
|
141
141
|
if !prev.markerEquals(next) {
|
|
142
|
-
impl.updateMarker(id: id) { m in
|
|
142
|
+
self.impl.updateMarker(id: id) { m in
|
|
143
143
|
self.markerBuilder.update(prev, next, m)
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
} else {
|
|
147
|
-
markerBuilder.buildIconAsync(next.id, next) { icon in
|
|
147
|
+
self.markerBuilder.buildIconAsync(next.id, next) { icon in
|
|
148
148
|
let marker = self.markerBuilder.build(next, icon: icon)
|
|
149
149
|
self.impl.addMarker(id: id, marker: marker)
|
|
150
150
|
}
|
package/package.json
CHANGED