react-native-google-maps-plus 1.2.0-dev.1 → 1.3.0-dev.1

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.
Files changed (41) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +36 -8
  2. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +13 -3
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +19 -4
  4. package/ios/GoogleMapViewImpl.swift +33 -12
  5. package/ios/MapMarkerBuilder.swift +17 -8
  6. package/ios/RNGoogleMapsPlusView.swift +13 -4
  7. package/lib/module/types.js.map +1 -1
  8. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +7 -4
  9. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  10. package/lib/typescript/src/types.d.ts +6 -0
  11. package/lib/typescript/src/types.d.ts.map +1 -1
  12. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -2
  13. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +76 -0
  14. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +78 -0
  15. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +95 -37
  16. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +14 -8
  17. package/nitrogen/generated/android/c++/JRNMarker.hpp +24 -0
  18. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +12 -0
  19. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__string.kt → Func_void_std__optional_std__string_.kt} +12 -12
  20. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__optional_std__string__RNLatLng.kt +81 -0
  21. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +54 -12
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +18 -0
  23. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +12 -4
  24. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +55 -18
  25. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +29 -8
  26. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +15 -0
  27. package/nitrogen/generated/ios/swift/{Func_void_std__string.swift → Func_void_std__optional_std__string_.swift} +18 -11
  28. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +54 -0
  29. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +7 -4
  30. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +186 -48
  31. package/nitrogen/generated/ios/swift/RNMarker.swift +153 -1
  32. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +6 -0
  33. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +14 -8
  34. package/nitrogen/generated/shared/c++/RNMarker.hpp +25 -1
  35. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +44 -8
  36. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +7 -4
  37. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +3 -0
  38. package/package.json +1 -1
  39. package/src/RNGoogleMapsPlusView.nitro.ts +7 -4
  40. package/src/types.ts +6 -0
  41. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +0 -75
@@ -959,40 +959,77 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
959
959
  return *optional;
960
960
  }
961
961
 
962
- // pragma MARK: std::function<void(const std::string& /* id */)>
962
+ // pragma MARK: std::function<void(const std::optional<std::string>& /* id */)>
963
963
  /**
964
- * Specialized version of `std::function<void(const std::string&)>`.
964
+ * Specialized version of `std::function<void(const std::optional<std::string>&)>`.
965
965
  */
966
- using Func_void_std__string = std::function<void(const std::string& /* id */)>;
966
+ using Func_void_std__optional_std__string_ = std::function<void(const std::optional<std::string>& /* id */)>;
967
967
  /**
968
- * Wrapper class for a `std::function<void(const std::string& / * id * /)>`, this can be used from Swift.
968
+ * Wrapper class for a `std::function<void(const std::optional<std::string>& / * id * /)>`, this can be used from Swift.
969
969
  */
970
- class Func_void_std__string_Wrapper final {
970
+ class Func_void_std__optional_std__string__Wrapper final {
971
971
  public:
972
- 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))) {}
973
- inline void call(std::string id) const noexcept {
972
+ explicit Func_void_std__optional_std__string__Wrapper(std::function<void(const std::optional<std::string>& /* id */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* id */)>>(std::move(func))) {}
973
+ inline void call(std::optional<std::string> id) const noexcept {
974
974
  _function->operator()(id);
975
975
  }
976
976
  private:
977
- std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
977
+ std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */)>> _function;
978
978
  } SWIFT_NONCOPYABLE;
979
- Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) noexcept;
980
- inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
981
- return Func_void_std__string_Wrapper(std::move(value));
979
+ Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* _Nonnull swiftClosureWrapper) noexcept;
980
+ inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
981
+ return Func_void_std__optional_std__string__Wrapper(std::move(value));
982
982
  }
983
983
 
984
- // pragma MARK: std::optional<std::function<void(const std::string& /* id */)>>
984
+ // pragma MARK: std::optional<std::function<void(const std::optional<std::string>& /* id */)>>
985
985
  /**
986
- * Specialized version of `std::optional<std::function<void(const std::string& / * id * /)>>`.
986
+ * Specialized version of `std::optional<std::function<void(const std::optional<std::string>& / * id * /)>>`.
987
987
  */
