react-native-google-maps-plus 1.7.0-dev.9 → 1.7.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.
Files changed (46) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +120 -124
  2. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +33 -0
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +27 -11
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +35 -0
  5. package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +31 -0
  6. package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
  7. package/ios/GoogleMapViewImpl.swift +81 -64
  8. package/ios/MapMarkerBuilder.swift +55 -2
  9. package/ios/RNGoogleMapsPlusView.swift +20 -10
  10. package/ios/extensions/MapObjectTag+Extension.swift +93 -0
  11. package/ios/extensions/UIImage+Extension.swift +45 -0
  12. package/lib/module/types.js.map +1 -1
  13. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +12 -10
  14. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  15. package/lib/typescript/src/types.d.ts +1 -0
  16. package/lib/typescript/src/types.d.ts.map +1 -1
  17. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
  18. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
  19. package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
  20. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +100 -92
  21. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +22 -20
  22. package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string_.kt → Func_void_std__string.kt} +12 -12
  24. 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
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +38 -30
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -3
  27. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -8
  28. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +58 -36
  29. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +32 -20
  30. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +6 -6
  31. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
  32. package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +47 -0
  33. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +12 -10
  34. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +142 -180
  35. package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
  36. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
  37. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -20
  38. package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
  39. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +20 -20
  40. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +10 -10
  41. package/package.json +1 -1
  42. package/src/RNGoogleMapsPlusView.nitro.ts +14 -10
  43. package/src/types.ts +1 -0
  44. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +0 -76
  45. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +0 -78
  46. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +0 -54
@@ -0,0 +1,47 @@
1
+ ///
2
+ /// Func_void_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__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: std.string, location: RNLatLng) -> Void {
26
+ self.closure(String(id), location)
27
+ }
28
+
29
+ /**
30
+ * Casts this instance to a retained unsafe raw pointer.
31
+ * This acquires one additional strong reference on the object!
32
+ */
33
+ @inline(__always)
34
+ public func toUnsafe() -> UnsafeMutableRawPointer {
35
+ return Unmanaged.passRetained(self).toOpaque()
36
+ }
37
+
38
+ /**
39
+ * Casts an unsafe pointer to a `Func_void_std__string_RNLatLng`.
40
+ * The pointer has to be a retained opaque `Unmanaged<Func_void_std__string_RNLatLng>`.
41
+ * This removes one strong reference from the object!
42
+ */
43
+ @inline(__always)
44
+ public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__string_RNLatLng {
45
+ return Unmanaged<Func_void_std__string_RNLatLng>.fromOpaque(pointer).takeRetainedValue()
46
+ }
47
+ }
@@ -38,18 +38,18 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
38
38
  var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
39
39
  var onMapLongPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
40
40
  var onPoiPress: ((_ placeId: String, _ name: String, _ coordinate: RNLatLng) -> Void)? { get set }
41
- var onMarkerPress: ((_ id: String?) -> Void)? { get set }
42
- var onPolylinePress: ((_ id: String?) -> Void)? { get set }
43
- var onPolygonPress: ((_ id: String?) -> Void)? { get set }
44
- var onCirclePress: ((_ id: String?) -> Void)? { get set }
45
- var onMarkerDragStart: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
46
- var onMarkerDrag: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
47
- var onMarkerDragEnd: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
41
+ var onMarkerPress: ((_ id: String) -> Void)? { get set }
42
+ var onPolylinePress: ((_ id: String) -> Void)? { get set }
43
+ var onPolygonPress: ((_ id: String) -> Void)? { get set }
44
+ var onCirclePress: ((_ id: String) -> Void)? { get set }
45
+ var onMarkerDragStart: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
46
+ var onMarkerDrag: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
47
+ var onMarkerDragEnd: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
48
48
  var onIndoorBuildingFocused: ((_ indoorBuilding: RNIndoorBuilding) -> Void)? { get set }
49
49
  var onIndoorLevelActivated: ((_ indoorLevel: RNIndoorLevel) -> Void)? { get set }
