react-native-google-maps-plus 1.7.0-dev.9 → 1.8.0
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.
- package/android/build.gradle +1 -1
- package/android/gradle.properties +2 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +120 -124
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +2 -3
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +83 -53
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +6 -23
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +12 -39
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +30 -12
- package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +35 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +31 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineCapTypeExtension.kt +14 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineJoinTypeExtension.kt +12 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapCircleExtension.kt +7 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +54 -17
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +31 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +6 -1
- package/ios/GoogleMapViewImpl.swift +81 -64
- package/ios/MapCircleBuilder.swift +2 -3
- package/ios/MapMarkerBuilder.swift +106 -50
- package/ios/MapPolygonBuilder.swift +6 -41
- package/ios/MapPolylineBuilder.swift +2 -10
- package/ios/RNGoogleMapsPlusView.swift +24 -11
- package/ios/extensions/MapObjectTag+Extension.swift +93 -0
- package/ios/extensions/RNCircle+Extension.swift +14 -5
- package/ios/extensions/RNLatLng+Extension.swift +11 -0
- package/ios/extensions/RNLineCapType+Extension.swift +10 -0
- package/ios/extensions/RNLineJoinType+Extension.swift +11 -0
- package/ios/extensions/RNMarker+Extension.swift +43 -12
- package/ios/extensions/RNPolygon+Extension.swift.swift +50 -21
- package/ios/extensions/RNPolyline+Extension.swift.swift +15 -26
- package/ios/extensions/UIImage+Extension.swift +45 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +12 -10
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +2 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +100 -92
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +7 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string_.kt → Func_void_std__string.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string__RNLatLng.kt → Func_void_std__string_RNLatLng.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +38 -30
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -6
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +58 -36
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +32 -20
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +47 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +12 -10
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +142 -180
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +31 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +24 -31
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +6 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -6
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +20 -20
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +10 -10
- package/package.json +1 -1
- package/src/RNGoogleMapsPlusView.nitro.ts +14 -10
- package/src/types.ts +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +0 -76
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +0 -78
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_std__string_RNLatLng.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -15,25 +15,25 @@ import dalvik.annotation.optimization.FastNative
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Represents the JavaScript callback `(id:
|
|
18
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
19
19
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
20
20
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
21
21
|
*/
|
|
22
22
|
@DoNotStrip
|
|
23
23
|
@Keep
|
|
24
24
|
@Suppress("ClassName", "RedundantUnitReturnType")
|
|
25
|
-
fun interface
|
|
25
|
+
fun interface Func_void_std__string_RNLatLng: (String, RNLatLng) -> Unit {
|
|
26
26
|
/**
|
|
27
27
|
* Call the given JS callback.
|
|
28
28
|
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
|
29
29
|
*/
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
override fun invoke(id: String
|
|
32
|
+
override fun invoke(id: String, location: RNLatLng): Unit
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Represents the JavaScript callback `(id:
|
|
36
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
37
37
|
* This is implemented in C++, via a `std::function<...>`.
|
|
38
38
|
* The callback might be coming from JS.
|
|
39
39
|
*/
|
|
@@ -44,7 +44,7 @@ fun interface Func_void_std__optional_std__string__RNLatLng: (String?, RNLatLng)
|
|
|
44
44
|
"RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
|
|
45
45
|
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
|
46
46
|
)
|
|
47
|
-
class
|
|
47
|
+
class Func_void_std__string_RNLatLng_cxx: Func_void_std__string_RNLatLng {
|
|
48
48
|
@DoNotStrip
|
|
49
49
|
@Keep
|
|
50
50
|
private val mHybridData: HybridData
|
|
@@ -57,25 +57,25 @@ class Func_void_std__optional_std__string__RNLatLng_cxx: Func_void_std__optional
|
|
|
57
57
|
|
|
58
58
|
@DoNotStrip
|
|
59
59
|
@Keep
|
|
60
|
-
override fun invoke(id: String
|
|
60
|
+
override fun invoke(id: String, location: RNLatLng): Unit
|
|
61
61
|
= invoke_cxx(id,location)
|
|
62
62
|
|
|
63
63
|
@FastNative
|
|
64
|
-
private external fun invoke_cxx(id: String
|
|
64
|
+
private external fun invoke_cxx(id: String, location: RNLatLng): Unit
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Represents the JavaScript callback `(id:
|
|
69
|
-
* This is implemented in Java/Kotlin, via a `(String
|
|
68
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
69
|
+
* This is implemented in Java/Kotlin, via a `(String, RNLatLng) -> Unit`.
|
|
70
70
|
* The callback is always coming from native.
|
|
71
71
|
*/
|
|
72
72
|
@DoNotStrip
|
|
73
73
|
@Keep
|
|
74
74
|
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
|
75
|
-
class
|
|
75
|
+
class Func_void_std__string_RNLatLng_java(private val function: (String, RNLatLng) -> Unit): Func_void_std__string_RNLatLng {
|
|
76
76
|
@DoNotStrip
|
|
77
77
|
@Keep
|
|
78
|
-
override fun invoke(id: String
|
|
78
|
+
override fun invoke(id: String, location: RNLatLng): Unit {
|
|
79
79
|
return this.function(id, location)
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -264,13 +264,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
264
264
|
onPoiPress = value?.let { it }
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
abstract var onMarkerPress: ((id: String
|
|
267
|
+
abstract var onMarkerPress: ((id: String) -> Unit)?
|
|
268
268
|
|
|
269
|
-
private var onMarkerPress_cxx:
|
|
269
|
+
private var onMarkerPress_cxx: Func_void_std__string?
|
|
270
270
|
@Keep
|
|
271
271
|
@DoNotStrip
|
|
272
272
|
get() {
|
|
273
|
-
return onMarkerPress?.let {
|
|
273
|
+
return onMarkerPress?.let { Func_void_std__string_java(it) }
|
|
274
274
|
}
|
|
275
275
|
@Keep
|
|
276
276
|
@DoNotStrip
|
|
@@ -278,13 +278,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
278
278
|
onMarkerPress = value?.let { it }
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
abstract var onPolylinePress: ((id: String
|
|
281
|
+
abstract var onPolylinePress: ((id: String) -> Unit)?
|
|
282
282
|
|
|
283
|
-
private var onPolylinePress_cxx:
|
|
283
|
+
private var onPolylinePress_cxx: Func_void_std__string?
|
|
284
284
|
@Keep
|
|
285
285
|
@DoNotStrip
|
|
286
286
|
get() {
|
|
287
|
-
return onPolylinePress?.let {
|
|
287
|
+
return onPolylinePress?.let { Func_void_std__string_java(it) }
|
|
288
288
|
}
|
|
289
289
|
@Keep
|
|
290
290
|
@DoNotStrip
|
|
@@ -292,13 +292,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
292
292
|
onPolylinePress = value?.let { it }
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
abstract var onPolygonPress: ((id: String
|
|
295
|
+
abstract var onPolygonPress: ((id: String) -> Unit)?
|
|
296
296
|
|
|
297
|
-
private var onPolygonPress_cxx:
|
|
297
|
+
private var onPolygonPress_cxx: Func_void_std__string?
|
|
298
298
|
@Keep
|
|
299
299
|
@DoNotStrip
|
|
300
300
|
get() {
|
|
301
|
-
return onPolygonPress?.let {
|
|
301
|
+
return onPolygonPress?.let { Func_void_std__string_java(it) }
|
|
302
302
|
}
|
|
303
303
|
@Keep
|
|
304
304
|
@DoNotStrip
|
|
@@ -306,13 +306,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
306
306
|
onPolygonPress = value?.let { it }
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
abstract var onCirclePress: ((id: String
|
|
309
|
+
abstract var onCirclePress: ((id: String) -> Unit)?
|
|
310
310
|
|
|
311
|
-
private var onCirclePress_cxx:
|
|
311
|
+
private var onCirclePress_cxx: Func_void_std__string?
|
|
312
312
|
@Keep
|
|
313
313
|
@DoNotStrip
|
|
314
314
|
get() {
|
|
315
|
-
return onCirclePress?.let {
|
|
315
|
+
return onCirclePress?.let { Func_void_std__string_java(it) }
|
|
316
316
|
}
|
|
317
317
|
@Keep
|
|
318
318
|
@DoNotStrip
|
|
@@ -320,13 +320,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
320
320
|
onCirclePress = value?.let { it }
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
abstract var onMarkerDragStart: ((id: String
|
|
323
|
+
abstract var onMarkerDragStart: ((id: String, location: RNLatLng) -> Unit)?
|
|
324
324
|
|
|
325
|
-
private var onMarkerDragStart_cxx:
|
|
325
|
+
private var onMarkerDragStart_cxx: Func_void_std__string_RNLatLng?
|
|
326
326
|
@Keep
|
|
327
327
|
@DoNotStrip
|
|
328
328
|
get() {
|
|
329
|
-
return onMarkerDragStart?.let {
|
|
329
|
+
return onMarkerDragStart?.let { Func_void_std__string_RNLatLng_java(it) }
|
|
330
330
|
}
|
|
331
331
|
@Keep
|
|
332
332
|
@DoNotStrip
|
|
@@ -334,13 +334,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
334
334
|
onMarkerDragStart = value?.let { it }
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
abstract var onMarkerDrag: ((id: String
|
|
337
|
+
abstract var onMarkerDrag: ((id: String, location: RNLatLng) -> Unit)?
|
|
338
338
|
|
|
339
|
-
private var onMarkerDrag_cxx:
|
|
339
|
+
private var onMarkerDrag_cxx: Func_void_std__string_RNLatLng?
|
|
340
340
|
@Keep
|
|
341
341
|
@DoNotStrip
|
|
342
342
|
get() {
|
|
343
|
-
return onMarkerDrag?.let {
|
|
343
|
+
return onMarkerDrag?.let { Func_void_std__string_RNLatLng_java(it) }
|
|
344
344
|
}
|
|
345
345
|
@Keep
|
|
346
346
|
@DoNotStrip
|
|
@@ -348,13 +348,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
348
348
|
onMarkerDrag = value?.let { it }
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
abstract var onMarkerDragEnd: ((id: String
|
|
351
|
+
abstract var onMarkerDragEnd: ((id: String, location: RNLatLng) -> Unit)?
|
|
352
352
|
|
|
353
|
-
private var onMarkerDragEnd_cxx:
|
|
353
|
+
private var onMarkerDragEnd_cxx: Func_void_std__string_RNLatLng?
|
|
354
354
|
@Keep
|
|
355
355
|
@DoNotStrip
|
|
356
356
|
get() {
|
|
357
|
-
return onMarkerDragEnd?.let {
|
|
357
|
+
return onMarkerDragEnd?.let { Func_void_std__string_RNLatLng_java(it) }
|
|
358
358
|
}
|
|
359
359
|
@Keep
|
|
360
360
|
@DoNotStrip
|
|
@@ -390,13 +390,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
390
390
|
onIndoorLevelActivated = value?.let { it }
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
abstract var onInfoWindowPress: ((id: String
|
|
393
|
+
abstract var onInfoWindowPress: ((id: String) -> Unit)?
|
|
394
394
|
|
|
395
|
-
private var onInfoWindowPress_cxx:
|
|
395
|
+
private var onInfoWindowPress_cxx: Func_void_std__string?
|
|
396
396
|
@Keep
|
|
397
397
|
@DoNotStrip
|
|
398
398
|
get() {
|
|
399
|
-
return onInfoWindowPress?.let {
|
|
399
|
+
return onInfoWindowPress?.let { Func_void_std__string_java(it) }
|
|
400
400
|
}
|
|
401
401
|
@Keep
|
|
402
402
|
@DoNotStrip
|
|
@@ -404,13 +404,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
404
404
|
onInfoWindowPress = value?.let { it }
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
abstract var onInfoWindowClose: ((id: String
|
|
407
|
+
abstract var onInfoWindowClose: ((id: String) -> Unit)?
|
|
408
408
|
|
|
409
|
-
private var onInfoWindowClose_cxx:
|
|
409
|
+
private var onInfoWindowClose_cxx: Func_void_std__string?
|
|
410
410
|
@Keep
|
|
411
411
|
@DoNotStrip
|
|
412
412
|
get() {
|
|
413
|
-
return onInfoWindowClose?.let {
|
|
413
|
+
return onInfoWindowClose?.let { Func_void_std__string_java(it) }
|
|
414
414
|
}
|
|
415
415
|
@Keep
|
|
416
416
|
@DoNotStrip
|
|
@@ -418,13 +418,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
418
418
|
onInfoWindowClose = value?.let { it }
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
abstract var onInfoWindowLongPress: ((id: String
|
|
421
|
+
abstract var onInfoWindowLongPress: ((id: String) -> Unit)?
|
|
422
422
|
|
|
423
|
-
private var onInfoWindowLongPress_cxx:
|
|
423
|
+
private var onInfoWindowLongPress_cxx: Func_void_std__string?
|
|
424
424
|
@Keep
|
|
425
425
|
@DoNotStrip
|
|
426
426
|
get() {
|
|
427
|
-
return onInfoWindowLongPress?.let {
|
|
427
|
+
return onInfoWindowLongPress?.let { Func_void_std__string_java(it) }
|
|
428
428
|
}
|
|
429
429
|
@Keep
|
|
430
430
|
@DoNotStrip
|
|
@@ -503,6 +503,14 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
// Methods
|
|
506
|
+
@DoNotStrip
|
|
507
|
+
@Keep
|
|
508
|
+
abstract fun showMarkerInfoWindow(id: String): Unit
|
|
509
|
+
|
|
510
|
+
@DoNotStrip
|
|
511
|
+
@Keep
|
|
512
|
+
abstract fun hideMarkerInfoWindow(id: String): Unit
|
|
513
|
+
|
|
506
514
|
@DoNotStrip
|
|
507
515
|
@Keep
|
|
508
516
|
abstract fun setCamera(camera: RNCamera, animated: Boolean?, durationMs: Double?): Unit
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt
CHANGED
|
@@ -26,7 +26,10 @@ data class RNInitialProps(
|
|
|
26
26
|
val liteMode: Boolean?,
|
|
27
27
|
@DoNotStrip
|
|
28
28
|
@Keep
|
|
29
|
-
val camera: RNCamera
|
|
29
|
+
val camera: RNCamera?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val backgroundColor: String?
|
|
30
33
|
) {
|
|
31
34
|
private companion object {
|
|
32
35
|
/**
|
|
@@ -36,8 +39,8 @@ data class RNInitialProps(
|
|
|
36
39
|
@Keep
|
|
37
40
|
@Suppress("unused")
|
|
38
41
|
@JvmStatic
|
|
39
|
-
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera: RNCamera?): RNInitialProps {
|
|
40
|
-
return RNInitialProps(mapId, liteMode, camera)
|
|
42
|
+
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera: RNCamera?, backgroundColor: String?): RNInitialProps {
|
|
43
|
+
return RNInitialProps(mapId, liteMode, camera, backgroundColor)
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
}
|
|
@@ -32,9 +32,6 @@ data class RNMarker(
|
|
|
32
32
|
val anchor: RNPosition?,
|
|
33
33
|
@DoNotStrip
|
|
34
34
|
@Keep
|
|
35
|
-
val showInfoWindow: Boolean?,
|
|
36
|
-
@DoNotStrip
|
|
37
|
-
@Keep
|
|
38
35
|
val title: String?,
|
|
39
36
|
@DoNotStrip
|
|
40
37
|
@Keep
|
|
@@ -56,7 +53,10 @@ data class RNMarker(
|
|
|
56
53
|
val infoWindowAnchor: RNPosition?,
|
|
57
54
|
@DoNotStrip
|
|
58
55
|
@Keep
|
|
59
|
-
val iconSvg: RNMarkerSvg
|
|
56
|
+
val iconSvg: RNMarkerSvg?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
59
|
+
val infoWindowIconSvg: RNMarkerSvg?
|
|
60
60
|
) {
|
|
61
61
|
private companion object {
|
|
62
62
|
/**
|
|
@@ -66,8 +66,8 @@ data class RNMarker(
|
|
|
66
66
|
@Keep
|
|
67
67
|
@Suppress("unused")
|
|
68
68
|
@JvmStatic
|
|
69
|
-
private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?,
|
|
70
|
-
return RNMarker(id, zIndex, coordinate, anchor,
|
|
69
|
+
private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, title: String?, snippet: String?, opacity: Double?, flat: Boolean?, draggable: Boolean?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?, infoWindowIconSvg: RNMarkerSvg?): RNMarker {
|
|
70
|
+
return RNMarker(id, zIndex, coordinate, anchor, title, snippet, opacity, flat, draggable, rotation, infoWindowAnchor, iconSvg, infoWindowIconSvg)
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -102,18 +102,18 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
// pragma MARK: std::function<void(const std::
|
|
106
|
-
|
|
107
|
-
auto swiftClosure = RNGoogleMapsPlus::
|
|
108
|
-
return [swiftClosure = std::move(swiftClosure)](const std::
|
|
105
|
+
// pragma MARK: std::function<void(const std::string& /* id */)>
|
|
106
|
+
Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
107
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
|
|
108
|
+
return [swiftClosure = std::move(swiftClosure)](const std::string& id) mutable -> void {
|
|
109
109
|
swiftClosure.call(id);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// pragma MARK: std::function<void(const std::
|
|
114
|
-
|
|
115
|
-
auto swiftClosure = RNGoogleMapsPlus::
|
|
116
|
-
return [swiftClosure = std::move(swiftClosure)](const std::
|
|
113
|
+
// pragma MARK: std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>
|
|
114
|
+
Func_void_std__string_RNLatLng create_Func_void_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
115
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_std__string_RNLatLng::fromUnsafe(swiftClosureWrapper);
|
|
116
|
+
return [swiftClosure = std::move(swiftClosure)](const std::string& id, const RNLatLng& location) mutable -> void {
|
|
117
117
|
swiftClosure.call(id, location);
|
|
118
118
|
};
|
|
119
119
|
}
|
|
@@ -142,6 +142,14 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
// pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
|
|
146
|
+
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
147
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
|
|
148
|
+
return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& result) mutable -> void {
|
|
149
|
+
swiftClosure.call(result);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
145
153
|
// pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
146
154
|
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
147
155
|
RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
@@ -1141,77 +1141,77 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1141
1141
|
return *optional;
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
|
-
// pragma MARK: std::function<void(const std::
|
|
1144
|
+
// pragma MARK: std::function<void(const std::string& /* id */)>
|
|
1145
1145
|
/**
|
|
1146
|
-
* Specialized version of `std::function<void(const std::
|
|
1146
|
+
* Specialized version of `std::function<void(const std::string&)>`.
|
|
1147
1147
|
*/
|
|
1148
|
-
using
|
|
1148
|
+
using Func_void_std__string = std::function<void(const std::string& /* id */)>;
|
|
1149
1149
|
/**
|
|
1150
|
-
* Wrapper class for a `std::function<void(const std::
|
|
1150
|
+
* Wrapper class for a `std::function<void(const std::string& / * id * /)>`, this can be used from Swift.
|
|
1151
1151
|
*/
|
|
1152
|
-
class
|
|
1152
|
+
class Func_void_std__string_Wrapper final {
|
|
1153
1153
|
public:
|
|
1154
|
-
explicit
|
|
1155
|
-
inline void call(std::
|
|
1154
|
+
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* id */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */)>>(std::move(func))) {}
|
|
1155
|
+
inline void call(std::string id) const noexcept {
|
|
1156
1156
|
_function->operator()(id);
|
|
1157
1157
|
}
|
|
1158
1158
|
private:
|
|
1159
|
-
std::unique_ptr<std::function<void(const std::
|
|
1159
|
+
std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
|
|
1160
1160
|
} SWIFT_NONCOPYABLE;
|
|
1161
|
-
|
|
1162
|
-
inline
|
|
1163
|
-
return
|
|
1161
|
+
Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1162
|
+
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
|
|
1163
|
+
return Func_void_std__string_Wrapper(std::move(value));
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
|
-
// pragma MARK: std::optional<std::function<void(const std::
|
|
1166
|
+
// pragma MARK: std::optional<std::function<void(const std::string& /* id */)>>
|
|
1167
1167
|
/**
|
|
1168
|
-
* Specialized version of `std::optional<std::function<void(const std::
|
|
1168
|
+
* Specialized version of `std::optional<std::function<void(const std::string& / * id * /)>>`.
|
|
1169
1169
|
*/
|
|
1170
|
-
using
|
|
1171
|
-
inline std::optional<std::function<void(const std::
|
|
1172
|
-
return std::optional<std::function<void(const std::
|
|
1170
|
+
using std__optional_std__function_void_const_std__string_____id______ = std::optional<std::function<void(const std::string& /* id */)>>;
|
|
1171
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> create_std__optional_std__function_void_const_std__string_____id______(const std::function<void(const std::string& /* id */)>& value) noexcept {
|
|
1172
|
+
return std::optional<std::function<void(const std::string& /* id */)>>(value);
|
|
1173
1173
|
}
|
|
1174
|
-
inline bool
|
|
1174
|
+
inline bool has_value_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
|
|
1175
1175
|
return optional.has_value();
|
|
1176
1176
|
}
|
|
1177
|
-
inline std::function<void(const std::
|
|
1177
|
+
inline std::function<void(const std::string& /* id */)> get_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
|
|
1178
1178
|
return *optional;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
// pragma MARK: std::function<void(const std::
|
|
1181
|
+
// pragma MARK: std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>
|
|
1182
1182
|
/**
|
|
1183
|
-
* Specialized version of `std::function<void(const std::
|
|
1183
|
+
* Specialized version of `std::function<void(const std::string&, const RNLatLng&)>`.
|
|
1184
1184
|
*/
|
|
1185
|
-
using
|
|
1185
|
+
using Func_void_std__string_RNLatLng = std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>;
|
|
1186
1186
|
/**
|
|
1187
|
-
* Wrapper class for a `std::function<void(const std::
|
|
1187
|
+
* Wrapper class for a `std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>`, this can be used from Swift.
|
|
1188
1188
|
*/
|
|
1189
|
-
class
|
|
1189
|
+
class Func_void_std__string_RNLatLng_Wrapper final {
|
|
1190
1190
|
public:
|
|
1191
|
-
explicit
|
|
1192
|
-
inline void call(std::
|
|
1191
|
+
explicit Func_void_std__string_RNLatLng_Wrapper(std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(std::move(func))) {}
|
|
1192
|
+
inline void call(std::string id, RNLatLng location) const noexcept {
|
|
1193
1193
|
_function->operator()(id, location);
|
|
1194
1194
|
}
|
|
1195
1195
|
private:
|
|
1196
|
-
std::unique_ptr<std::function<void(const std::
|
|
1196
|
+
std::unique_ptr<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> _function;
|
|
1197
1197
|
} SWIFT_NONCOPYABLE;
|
|
1198
|
-
|
|
1199
|
-
inline
|
|
1200
|
-
return
|
|
1198
|
+
Func_void_std__string_RNLatLng create_Func_void_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1199
|
+
inline Func_void_std__string_RNLatLng_Wrapper wrap_Func_void_std__string_RNLatLng(Func_void_std__string_RNLatLng value) noexcept {
|
|
1200
|
+
return Func_void_std__string_RNLatLng_Wrapper(std::move(value));
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
|
-
// pragma MARK: std::optional<std::function<void(const std::
|
|
1203
|
+
// pragma MARK: std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>
|
|
1204
1204
|
/**
|
|
1205
|
-
* Specialized version of `std::optional<std::function<void(const std::
|
|
1205
|
+
* Specialized version of `std::optional<std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>>`.
|
|
1206
1206
|
*/
|
|
1207
|
-
using
|
|
1208
|
-
inline std::optional<std::function<void(const std::
|
|
1209
|
-
return std::optional<std::function<void(const std::
|
|
1207
|
+
using std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ = std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>;
|
|
1208
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>& value) noexcept {
|
|
1209
|
+
return std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(value);
|
|
1210
1210
|
}
|
|
1211
|
-
inline bool
|
|
1211
|
+
inline bool has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
|
|
1212
1212
|
return optional.has_value();
|
|
1213
1213
|
}
|
|
1214
|
-
inline std::function<void(const std::
|
|
1214
|
+
inline std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
|
|
1215
1215
|
return *optional;
|
|
1216
1216
|
}
|
|
1217
1217
|
|
|
@@ -1379,6 +1379,28 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1379
1379
|
return PromiseHolder<std::optional<std::string>>(std::move(promise));
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
|
+
// pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
|
|
1383
|
+
/**
|
|
1384
|
+
* Specialized version of `std::function<void(const std::optional<std::string>&)>`.
|
|
1385
|
+
*/
|
|
1386
|
+
using Func_void_std__optional_std__string_ = std::function<void(const std::optional<std::string>& /* result */)>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Wrapper class for a `std::function<void(const std::optional<std::string>& / * result * /)>`, this can be used from Swift.
|
|
1389
|
+
*/
|
|
1390
|
+
class Func_void_std__optional_std__string__Wrapper final {
|
|
1391
|
+
public:
|
|
1392
|
+
explicit Func_void_std__optional_std__string__Wrapper(std::function<void(const std::optional<std::string>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* result */)>>(std::move(func))) {}
|
|
1393
|
+
inline void call(std::optional<std::string> result) const noexcept {
|
|
1394
|
+
_function->operator()(result);
|
|
1395
|
+
}
|
|
1396
|
+
private:
|
|
1397
|
+
std::unique_ptr<std::function<void(const std::optional<std::string>& /* result */)>> _function;
|
|
1398
|
+
} SWIFT_NONCOPYABLE;
|
|
1399
|
+
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1400
|
+
inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
|
|
1401
|
+
return Func_void_std__optional_std__string__Wrapper(std::move(value));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1382
1404
|
// pragma MARK: std::optional<RNSize>
|
|
1383
1405
|
/**
|
|
1384
1406
|
* Specialized version of `std::optional<RNSize>`.
|
|
@@ -374,53 +374,53 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
374
374
|
inline void setOnPoiPress(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& onPoiPress) noexcept override {
|
|
375
375
|
_swiftPart.setOnPoiPress(onPoiPress);
|
|
376
376
|
}
|
|
377
|
-
inline std::optional<std::function<void(const std::
|
|
377
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() noexcept override {
|
|
378
378
|
auto __result = _swiftPart.getOnMarkerPress();
|
|
379
379
|
return __result;
|
|
380
380
|
}
|
|
381
|
-
inline void setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
381
|
+
inline void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) noexcept override {
|
|
382
382
|
_swiftPart.setOnMarkerPress(onMarkerPress);
|
|
383
383
|
}
|
|
384
|
-
inline std::optional<std::function<void(const std::
|
|
384
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() noexcept override {
|
|
385
385
|
auto __result = _swiftPart.getOnPolylinePress();
|
|
386
386
|
return __result;
|
|
387
387
|
}
|
|
388
|
-
inline void setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
388
|
+
inline void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) noexcept override {
|
|
389
389
|
_swiftPart.setOnPolylinePress(onPolylinePress);
|
|
390
390
|
}
|
|
391
|
-
inline std::optional<std::function<void(const std::
|
|
391
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() noexcept override {
|
|
392
392
|
auto __result = _swiftPart.getOnPolygonPress();
|
|
393
393
|
return __result;
|
|
394
394
|
}
|
|
395
|
-
inline void setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
395
|
+
inline void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) noexcept override {
|
|
396
396
|
_swiftPart.setOnPolygonPress(onPolygonPress);
|
|
397
397
|
}
|
|
398
|
-
inline std::optional<std::function<void(const std::
|
|
398
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() noexcept override {
|
|
399
399
|
auto __result = _swiftPart.getOnCirclePress();
|
|
400
400
|
return __result;
|
|
401
401
|
}
|
|
402
|
-
inline void setOnCirclePress(const std::optional<std::function<void(const std::
|
|
402
|
+
inline void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) noexcept override {
|
|
403
403
|
_swiftPart.setOnCirclePress(onCirclePress);
|
|
404
404
|
}
|
|
405
|
-
inline std::optional<std::function<void(const std::
|
|
405
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() noexcept override {
|
|
406
406
|
auto __result = _swiftPart.getOnMarkerDragStart();
|
|
407
407
|
return __result;
|
|
408
408
|
}
|
|
409
|
-
inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
409
|
+
inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) noexcept override {
|
|
410
410
|
_swiftPart.setOnMarkerDragStart(onMarkerDragStart);
|
|
411
411
|
}
|
|
412
|
-
inline std::optional<std::function<void(const std::
|
|
412
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() noexcept override {
|
|
413
413
|
auto __result = _swiftPart.getOnMarkerDrag();
|
|
414
414
|
return __result;
|
|
415
415
|
}
|
|
416
|
-
inline void setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
416
|
+
inline void setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) noexcept override {
|
|
417
417
|
_swiftPart.setOnMarkerDrag(onMarkerDrag);
|
|
418
418
|
}
|
|
419
|
-
inline std::optional<std::function<void(const std::
|
|
419
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() noexcept override {
|
|
420
420
|
auto __result = _swiftPart.getOnMarkerDragEnd();
|
|
421
421
|
return __result;
|
|
422
422
|
}
|
|
423
|
-
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
423
|
+
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
|
|
424
424
|
_swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
|
|
425
425
|
}
|
|
426
426
|
inline std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() noexcept override {
|
|
@@ -437,25 +437,25 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
437
437
|
inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) noexcept override {
|
|
438
438
|
_swiftPart.setOnIndoorLevelActivated(onIndoorLevelActivated);
|
|
439
439
|
}
|
|
440
|
-
inline std::optional<std::function<void(const std::
|
|
440
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() noexcept override {
|
|
441
441
|
auto __result = _swiftPart.getOnInfoWindowPress();
|
|
442
442
|
return __result;
|
|
443
443
|
}
|
|
444
|
-
inline void setOnInfoWindowPress(const std::optional<std::function<void(const std::
|
|
444
|
+
inline void setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) noexcept override {
|
|
445
445
|
_swiftPart.setOnInfoWindowPress(onInfoWindowPress);
|
|
446
446
|
}
|
|
447
|
-
inline std::optional<std::function<void(const std::
|
|
447
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowClose() noexcept override {
|
|
448
448
|
auto __result = _swiftPart.getOnInfoWindowClose();
|
|
449
449
|
return __result;
|
|
450
450
|
}
|
|
451
|
-
inline void setOnInfoWindowClose(const std::optional<std::function<void(const std::
|
|
451
|
+
inline void setOnInfoWindowClose(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowClose) noexcept override {
|
|
452
452
|
_swiftPart.setOnInfoWindowClose(onInfoWindowClose);
|
|
453
453
|
}
|
|
454
|
-
inline std::optional<std::function<void(const std::
|
|
454
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowLongPress() noexcept override {
|
|
455
455
|
auto __result = _swiftPart.getOnInfoWindowLongPress();
|
|
456
456
|
return __result;
|
|
457
457
|
}
|
|
458
|
-
inline void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::
|
|
458
|
+
inline void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowLongPress) noexcept override {
|
|
459
459
|
_swiftPart.setOnInfoWindowLongPress(onInfoWindowLongPress);
|
|
460
460
|
}
|
|
461
461
|
inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnMyLocationPress() noexcept override {
|
|
@@ -496,6 +496,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
496
496
|
|
|
497
497
|
public:
|
|
498
498
|
// Methods
|
|
499
|
+
inline void showMarkerInfoWindow(const std::string& id) override {
|
|
500
|
+
auto __result = _swiftPart.showMarkerInfoWindow(id);
|
|
501
|
+
if (__result.hasError()) [[unlikely]] {
|
|
502
|
+
std::rethrow_exception(__result.error());
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
inline void hideMarkerInfoWindow(const std::string& id) override {
|
|
506
|
+
auto __result = _swiftPart.hideMarkerInfoWindow(id);
|
|
507
|
+
if (__result.hasError()) [[unlikely]] {
|
|
508
|
+
std::rethrow_exception(__result.error());
|
|
509
|
+
}
|
|
510
|
+
}
|
|
499
511
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
500
512
|
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
|
|
501
513
|
if (__result.hasError()) [[unlikely]] {
|