988
- using std__optional_std__function_void_const_std__string_____id______ = std::optional<std::function<void(const std::string& /* id */)>>;
989
- 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 {
990
- return std::optional<std::function<void(const std::string& /* id */)>>(value);
988
+ using std__optional_std__function_void_const_std__optional_std__string______id______ = std::optional<std::function<void(const std::optional<std::string>& /* id */)>>;
989
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> create_std__optional_std__function_void_const_std__optional_std__string______id______(const std::function<void(const std::optional<std::string>& /* id */)>& value) noexcept {
990
+ return std::optional<std::function<void(const std::optional<std::string>& /* id */)>>(value);
991
991
  }
992
- 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 {
992
+ inline bool has_value_std__optional_std__function_void_const_std__optional_std__string______id______(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& optional) noexcept {
993
993
  return optional.has_value();
994
994
  }
995
- 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 {
995
+ inline std::function<void(const std::optional<std::string>& /* id */)> get_std__optional_std__function_void_const_std__optional_std__string______id______(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& optional) noexcept {
996
+ return *optional;
997
+ }
998
+
999
+ // pragma MARK: std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>
1000
+ /**
1001
+ * Specialized version of `std::function<void(const std::optional<std::string>&, const RNLatLng&)>`.
1002
+ */
1003
+ using Func_void_std__optional_std__string__RNLatLng = std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>;
1004
+ /**
1005
+ * Wrapper class for a `std::function<void(const std::optional<std::string>& / * id * /, const RNLatLng& / * location * /)>`, this can be used from Swift.
1006
+ */
1007
+ class Func_void_std__optional_std__string__RNLatLng_Wrapper final {
1008
+ public:
1009
+ explicit Func_void_std__optional_std__string__RNLatLng_Wrapper(std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>(std::move(func))) {}
1010
+ inline void call(std::optional<std::string> id, RNLatLng location) const noexcept {
1011
+ _function->operator()(id, location);
1012
+ }
1013
+ private:
1014
+ std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> _function;
1015
+ } SWIFT_NONCOPYABLE;
1016
+ Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept;
1017
+ inline Func_void_std__optional_std__string__RNLatLng_Wrapper wrap_Func_void_std__optional_std__string__RNLatLng(Func_void_std__optional_std__string__RNLatLng value) noexcept {
1018
+ return Func_void_std__optional_std__string__RNLatLng_Wrapper(std::move(value));
1019
+ }
1020
+
1021
+ // pragma MARK: std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>
1022
+ /**
1023
+ * Specialized version of `std::optional<std::function<void(const std::optional<std::string>& / * id * /, const RNLatLng& / * location * /)>>`.
1024
+ */
1025
+ using std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ = std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>;
1026
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> create_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>& value) noexcept {
1027
+ return std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>(value);
1028
+ }
1029
+ inline bool has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
1030
+ return optional.has_value();
1031
+ }
1032
+ inline std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)> get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
996
1033
  return *optional;
997
1034
  }
998
1035
 
@@ -313,34 +313,55 @@ namespace margelo::nitro::rngooglemapsplus {
313
313
  inline void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) noexcept override {
314
314
  _swiftPart.setOnMapPress(onMapPress);
315
315
  }
316
- inline std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() noexcept override {
316
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnMarkerPress() noexcept override {
317
317
  auto __result = _swiftPart.getOnMarkerPress();
318
318
  return __result;
319
319
  }
320
- inline void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) noexcept override {
320
+ inline void setOnMarkerPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onMarkerPress) noexcept override {
321
321
  _swiftPart.setOnMarkerPress(onMarkerPress);
322
322
  }
323
- inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() noexcept override {
323
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolylinePress() noexcept override {
324
324
  auto __result = _swiftPart.getOnPolylinePress();
325
325
  return __result;
326
326
  }
327
- inline void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) noexcept override {
327
+ inline void setOnPolylinePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolylinePress) noexcept override {
328
328
  _swiftPart.setOnPolylinePress(onPolylinePress);
329
329
  }