50
- var onInfoWindowPress: ((_ id: String?) -> Void)? { get set }
51
- var onInfoWindowClose: ((_ id: String?) -> Void)? { get set }
52
- var onInfoWindowLongPress: ((_ id: String?) -> Void)? { get set }
50
+ var onInfoWindowPress: ((_ id: String) -> Void)? { get set }
51
+ var onInfoWindowClose: ((_ id: String) -> Void)? { get set }
52
+ var onInfoWindowLongPress: ((_ id: String) -> Void)? { get set }
53
53
  var onMyLocationPress: ((_ location: RNLocation) -> Void)? { get set }
54
54
  var onMyLocationButtonPress: ((_ pressed: Bool) -> Void)? { get set }
55
55
  var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
@@ -57,6 +57,8 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
57
57
  var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
58
58
 
59
59
  // Methods
60
+ func showMarkerInfoWindow(id: String) throws -> Void
61
+ func hideMarkerInfoWindow(id: String) throws -> Void
60
62
  func setCamera(camera: RNCamera, animated: Bool?, durationMs: Double?) throws -> Void
61
63
  func setCameraToCoordinates(coordinates: [RNLatLng], padding: RNMapPadding?, animated: Bool?, durationMs: Double?) throws -> Void
62
64
  func setCameraBounds(bounds: RNLatLngBounds?) throws -> Void
@@ -811,14 +811,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
811
811
  }
812
812
  }
813
813
 
814
- public final var onMarkerPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
814
+ public final var onMarkerPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
815
815
  @inline(__always)
816
816
  get {
817
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
817
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
818
818
  if let __unwrappedValue = self.__implementation.onMarkerPress {
819
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
820
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
821
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
819
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
820
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
821
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
822
822
  }())
823
823
  } else {
824
824
  return .init()
@@ -827,19 +827,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
827
827
  }
828
828
  @inline(__always)
829
829
  set {
830
- self.__implementation.onMarkerPress = { () -> ((_ id: String?) -> Void)? in
831
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
832
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
833
- return { () -> (String?) -> Void in
834
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
835
- return { (__id: String?) -> Void in
836
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
837
- if let __unwrappedValue = __id {
838
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
839
- } else {
840
- return .init()
841
- }
842
- }())
830
+ self.__implementation.onMarkerPress = { () -> ((_ id: String) -> Void)? in
831
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
832
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
833
+ return { () -> (String) -> Void in
834
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
835
+ return { (__id: String) -> Void in
836
+ __wrappedFunction.call(std.string(__id))
843
837
  }
844
838
  }()
845
839
  } else {
@@ -849,14 +843,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
849
843
  }
850
844
  }
851
845
 
852
- public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
846
+ public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
853
847
  @inline(__always)
854
848
  get {
855
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
849
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
856
850
  if let __unwrappedValue = self.__implementation.onPolylinePress {
857
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
858
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
859
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
851
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
852
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
853
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
860
854
  }())
861
855
  } else {
862
856
  return .init()
@@ -865,19 +859,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
865
859
  }
866
860
  @inline(__always)
867
861
  set {
868
- self.__implementation.onPolylinePress = { () -> ((_ id: String?) -> Void)? in
869
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
870
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
871
- return { () -> (String?) -> Void in
872
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
873
- return { (__id: String?) -> Void in
874
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
875
- if let __unwrappedValue = __id {
876
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
877
- } else {
878
- return .init()
879
- }
880
- }())
862
+ self.__implementation.onPolylinePress = { () -> ((_ id: String) -> Void)? in
863
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
864
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
865
+ return { () -> (String) -> Void in
866
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
867
+ return { (__id: String) -> Void in
868
+ __wrappedFunction.call(std.string(__id))
881
869
  }
882
870
  }()
883
871
  } else {
@@ -887,14 +875,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
887
875
  }
888
876
  }
889
877
 
890
- public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
878
+ public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
891
879
  @inline(__always)
892
880
  get {
893
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
881
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
894
882
  if let __unwrappedValue = self.__implementation.onPolygonPress {
895
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
896
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
897
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
883
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
884
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
885
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
898
886
  }())
899
887
  } else {
900
888
  return .init()
@@ -903,19 +891,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
903
891
  }
904
892
  @inline(__always)
905
893
  set {
906
- self.__implementation.onPolygonPress = { () -> ((_ id: String?) -> Void)? in
907
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
908
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
909
- return { () -> (String?) -> Void in
910
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
911
- return { (__id: String?) -> Void in
912
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
913
- if let __unwrappedValue = __id {
914
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
915
- } else {
916
- return .init()
917
- }
918
- }())
894
+ self.__implementation.onPolygonPress = { () -> ((_ id: String) -> Void)? in
895
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
896
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
897
+ return { () -> (String) -> Void in
898
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
899
+ return { (__id: String) -> Void in
900
+ __wrappedFunction.call(std.string(__id))
919
901
  }
920
902
  }()
921
903
  } else {
@@ -925,14 +907,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
925
907
  }
926
908
  }
927
909
 
928
- public final var onCirclePress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
910
+ public final var onCirclePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
929
911
  @inline(__always)
930
912
  get {
931
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
913
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
932
914
  if let __unwrappedValue = self.__implementation.onCirclePress {
933
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
934
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
935
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
915
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
916
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
917
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
936
918
  }())
937
919
  } else {
938
920
  return .init()
@@ -941,19 +923,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
941
923
  }
942
924
  @inline(__always)
943
925
  set {
944
- self.__implementation.onCirclePress = { () -> ((_ id: String?) -> Void)? in
945
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
946
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
947
- return { () -> (String?) -> Void in
948
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
949
- return { (__id: String?) -> Void in
950
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
951
- if let __unwrappedValue = __id {
952
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
953
- } else {
954
- return .init()
955
- }
956
- }())
926
+ self.__implementation.onCirclePress = { () -> ((_ id: String) -> Void)? in
927
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
928
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
929
+ return { () -> (String) -> Void in
930
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
931
+ return { (__id: String) -> Void in
932
+ __wrappedFunction.call(std.string(__id))
957
933
  }
958
934
  }()
959
935
  } else {
@@ -963,14 +939,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
963
939
  }
964
940
  }
965
941
 
966
- public final var onMarkerDragStart: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
942
+ public final var onMarkerDragStart: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
967
943
  @inline(__always)
968
944
  get {
969
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
945
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
970
946
  if let __unwrappedValue = self.__implementation.onMarkerDragStart {
971
- 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
972
- let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
973
- return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
947
+ return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
948
+ let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
949
+ return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
974
950
  }())
975
951
  } else {
976
952
  return .init()
@@ -979,19 +955,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
979
955
  }
980
956
  @inline(__always)
981
957
  set {
982
- self.__implementation.onMarkerDragStart = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
983
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
984
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
985
- return { () -> (String?, RNLatLng) -> Void in
986
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
987
- return { (__id: String?, __location: RNLatLng) -> Void in
988
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
989
- if let __unwrappedValue = __id {
990
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
991
- } else {
992
- return .init()
993
- }
994
- }(), __location)
958
+ self.__implementation.onMarkerDragStart = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
959
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
960
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
961
+ return { () -> (String, RNLatLng) -> Void in
962
+ let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
963
+ return { (__id: String, __location: RNLatLng) -> Void in
964
+ __wrappedFunction.call(std.string(__id), __location)
995
965
  }
996
966
  }()
997
967
  } else {
@@ -1001,14 +971,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1001
971
  }
1002
972
  }
1003
973
 
1004
- public final var onMarkerDrag: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
974
+ public final var onMarkerDrag: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
1005
975
  @inline(__always)
1006
976
  get {
1007
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
977
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
1008
978
  if let __unwrappedValue = self.__implementation.onMarkerDrag {
1009
- 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
1010
- let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
1011
- return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
979
+ return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
980
+ let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
981
+ return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
1012
982
  }())