330
- inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() noexcept override {
330
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolygonPress() noexcept override {
331
331
  auto __result = _swiftPart.getOnPolygonPress();
332
332
  return __result;
333
333
  }
334
- inline void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) noexcept override {
334
+ inline void setOnPolygonPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolygonPress) noexcept override {
335
335
  _swiftPart.setOnPolygonPress(onPolygonPress);
336
336
  }
337
- inline std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() noexcept override {
337
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnCirclePress() noexcept override {
338
338
  auto __result = _swiftPart.getOnCirclePress();
339
339
  return __result;
340
340
  }
341
- inline void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) noexcept override {
341
+ inline void setOnCirclePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onCirclePress) noexcept override {
342
342
  _swiftPart.setOnCirclePress(onCirclePress);
343
343
  }
344
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() noexcept override {
345
+ auto __result = _swiftPart.getOnMarkerDragStart();
346
+ return __result;
347
+ }
348
+ inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) noexcept override {
349
+ _swiftPart.setOnMarkerDragStart(onMarkerDragStart);
350
+ }
351
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() noexcept override {
352
+ auto __result = _swiftPart.getOnMarkerDrag();
353
+ return __result;
354
+ }
355
+ inline void setOnMarkerDrag(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) noexcept override {
356
+ _swiftPart.setOnMarkerDrag(onMarkerDrag);
357
+ }
358
+ inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() noexcept override {
359
+ auto __result = _swiftPart.getOnMarkerDragEnd();
360
+ return __result;
361
+ }
362
+ inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
363
+ _swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
364
+ }
344
365
  inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
345
366
  auto __result = _swiftPart.getOnCameraChangeStart();
346
367
  return __result;
@@ -206,6 +206,21 @@ using namespace margelo::nitro::rngooglemapsplus::views;
206
206
  swiftPart.setOnCirclePress(newViewProps.onCirclePress.value);
207
207
  newViewProps.onCirclePress.isDirty = false;
208
208
  }
209
+ // onMarkerDragStart: optional
210
+ if (newViewProps.onMarkerDragStart.isDirty) {
211
+ swiftPart.setOnMarkerDragStart(newViewProps.onMarkerDragStart.value);
212
+ newViewProps.onMarkerDragStart.isDirty = false;
213
+ }
214
+ // onMarkerDrag: optional
215
+ if (newViewProps.onMarkerDrag.isDirty) {
216
+ swiftPart.setOnMarkerDrag(newViewProps.onMarkerDrag.value);
217
+ newViewProps.onMarkerDrag.isDirty = false;
218
+ }
219
+ // onMarkerDragEnd: optional
220
+ if (newViewProps.onMarkerDragEnd.isDirty) {
221
+ swiftPart.setOnMarkerDragEnd(newViewProps.onMarkerDragEnd.value);
222
+ newViewProps.onMarkerDragEnd.isDirty = false;
223
+ }
209
224
  // onCameraChangeStart: optional