1013
983
  } else {
1014
984
  return .init()
@@ -1017,19 +987,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1017
987
  }
1018
988
  @inline(__always)
1019
989
  set {
1020
- self.__implementation.onMarkerDrag = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
1021
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
1022
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
1023
- return { () -> (String?, RNLatLng) -> Void in
1024
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
1025
- return { (__id: String?, __location: RNLatLng) -> Void in
1026
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
1027
- if let __unwrappedValue = __id {
1028
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
1029
- } else {
1030
- return .init()
1031
- }
1032
- }(), __location)
990
+ self.__implementation.onMarkerDrag = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
991
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
992
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
993
+ return { () -> (String, RNLatLng) -> Void in
994
+ let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
995
+ return { (__id: String, __location: RNLatLng) -> Void in
996
+ __wrappedFunction.call(std.string(__id), __location)
1033
997
  }
1034
998
  }()
1035
999
  } else {
@@ -1039,14 +1003,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1039
1003
  }
1040
1004
  }
1041
1005
 
1042
- public final var onMarkerDragEnd: bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ {
1006
+ public final var onMarkerDragEnd: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
1043
1007
  @inline(__always)
1044
1008
  get {
1045
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ in
1009
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
1046
1010
  if let __unwrappedValue = self.__implementation.onMarkerDragEnd {
1047
- 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
1048
- let __closureWrapper = Func_void_std__optional_std__string__RNLatLng(__unwrappedValue)
1049
- return bridge.create_Func_void_std__optional_std__string__RNLatLng(__closureWrapper.toUnsafe())
1011
+ return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
1012
+ let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
1013
+ return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
1050
1014
  }())
1051
1015
  } else {
1052
1016
  return .init()
@@ -1055,19 +1019,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1055
1019
  }
1056
1020
  @inline(__always)
1057
1021
  set {
1058
- self.__implementation.onMarkerDragEnd = { () -> ((_ id: String?, _ location: RNLatLng) -> Void)? in
1059
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue) {
1060
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(newValue)
1061
- return { () -> (String?, RNLatLng) -> Void in
1062
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string__RNLatLng(__unwrapped)
1063
- return { (__id: String?, __location: RNLatLng) -> Void in
1064
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
1065
- if let __unwrappedValue = __id {
1066
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
1067
- } else {
1068
- return .init()
1069
- }
1070
- }(), __location)
1022
+ self.__implementation.onMarkerDragEnd = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
1023
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
1024
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
1025
+ return { () -> (String, RNLatLng) -> Void in
1026
+ let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
1027
+ return { (__id: String, __location: RNLatLng) -> Void in
1028
+ __wrappedFunction.call(std.string(__id), __location)
1071
1029
  }
1072
1030
  }()
1073
1031
  } else {
@@ -1141,14 +1099,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1141
1099
  }
1142
1100
  }
1143
1101
 
1144
- public final var onInfoWindowPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
1102
+ public final var onInfoWindowPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
1145
1103
  @inline(__always)
1146
1104
  get {
1147
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
1105
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
1148
1106
  if let __unwrappedValue = self.__implementation.onInfoWindowPress {
1149
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
1150
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
1151
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
1107
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
1108
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
1109
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
1152
1110
  }())
1153
1111
  } else {
1154
1112
  return .init()
@@ -1157,19 +1115,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1157
1115
  }
1158
1116
  @inline(__always)
1159
1117
  set {
1160
- self.__implementation.onInfoWindowPress = { () -> ((_ id: String?) -> Void)? in
1161
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
1162
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
1163
- return { () -> (String?) -> Void in
1164
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
1165
- return { (__id: String?) -> Void in
1166
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
1167
- if let __unwrappedValue = __id {
1168
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
1169
- } else {
1170
- return .init()
1171
- }
1172
- }())
1118
+ self.__implementation.onInfoWindowPress = { () -> ((_ id: String) -> Void)? in
1119
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
1120
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
1121
+ return { () -> (String) -> Void in
1122
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
1123
+ return { (__id: String) -> Void in
1124
+ __wrappedFunction.call(std.string(__id))
1173
1125
  }
1174
1126
  }()
1175
1127
  } else {
@@ -1179,14 +1131,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1179
1131
  }
1180
1132
  }
1181
1133
 
1182
- public final var onInfoWindowClose: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
1134
+ public final var onInfoWindowClose: bridge.std__optional_std__function_void_const_std__string_____id______ {
1183
1135
  @inline(__always)
1184
1136
  get {
1185
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
1137
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
1186
1138
  if let __unwrappedValue = self.__implementation.onInfoWindowClose {
1187
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
1188
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
1189
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
1139
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
1140
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
1141
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
1190
1142
  }())
1191
1143
  } else {
1192
1144
  return .init()
@@ -1195,19 +1147,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1195
1147
  }
1196
1148
  @inline(__always)
1197
1149
  set {
1198
- self.__implementation.onInfoWindowClose = { () -> ((_ id: String?) -> Void)? in
1199
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
1200
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
1201
- return { () -> (String?) -> Void in
1202
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
1203
- return { (__id: String?) -> Void in
1204
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
1205
- if let __unwrappedValue = __id {
1206
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
1207
- } else {
1208
- return .init()
1209
- }
1210
- }())
1150
+ self.__implementation.onInfoWindowClose = { () -> ((_ id: String) -> Void)? in
1151
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
1152
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
1153
+ return { () -> (String) -> Void in
1154
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
1155
+ return { (__id: String) -> Void in
1156
+ __wrappedFunction.call(std.string(__id))
1211
1157
  }
1212
1158
  }()
1213
1159
  } else {
@@ -1217,14 +1163,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1217
1163
  }
1218
1164
  }
1219
1165
 
1220
- public final var onInfoWindowLongPress: bridge.std__optional_std__function_void_const_std__optional_std__string______id______ {
1166
+ public final var onInfoWindowLongPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
1221
1167
  @inline(__always)
1222
1168
  get {
1223
- return { () -> bridge.std__optional_std__function_void_const_std__optional_std__string______id______ in
1169
+ return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
1224
1170
  if let __unwrappedValue = self.__implementation.onInfoWindowLongPress {
1225
- return bridge.create_std__optional_std__function_void_const_std__optional_std__string______id______({ () -> bridge.Func_void_std__optional_std__string_ in
1226
- let __closureWrapper = Func_void_std__optional_std__string_(__unwrappedValue)
1227
- return bridge.create_Func_void_std__optional_std__string_(__closureWrapper.toUnsafe())
1171
+ return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
1172
+ let __closureWrapper = Func_void_std__string(__unwrappedValue)
1173
+ return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
1228
1174
  }())
1229
1175
  } else {
1230
1176
  return .init()
@@ -1233,19 +1179,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1233
1179
  }
1234
1180
  @inline(__always)
1235
1181
  set {
1236
- self.__implementation.onInfoWindowLongPress = { () -> ((_ id: String?) -> Void)? in
1237
- if bridge.has_value_std__optional_std__function_void_const_std__optional_std__string______id______(newValue) {
1238
- let __unwrapped = bridge.get_std__optional_std__function_void_const_std__optional_std__string______id______(newValue)
1239
- return { () -> (String?) -> Void in
1240
- let __wrappedFunction = bridge.wrap_Func_void_std__optional_std__string_(__unwrapped)
1241
- return { (__id: String?) -> Void in
1242
- __wrappedFunction.call({ () -> bridge.std__optional_std__string_ in
1243
- if let __unwrappedValue = __id {
1244
- return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
1245
- } else {
1246
- return .init()
1247
- }
1248
- }())
1182
+ self.__implementation.onInfoWindowLongPress = { () -> ((_ id: String) -> Void)? in
1183
+ if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
1184
+ let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
1185
+ return { () -> (String) -> Void in
1186
+ let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
1187
+ return { (__id: String) -> Void in
1188
+ __wrappedFunction.call(std.string(__id))
1249
1189
  }
1250
1190
  }()
1251
1191
  } else {
@@ -1416,6 +1356,28 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1416
1356
  }
1417
1357
 
1418
1358
  // Methods
1359
+ @inline(__always)
1360
+ public final func showMarkerInfoWindow(id: std.string) -> bridge.Result_void_ {
1361
+ do {
1362
+ try self.__implementation.showMarkerInfoWindow(id: String(id))
1363
+ return bridge.create_Result_void_()
1364
+ } catch (let __error) {
1365
+ let __exceptionPtr = __error.toCpp()
1366
+ return bridge.create_Result_void_(__exceptionPtr)
1367
+ }
1368
+ }
1369
+
1370
+ @inline(__always)
1371
+ public final func hideMarkerInfoWindow(id: std.string) -> bridge.Result_void_ {
1372
+ do {
1373
+ try self.__implementation.hideMarkerInfoWindow(id: String(id))
1374
+ return bridge.create_Result_void_()
1375
+ } catch (let __error) {
1376
+ let __exceptionPtr = __error.toCpp()
1377
+ return bridge.create_Result_void_(__exceptionPtr)
1378
+ }
1379
+ }
1380
+
1419
1381
  @inline(__always)
1420
1382
  public final func setCamera(camera: RNCamera, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
1421
1383
  do {
@@ -18,7 +18,7 @@ public extension RNMarker {
18
18
  /**
19
19
  * Create a new instance of `RNMarker`.
20
20
  */
21
- init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?) {
21
+ init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?, infoWindowIconSvg: RNMarkerSvg?) {
22
22
  self.init(std.string(id), { () -> bridge.std__optional_double_ in
23
23
  if let __unwrappedValue = zIndex {
24
24
  return bridge.create_std__optional_double_(__unwrappedValue)
@@ -85,6 +85,12 @@ public extension RNMarker {
85
85
  } else {
86
86
  return .init()
87
87
  }
88
+ }(), { () -> bridge.std__optional_RNMarkerSvg_ in
89
+ if let __unwrappedValue = infoWindowIconSvg {
90
+ return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
91
+ } else {
92
+ return .init()
93
+ }
88
94
  }())
89
95
  }
90
96
 
@@ -331,4 +337,21 @@ public extension RNMarker {
331
337
  }()
332
338
  }
333
339
  }
340
+
341
+ var infoWindowIconSvg: RNMarkerSvg? {
342
+ @inline(__always)
343
+ get {
344
+ return self.__infoWindowIconSvg.value
345
+ }
346
+ @inline(__always)
347
+ set {
348
+ self.__infoWindowIconSvg = { () -> bridge.std__optional_RNMarkerSvg_ in
349
+ if let __unwrappedValue = newValue {
350
+ return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
351
+ } else {
352
+ return .init()
353
+ }
354
+ }()
355
+ }
356
+ }
334
357
  }
@@ -102,6 +102,8 @@ namespace margelo::nitro::rngooglemapsplus {
102
102
  prototype.registerHybridSetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChange);
103
103
  prototype.registerHybridGetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeComplete);
104
104
  prototype.registerHybridSetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeComplete);
105
+ prototype.registerHybridMethod("showMarkerInfoWindow", &HybridRNGoogleMapsPlusViewSpec::showMarkerInfoWindow);
106
+ prototype.registerHybridMethod("hideMarkerInfoWindow", &HybridRNGoogleMapsPlusViewSpec::hideMarkerInfoWindow);
105
107
  prototype.registerHybridMethod("setCamera", &HybridRNGoogleMapsPlusViewSpec::setCamera);
106
108
  prototype.registerHybridMethod("setCameraToCoordinates", &HybridRNGoogleMapsPlusViewSpec::setCameraToCoordinates);
107
109
  prototype.registerHybridMethod("setCameraBounds", &HybridRNGoogleMapsPlusViewSpec::setCameraBounds);