210
225
  if (newViewProps.onCameraChangeStart.isDirty) {
211
226
  swiftPart.setOnCameraChangeStart(newViewProps.onCameraChangeStart.value);
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// Func_void_std__string.swift
2
+ /// Func_void_std__optional_std__string_.swift
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
@@ -9,21 +9,28 @@ import NitroModules
9
9
 
10
10
 
11
11
  /**
12
- * Wraps a Swift `(_ id: String) -> Void` as a class.
12
+ * Wraps a Swift `(_ id: String?) -> Void` as a class.
13
13
  * This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
14
14
  */
15
- public final class Func_void_std__string {
15
+ public final class Func_void_std__optional_std__string_ {
16
16
  public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
17
 
18
- private let closure: (_ id: String) -> Void
18
+ private let closure: (_ id: String?) -> Void
19
19
 
20
- public init(_ closure: @escaping (_ id: String) -> Void) {
20
+ public init(_ closure: @escaping (_ id: String?) -> Void) {
21
21
  self.closure = closure
22
22
  }
23
23
 
24
24
  @inline(__always)
25
- public func call(id: std.string) -> Void {
26
- self.closure(String(id))
25
+ public func call(id: bridge.std__optional_std__string_) -> Void {
26
+ self.closure({ () -> String? in
27
+ if bridge.has_value_std__optional_std__string_(id) {
28
+ let __unwrapped = bridge.get_std__optional_std__string_(id)
29
+ return String(__unwrapped)
30
+ } else {
31
+ return nil
32
+ }
33
+ }())
27
34
  }
28
35
 
29
36
  /**
@@ -36,12 +43,12 @@ public final class Func_void_std__string {
36
43
  }
37
44
 
38
45
  /**
39
- * Casts an unsafe pointer to a `Func_void_std__string`.
40
- * The pointer has to be a retained opaque `Unmanaged<Func_void_std__string>`.
46
+ * Casts an unsafe pointer to a `Func_void_std__optional_std__string_`.
47
+ * The pointer has to be a retained opaque `Unmanaged<Func_void_std__optional_std__string_>`.
41
48
  * This removes one strong reference from the object!
42
49
  */
43
50
  @inline(__always)
44
- public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__string {
45
- return Unmanaged<Func_void_std__string>.fromOpaque(pointer).takeRetainedValue()
51
+ public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__optional_std__string_ {
52
+ return Unmanaged<Func_void_std__optional_std__string_>.fromOpaque(pointer).takeRetainedValue()
46
53
  }
47
54
  }
@@ -0,0 +1,54 @@
1
+ ///
2
+ /// Func_void_std__optional_std__string__RNLatLng.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+
11
+ /**
12
+ * Wraps a Swift `(_ id: String?, _ location: RNLatLng) -> Void` as a class.
13
+ * This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
14
+ */
15
+ public final class Func_void_std__optional_std__string__RNLatLng {
16
+ public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ private let closure: (_ id: String?, _ location: RNLatLng) -> Void
19
+
20
+ public init(_ closure: @escaping (_ id: String?, _ location: RNLatLng) -> Void) {
21
+ self.closure = closure
22
+ }
23
+
24
+ @inline(__always)
25
+ public func call(id: bridge.std__optional_std__string_, location: RNLatLng) -> Void {
26
+ self.closure({ () -> String? in
27
+ if bridge.has_value_std__optional_std__string_(id) {
28
+ let __unwrapped = bridge.get_std__optional_std__string_(id)
29
+ return String(__unwrapped)
30
+ } else {
31
+ return nil
32
+ }
33
+ }(), location)
34
+ }
35
+
36
+ /**
37
+ * Casts this instance to a retained unsafe raw pointer.
38
+ * This acquires one additional strong reference on the object!
39
+ */
40
+ @inline(__always)
41
+ public func toUnsafe() -> UnsafeMutableRawPointer {
42
+ return Unmanaged.passRetained(self).toOpaque()
43
+ }
44
+
45
+ /**
46
+ * Casts an unsafe pointer to a `Func_void_std__optional_std__string__RNLatLng`.
47
+ * The pointer has to be a retained opaque `Unmanaged<Func_void_std__optional_std__string__RNLatLng>`.
48
+ * This removes one strong reference from the object!
49
+ */
50
+ @inline(__always)
51
+ public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__optional_std__string__RNLatLng {
52
+ return Unmanaged<Func_void_std__optional_std__string__RNLatLng>.fromOpaque(pointer).takeRetainedValue()
53
+ }
54
+ }
@@ -34,10 +34,13 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
34
34
  var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }
35
35
  var onLocationError: ((_ error: RNLocationErrorCode) -> Void)? { get set }
36
36
  var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
37
- var onMarkerPress: ((_ id: String) -> Void)? { get set }
38
- var onPolylinePress: ((_ id: String) -> Void)? { get set }
39
- var onPolygonPress: ((_ id: String) -> Void)? { get set }
40
- var onCirclePress: ((_ id: String) -> Void)? { get set }
37
+ var onMarkerPress: ((_ id: String?) -> Void)? { get set }
38
+ var onPolylinePress: ((_ id: String?) -> Void)? { get set }
39
+ var onPolygonPress: ((_ id: String?) -> Void)? { get set }
40
+ var onCirclePress: ((_ id: String?) -> Void)? { get set }
41
+ var onMarkerDragStart: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
42
+ var onMarkerDrag: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
43
+ var onMarkerDragEnd: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
41
44
  var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
42
45
  var onCameraChange: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
43
46
  var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
@@ -692,14 +692,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
692
692
  }
693
693
  }
694
694
 
695
- public final var onMarkerPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
695
+ public final var onMarkerPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
696
696
  @inline(__always)
697
697
  get {
698
- return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
698
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
699
699
  if let __unwrappedValue = self.__implementation.onMarkerPress {
700
- return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
701
- let __closureWrapper = Func_void_std__string(__unwrappedValue)
702
- return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
700
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
701
+ let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
702
+ return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
703
703
  }())
704
704
  } else {
705
705
  return .init()
@@ -708,13 +708,19 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
708
708
  }
709
709
  @inline(__always)
710
710
  set {
711
- self.__implementation.onMarkerPress = { () -> ((_ id: String) -> Void)? in
712
- if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
713
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
714
- return { () -> (String) -> Void in
715
- let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
716
- return { (__id: String) -> Void in
717
- __wrappedFunction.call(std.string(__id))
711
+ self.__implementation.onMarkerPress = { () -> ((_ id: String?) -> Void)? in
712
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
713
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
714
+ return { () -> (String?) -> Void in
715
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
716
+ return { (__id: String?) -> Void in
717
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
718
+ if let __unwrappedValue = __id {
719
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
720
+ } else {
721
+ return .init()
722
+ }
723
+ }())
718
724
  }
719
725
  }()
720
726
  } else {
@@ -724,14 +730,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
724
730
  }
725
731
  }
726
732
 
727
- public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
733
+ public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
728
734
  @inline(__always)
729
735
  get {
730
- return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
736
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
731
737
  if let __unwrappedValue = self.__implementation.onPolylinePress {
732
- return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
733
- let __closureWrapper = Func_void_std__string(__unwrappedValue)
734
- return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
738
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
739
+ let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
740
+ return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
735
741
  }())
736
742
  } else {
737
743
  return .init()
@@ -740,13 +746,19 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
740
746
  }
741
747
  @inline(__always)
742
748
  set {
743
- self.__implementation.onPolylinePress = { () -> ((_ id: String) -> Void)? in
744
- if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
745
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
746
- return { () -> (String) -> Void in
747
- let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
748
- return { (__id: String) -> Void in
749
- __wrappedFunction.call(std.string(__id))
749
+ self.__implementation.onPolylinePress = { () -> ((_ id: String?) -> Void)? in
750
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
751
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
752
+ return { () -> (String?) -> Void in
753
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
754
+ return { (__id: String?) -> Void in
755
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
756
+ if let __unwrappedValue = __id {
757
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
758
+ } else {
759
+ return .init()
760
+ }
761
+ }())
750
762
  }
751
763
  }()
752
764
  } else {
@@ -756,14 +768,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
756
768
  }
757
769
  }
758
770
 
759
- public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
771
+ public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
760
772
  @inline(__always)
761
773
  get {
762
- return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
774
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
763
775
  if let __unwrappedValue = self.__implementation.onPolygonPress {
764
- return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
765
- let __closureWrapper = Func_void_std__string(__unwrappedValue)
766
- return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
776
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
777
+ let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
778
+ return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
767
779
  }())
768
780
  } else {
769
781
  return .init()
@@ -772,13 +784,19 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
772
784
  }
773
785
  @inline(__always)
774
786
  set {
775
- self.__implementation.onPolygonPress = { () -> ((_ id: String) -> Void)? in
776
- if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
777
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
778
- return { () -> (String) -> Void in
779
- let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
780
- return { (__id: String) -> Void in
781
- __wrappedFunction.call(std.string(__id))
787
+ self.__implementation.onPolygonPress = { () -> ((_ id: String?) -> Void)? in
788
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
789
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
790
+ return { () -> (String?) -> Void in
791
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
792
+ return { (__id: String?) -> Void in
793
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
794
+ if let __unwrappedValue = __id {
795
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
796
+ } else {
797
+ return .init()
798
+ }
799
+ }())
782
800
  }
783
801
  }()
784
802
  } else {
@@ -788,14 +806,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
788
806
  }
789
807
  }
790
808
 
791
- public final var onCirclePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
809
+ public final var onCirclePress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
792
810
  @inline(__always)
793
811
  get {
794
- return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
812
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
795
813
  if let __unwrappedValue = self.__implementation.onCirclePress {
796
- return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
797
- let __closureWrapper = Func_void_std__string(__unwrappedValue)
798
- return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
814
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
815
+ let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
816
+ return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
799
817
  }())
800
818
  } else {
801
819
  return .init()
@@ -804,13 +822,133 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
804
822
  }
805
823
  @inline(__always)
806
824
  set {
807
- self.__implementation.onCirclePress = { () -> ((_ id: String) -> Void)? in
808
- if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
809
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
810
- return { () -> (String) -> Void in
811
- let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
812
- return { (__id: String) -> Void in
813
- __wrappedFunction.call(std.string(__id))
825
+ self.__implementation.onCirclePress = { () -> ((_ id: String?) -> Void)? in
826
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
827
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
828
+ return { () -> (String?) -> Void in
829
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
830
+ return { (__id: String?) -> Void in
831
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
832
+ if let __unwrappedValue = __id {
833
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
834
+ } else {
835
+ return .init()
836
+ }
837
+ }())
838
+ }
839
+ }()
840
+ } else {
841
+ return nil
842
+ }
843
+ }()
844
+ }
845
+ }
846
+
847
+ public final var onMarkerDragStart: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
848
+ @inline(__always)
849
+ get {
850
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
851
+ if let __unwrappedValue = self.__implementation.onMarkerDragStart {
852
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__optional_std__string__RNLatLng in
853
+ let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
854
+ return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
855
+ }())
856
+ } else {
857
+ return .init()
858
+ }
859
+ }()
860
+ }
861
+ @inline(__always)
862
+ set {
863
+ self.__implementation.onMarkerDragStart = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
864
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
865
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
866
+ return { () -> (String?, RNLatLng) -> Void in
867
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
868
+ return { (__id: String?, __location: RNLatLng) -> Void in
869
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
870
+ if let __unwrappedValue = __id {
871
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
872
+ } else {
873
+ return .init()
874
+ }
875
+ }(), __location)
876
+ }
877
+ }()
878
+ } else {
879
+ return nil
880
+ }
881
+ }()
882
+ }
883
+ }
884
+
885
+ public final var onMarkerDrag: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
886
+ @inline(__always)
887
+ get {
888
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
889
+ if let __unwrappedValue = self.__implementation.onMarkerDrag {
890
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__optional_std__string__RNLatLng in
891
+ let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
892
+ return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
893
+ }())
894
+ } else {
895
+ return .init()
896
+ }
897
+ }()
898
+ }
899
+ @inline(__always)
900
+ set {
901
+ self.__implementation.onMarkerDrag = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
902
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
903
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
904
+ return { () -> (String?, RNLatLng) -> Void in
905
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
906
+ return { (__id: String?, __location: RNLatLng) -> Void in
907
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
908
+ if let __unwrappedValue = __id {
909
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
910
+ } else {
911
+ return .init()
912
+ }
913
+ }(), __location)
914
+ }
915
+ }()
916
+ } else {
917
+ return nil
918
+ }
919
+ }()
920
+ }
921
+ }
922
+
923
+ public final var onMarkerDragEnd: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
924
+ @inline(__always)
925
+ get {
926
+ return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
927
+ if let __unwrappedValue = self.__implementation.onMarkerDragEnd {
928
+ return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__optional_std__string__RNLatLng in
929
+ let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
930
+ return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
931
+ }())
932
+ } else {
933
+ return .init()
934
+ }
935
+ }()
936
+ }
937
+ @inline(__always)
938
+ set {
939
+ self.__implementation.onMarkerDragEnd = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
940
+ if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
941
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
942
+ return { () -> (String?, RNLatLng) -> Void in
943
+ let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
944
+ return { (__id: String?, __location: RNLatLng) -> Void in
945
+ __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
946
+ if let __unwrappedValue = __id {
947
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
948
+ } else {
949
+ return .init()
950
+ }
951
+ }(), __location)
814
952
  }
815
953
  }()
816
954
  } else {