react-native-google-maps-plus 1.0.2 → 1.0.3-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 (64) hide show
  1. package/README.md +127 -11
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +239 -112
  3. package/android/src/main/java/com/rngooglemapsplus/MapCircle.kt +29 -0
  4. package/android/src/main/java/com/rngooglemapsplus/MapMarker.kt +6 -5
  5. package/android/src/main/java/com/rngooglemapsplus/MapPolygon.kt +3 -1
  6. package/android/src/main/java/com/rngooglemapsplus/MapPolyline.kt +3 -1
  7. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +115 -88
  8. package/ios/Color.swift +20 -20
  9. package/ios/GoogleMapViewImpl.swift +194 -139
  10. package/ios/MapCircle.swift +43 -0
  11. package/ios/MapMarker.swift +10 -17
  12. package/ios/MapPolygon.swift +9 -6
  13. package/ios/MapPolyline.swift +9 -7
  14. package/ios/PermissionHandler.swift +1 -1
  15. package/ios/RNGoogleMapsPlusModule.swift +1 -1
  16. package/ios/RNGoogleMapsPlusView.swift +148 -105
  17. package/lib/module/types.js.map +1 -1
  18. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +17 -12
  19. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  20. package/lib/typescript/src/types.d.ts +21 -3
  21. package/lib/typescript/src/types.d.ts.map +1 -1
  22. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +173 -69
  23. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +32 -22
  24. package/nitrogen/generated/android/c++/JRNCircle.hpp +84 -0
  25. package/nitrogen/generated/android/c++/JRNInitialProps.hpp +66 -0
  26. package/nitrogen/generated/android/c++/JRNMapType.hpp +68 -0
  27. package/nitrogen/generated/android/c++/JRNMarker.hpp +4 -4
  28. package/nitrogen/generated/android/c++/JRNPolygon.hpp +8 -4
  29. package/nitrogen/generated/android/c++/JRNPolyline.hpp +8 -4
  30. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +24 -4
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +65 -11
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +50 -0
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +35 -0
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapType.kt +24 -0
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -1
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +4 -1
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +4 -1
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +7 -1
  39. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +188 -45
  40. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +9 -0
  41. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +85 -37
  42. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +41 -16
  43. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +16 -11
  44. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +296 -45
  45. package/nitrogen/generated/ios/swift/RNCircle.swift +198 -0
  46. package/nitrogen/generated/ios/swift/RNInitialProps.swift +107 -0
  47. package/nitrogen/generated/ios/swift/RNMapType.swift +52 -0
  48. package/nitrogen/generated/ios/swift/RNMarker.swift +17 -5
  49. package/nitrogen/generated/ios/swift/RNPolygon.swift +40 -5
  50. package/nitrogen/generated/ios/swift/RNPolyline.swift +40 -5
  51. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +12 -2
  52. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +45 -26
  53. package/nitrogen/generated/shared/c++/RNCircle.hpp +98 -0
  54. package/nitrogen/generated/shared/c++/RNInitialProps.hpp +78 -0
  55. package/nitrogen/generated/shared/c++/RNMapType.hpp +88 -0
  56. package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -6
  57. package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -6
  58. package/nitrogen/generated/shared/c++/RNPolyline.hpp +10 -6
  59. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +92 -32
  60. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +21 -13
  61. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +6 -1
  62. package/package.json +5 -5
  63. package/src/RNGoogleMapsPlusView.nitro.ts +19 -11
  64. package/src/types.ts +24 -3
@@ -0,0 +1,198 @@
1
+ ///
2
+ /// RNCircle.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
+ * Represents an instance of `RNCircle`, backed by a C++ struct.
12
+ */
13
+ public typealias RNCircle = margelo.nitro.rngooglemapsplus.RNCircle
14
+
15
+ public extension RNCircle {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNCircle`.
20
+ */
21
+ init(id: String, pressable: Bool?, zIndex: Double?, center: RNLatLng, radius: Double?, strokeWidth: Double?, strokeColor: String?, fillColor: String?) {
22
+ self.init(std.string(id), { () -> bridge.std__optional_bool_ in
23
+ if let __unwrappedValue = pressable {
24
+ return bridge.create_std__optional_bool_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_double_ in
29
+ if let __unwrappedValue = zIndex {
30
+ return bridge.create_std__optional_double_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), center, { () -> bridge.std__optional_double_ in
35
+ if let __unwrappedValue = radius {
36
+ return bridge.create_std__optional_double_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
40
+ }(), { () -> bridge.std__optional_double_ in
41
+ if let __unwrappedValue = strokeWidth {
42
+ return bridge.create_std__optional_double_(__unwrappedValue)
43
+ } else {
44
+ return .init()
45
+ }
46
+ }(), { () -> bridge.std__optional_std__string_ in
47
+ if let __unwrappedValue = strokeColor {
48
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
49
+ } else {
50
+ return .init()
51
+ }
52
+ }(), { () -> bridge.std__optional_std__string_ in
53
+ if let __unwrappedValue = fillColor {
54
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
55
+ } else {
56
+ return .init()
57
+ }
58
+ }())
59
+ }
60
+
61
+ var id: String {
62
+ @inline(__always)
63
+ get {
64
+ return String(self.__id)
65
+ }
66
+ @inline(__always)
67
+ set {
68
+ self.__id = std.string(newValue)
69
+ }
70
+ }
71
+
72
+ var pressable: Bool? {
73
+ @inline(__always)
74
+ get {
75
+ return self.__pressable.value
76
+ }
77
+ @inline(__always)
78
+ set {
79
+ self.__pressable = { () -> bridge.std__optional_bool_ in
80
+ if let __unwrappedValue = newValue {
81
+ return bridge.create_std__optional_bool_(__unwrappedValue)
82
+ } else {
83
+ return .init()
84
+ }
85
+ }()
86
+ }
87
+ }
88
+
89
+ var zIndex: Double? {
90
+ @inline(__always)
91
+ get {
92
+ return self.__zIndex.value
93
+ }
94
+ @inline(__always)
95
+ set {
96
+ self.__zIndex = { () -> bridge.std__optional_double_ in
97
+ if let __unwrappedValue = newValue {
98
+ return bridge.create_std__optional_double_(__unwrappedValue)
99
+ } else {
100
+ return .init()
101
+ }
102
+ }()
103
+ }
104
+ }
105
+
106
+ var center: RNLatLng {
107
+ @inline(__always)
108
+ get {
109
+ return self.__center
110
+ }
111
+ @inline(__always)
112
+ set {
113
+ self.__center = newValue
114
+ }
115
+ }
116
+
117
+ var radius: Double? {
118
+ @inline(__always)
119
+ get {
120
+ return self.__radius.value
121
+ }
122
+ @inline(__always)
123
+ set {
124
+ self.__radius = { () -> bridge.std__optional_double_ in
125
+ if let __unwrappedValue = newValue {
126
+ return bridge.create_std__optional_double_(__unwrappedValue)
127
+ } else {
128
+ return .init()
129
+ }
130
+ }()
131
+ }
132
+ }
133
+
134
+ var strokeWidth: Double? {
135
+ @inline(__always)
136
+ get {
137
+ return self.__strokeWidth.value
138
+ }
139
+ @inline(__always)
140
+ set {
141
+ self.__strokeWidth = { () -> bridge.std__optional_double_ in
142
+ if let __unwrappedValue = newValue {
143
+ return bridge.create_std__optional_double_(__unwrappedValue)
144
+ } else {
145
+ return .init()
146
+ }
147
+ }()
148
+ }
149
+ }
150
+
151
+ var strokeColor: String? {
152
+ @inline(__always)
153
+ get {
154
+ return { () -> String? in
155
+ if bridge.has_value_std__optional_std__string_(self.__strokeColor) {
156
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__strokeColor)
157
+ return String(__unwrapped)
158
+ } else {
159
+ return nil
160
+ }
161
+ }()
162
+ }
163
+ @inline(__always)
164
+ set {
165
+ self.__strokeColor = { () -> bridge.std__optional_std__string_ in
166
+ if let __unwrappedValue = newValue {
167
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
168
+ } else {
169
+ return .init()
170
+ }
171
+ }()
172
+ }
173
+ }
174
+
175
+ var fillColor: String? {
176
+ @inline(__always)
177
+ get {
178
+ return { () -> String? in
179
+ if bridge.has_value_std__optional_std__string_(self.__fillColor) {
180
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__fillColor)
181
+ return String(__unwrapped)
182
+ } else {
183
+ return nil
184
+ }
185
+ }()
186
+ }
187
+ @inline(__always)
188
+ set {
189
+ self.__fillColor = { () -> bridge.std__optional_std__string_ in
190
+ if let __unwrappedValue = newValue {
191
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
192
+ } else {
193
+ return .init()
194
+ }
195
+ }()
196
+ }
197
+ }
198
+ }
@@ -0,0 +1,107 @@
1
+ ///
2
+ /// RNInitialProps.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
+ * Represents an instance of `RNInitialProps`, backed by a C++ struct.
12
+ */
13
+ public typealias RNInitialProps = margelo.nitro.rngooglemapsplus.RNInitialProps
14
+
15
+ public extension RNInitialProps {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNInitialProps`.
20
+ */
21
+ init(mapId: String?, liteMode: Bool?, initialCamera: RNCamera?) {
22
+ self.init({ () -> bridge.std__optional_std__string_ in
23
+ if let __unwrappedValue = mapId {
24
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_bool_ in
29
+ if let __unwrappedValue = liteMode {
30
+ return bridge.create_std__optional_bool_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__optional_RNCamera_ in
35
+ if let __unwrappedValue = initialCamera {
36
+ return bridge.create_std__optional_RNCamera_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
40
+ }())
41
+ }
42
+
43
+ var mapId: String? {
44
+ @inline(__always)
45
+ get {
46
+ return { () -> String? in
47
+ if bridge.has_value_std__optional_std__string_(self.__mapId) {
48
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__mapId)
49
+ return String(__unwrapped)
50
+ } else {
51
+ return nil
52
+ }
53
+ }()
54
+ }
55
+ @inline(__always)
56
+ set {
57
+ self.__mapId = { () -> bridge.std__optional_std__string_ in
58
+ if let __unwrappedValue = newValue {
59
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
60
+ } else {
61
+ return .init()
62
+ }
63
+ }()
64
+ }
65
+ }
66
+
67
+ var liteMode: Bool? {
68
+ @inline(__always)
69
+ get {
70
+ return self.__liteMode.value
71
+ }
72
+ @inline(__always)
73
+ set {
74
+ self.__liteMode = { () -> bridge.std__optional_bool_ in
75
+ if let __unwrappedValue = newValue {
76
+ return bridge.create_std__optional_bool_(__unwrappedValue)
77
+ } else {
78
+ return .init()
79
+ }
80
+ }()
81
+ }
82
+ }
83
+
84
+ var initialCamera: RNCamera? {
85
+ @inline(__always)
86
+ get {
87
+ return { () -> RNCamera? in
88
+ if bridge.has_value_std__optional_RNCamera_(self.__initialCamera) {
89
+ let __unwrapped = bridge.get_std__optional_RNCamera_(self.__initialCamera)
90
+ return __unwrapped
91
+ } else {
92
+ return nil
93
+ }
94
+ }()
95
+ }
96
+ @inline(__always)
97
+ set {
98
+ self.__initialCamera = { () -> bridge.std__optional_RNCamera_ in
99
+ if let __unwrappedValue = newValue {
100
+ return bridge.create_std__optional_RNCamera_(__unwrappedValue)
101
+ } else {
102
+ return .init()
103
+ }
104
+ }()
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,52 @@
1
+ ///
2
+ /// RNMapType.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
+ /**
9
+ * Represents the JS union `RNMapType`, backed by a C++ enum.
10
+ */
11
+ public typealias RNMapType = margelo.nitro.rngooglemapsplus.RNMapType
12
+
13
+ public extension RNMapType {
14
+ /**
15
+ * Get a RNMapType for the given String value, or
16
+ * return `nil` if the given value was invalid/unknown.
17
+ */
18
+ init?(fromString string: String) {
19
+ switch string {
20
+ case "none":
21
+ self = .none
22
+ case "normal":
23
+ self = .normal
24
+ case "hybrid":
25
+ self = .hybrid
26
+ case "satellite":
27
+ self = .satellite
28
+ case "terrain":
29
+ self = .terrain
30
+ default:
31
+ return nil
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Get the String value this RNMapType represents.
37
+ */
38
+ var stringValue: String {
39
+ switch self {
40
+ case .none:
41
+ return "none"
42
+ case .normal:
43
+ return "normal"
44
+ case .hybrid:
45
+ return "hybrid"
46
+ case .satellite:
47
+ return "satellite"
48
+ case .terrain:
49
+ return "terrain"
50
+ }
51
+ }
52
+ }
@@ -18,8 +18,14 @@ 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?, width: Double, height: Double, iconSvg: String) {
22
- self.init(std.string(id), zIndex, coordinate, { () -> bridge.std__optional_RNPosition_ in
21
+ init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, width: Double, height: Double, iconSvg: String) {
22
+ self.init(std.string(id), { () -> bridge.std__optional_double_ in
23
+ if let __unwrappedValue = zIndex {
24
+ return bridge.create_std__optional_double_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), coordinate, { () -> bridge.std__optional_RNPosition_ in
23
29
  if let __unwrappedValue = anchor {
24
30
  return bridge.create_std__optional_RNPosition_(__unwrappedValue)
25
31
  } else {
@@ -39,14 +45,20 @@ public extension RNMarker {
39
45
  }
40
46
  }
41
47
 
42
- var zIndex: Double {
48
+ var zIndex: Double? {
43
49
  @inline(__always)
44
50
  get {
45
- return self.__zIndex
51
+ return self.__zIndex.value
46
52
  }
47
53
  @inline(__always)
48
54
  set {
49
- self.__zIndex = newValue
55
+ self.__zIndex = { () -> bridge.std__optional_double_ in
56
+ if let __unwrappedValue = newValue {
57
+ return bridge.create_std__optional_double_(__unwrappedValue)
58
+ } else {
59
+ return .init()
60
+ }
61
+ }()
50
62
  }
51
63
  }
52
64
 
@@ -18,8 +18,20 @@ public extension RNPolygon {
18
18
  /**
19
19
  * Create a new instance of `RNPolygon`.
20
20
  */
21
- init(id: String, zIndex: Double, coordinates: [RNLatLng], fillColor: String?, strokeColor: String?, strokeWidth: Double?) {
22
- self.init(std.string(id), zIndex, { () -> bridge.std__vector_RNLatLng_ in
21
+ init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], fillColor: String?, strokeColor: String?, strokeWidth: Double?) {
22
+ self.init(std.string(id), { () -> bridge.std__optional_double_ in
23
+ if let __unwrappedValue = zIndex {
24
+ return bridge.create_std__optional_double_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_bool_ in
29
+ if let __unwrappedValue = pressable {
30
+ return bridge.create_std__optional_bool_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__vector_RNLatLng_ in
23
35
  var __vector = bridge.create_std__vector_RNLatLng_(coordinates.count)
24
36
  for __item in coordinates {
25
37
  __vector.push_back(__item)
@@ -57,14 +69,37 @@ public extension RNPolygon {
57
69
  }
58
70
  }
59
71
 
60
- var zIndex: Double {
72
+ var zIndex: Double? {
73
+ @inline(__always)
74
+ get {
75
+ return self.__zIndex.value
76
+ }
77
+ @inline(__always)
78
+ set {
79
+ self.__zIndex = { () -> bridge.std__optional_double_ in
80
+ if let __unwrappedValue = newValue {
81
+ return bridge.create_std__optional_double_(__unwrappedValue)
82
+ } else {
83
+ return .init()
84
+ }
85
+ }()
86
+ }
87
+ }
88
+
89
+ var pressable: Bool? {
61
90
  @inline(__always)
62
91
  get {
63
- return self.__zIndex
92
+ return self.__pressable.value
64
93
  }
65
94
  @inline(__always)
66
95
  set {
67
- self.__zIndex = newValue
96
+ self.__pressable = { () -> bridge.std__optional_bool_ in
97
+ if let __unwrappedValue = newValue {
98
+ return bridge.create_std__optional_bool_(__unwrappedValue)
99
+ } else {
100
+ return .init()
101
+ }
102
+ }()
68
103
  }
69
104
  }
70
105
 
@@ -18,8 +18,20 @@ public extension RNPolyline {
18
18
  /**
19
19
  * Create a new instance of `RNPolyline`.
20
20
  */
21
- init(id: String, zIndex: Double, coordinates: [RNLatLng], lineCap: RNLineCapType?, lineJoin: RNLineJoinType?, color: String?, width: Double?) {
22
- self.init(std.string(id), zIndex, { () -> bridge.std__vector_RNLatLng_ in
21
+ init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], lineCap: RNLineCapType?, lineJoin: RNLineJoinType?, color: String?, width: Double?) {
22
+ self.init(std.string(id), { () -> bridge.std__optional_double_ in
23
+ if let __unwrappedValue = zIndex {
24
+ return bridge.create_std__optional_double_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_bool_ in
29
+ if let __unwrappedValue = pressable {
30
+ return bridge.create_std__optional_bool_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__vector_RNLatLng_ in
23
35
  var __vector = bridge.create_std__vector_RNLatLng_(coordinates.count)
24
36
  for __item in coordinates {
25
37
  __vector.push_back(__item)
@@ -63,14 +75,37 @@ public extension RNPolyline {
63
75
  }
64
76
  }
65
77
 
66
- var zIndex: Double {
78
+ var zIndex: Double? {
79
+ @inline(__always)
80
+ get {
81
+ return self.__zIndex.value
82
+ }
83
+ @inline(__always)
84
+ set {
85
+ self.__zIndex = { () -> bridge.std__optional_double_ in
86
+ if let __unwrappedValue = newValue {
87
+ return bridge.create_std__optional_double_(__unwrappedValue)
88
+ } else {
89
+ return .init()
90
+ }
91
+ }()
92
+ }
93
+ }
94
+
95
+ var pressable: Bool? {
67
96
  @inline(__always)
68
97
  get {
69
- return self.__zIndex
98
+ return self.__pressable.value
70
99
  }
71
100
  @inline(__always)
72
101
  set {
73
- self.__zIndex = newValue
102
+ self.__pressable = { () -> bridge.std__optional_bool_ in
103
+ if let __unwrappedValue = newValue {
104
+ return bridge.create_std__optional_bool_(__unwrappedValue)
105
+ } else {
106
+ return .init()
107
+ }
108
+ }()
74
109
  }
75
110
  }
76
111
 
@@ -14,14 +14,14 @@ namespace margelo::nitro::rngooglemapsplus {
14
14
  HybridObject::loadHybridMethods();
15
15
  // load custom methods/properties
16
16
  registerHybrids(this, [](Prototype& prototype) {
17
+ prototype.registerHybridGetter("initialProps", &HybridRNGoogleMapsPlusViewSpec::getInitialProps);
18
+ prototype.registerHybridSetter("initialProps", &HybridRNGoogleMapsPlusViewSpec::setInitialProps);
17
19
  prototype.registerHybridGetter("buildingEnabled", &HybridRNGoogleMapsPlusViewSpec::getBuildingEnabled);
18
20
  prototype.registerHybridSetter("buildingEnabled", &HybridRNGoogleMapsPlusViewSpec::setBuildingEnabled);
19
21
  prototype.registerHybridGetter("trafficEnabled", &HybridRNGoogleMapsPlusViewSpec::getTrafficEnabled);
20
22
  prototype.registerHybridSetter("trafficEnabled", &HybridRNGoogleMapsPlusViewSpec::setTrafficEnabled);
21
23
  prototype.registerHybridGetter("customMapStyle", &HybridRNGoogleMapsPlusViewSpec::getCustomMapStyle);
22
24
  prototype.registerHybridSetter("customMapStyle", &HybridRNGoogleMapsPlusViewSpec::setCustomMapStyle);
23
- prototype.registerHybridGetter("initialCamera", &HybridRNGoogleMapsPlusViewSpec::getInitialCamera);
24
- prototype.registerHybridSetter("initialCamera", &HybridRNGoogleMapsPlusViewSpec::setInitialCamera);
25
25
  prototype.registerHybridGetter("userInterfaceStyle", &HybridRNGoogleMapsPlusViewSpec::getUserInterfaceStyle);
26
26
  prototype.registerHybridSetter("userInterfaceStyle", &HybridRNGoogleMapsPlusViewSpec::setUserInterfaceStyle);
27
27
  prototype.registerHybridGetter("minZoomLevel", &HybridRNGoogleMapsPlusViewSpec::getMinZoomLevel);
@@ -30,12 +30,16 @@ namespace margelo::nitro::rngooglemapsplus {
30
30
  prototype.registerHybridSetter("maxZoomLevel", &HybridRNGoogleMapsPlusViewSpec::setMaxZoomLevel);
31
31
  prototype.registerHybridGetter("mapPadding", &HybridRNGoogleMapsPlusViewSpec::getMapPadding);
32
32
  prototype.registerHybridSetter("mapPadding", &HybridRNGoogleMapsPlusViewSpec::setMapPadding);
33
+ prototype.registerHybridGetter("mapType", &HybridRNGoogleMapsPlusViewSpec::getMapType);
34
+ prototype.registerHybridSetter("mapType", &HybridRNGoogleMapsPlusViewSpec::setMapType);
33
35
  prototype.registerHybridGetter("markers", &HybridRNGoogleMapsPlusViewSpec::getMarkers);
34
36
  prototype.registerHybridSetter("markers", &HybridRNGoogleMapsPlusViewSpec::setMarkers);
35
37
  prototype.registerHybridGetter("polygons", &HybridRNGoogleMapsPlusViewSpec::getPolygons);
36
38
  prototype.registerHybridSetter("polygons", &HybridRNGoogleMapsPlusViewSpec::setPolygons);
37
39
  prototype.registerHybridGetter("polylines", &HybridRNGoogleMapsPlusViewSpec::getPolylines);
38
40
  prototype.registerHybridSetter("polylines", &HybridRNGoogleMapsPlusViewSpec::setPolylines);
41
+ prototype.registerHybridGetter("circles", &HybridRNGoogleMapsPlusViewSpec::getCircles);
42
+ prototype.registerHybridSetter("circles", &HybridRNGoogleMapsPlusViewSpec::setCircles);
39
43
  prototype.registerHybridGetter("onMapError", &HybridRNGoogleMapsPlusViewSpec::getOnMapError);
40
44
  prototype.registerHybridSetter("onMapError", &HybridRNGoogleMapsPlusViewSpec::setOnMapError);
41
45
  prototype.registerHybridGetter("onMapReady", &HybridRNGoogleMapsPlusViewSpec::getOnMapReady);
@@ -48,6 +52,12 @@ namespace margelo::nitro::rngooglemapsplus {
48
52
  prototype.registerHybridSetter("onMapPress", &HybridRNGoogleMapsPlusViewSpec::setOnMapPress);
49
53
  prototype.registerHybridGetter("onMarkerPress", &HybridRNGoogleMapsPlusViewSpec::getOnMarkerPress);
50
54
  prototype.registerHybridSetter("onMarkerPress", &HybridRNGoogleMapsPlusViewSpec::setOnMarkerPress);
55
+ prototype.registerHybridGetter("onPolylinePress", &HybridRNGoogleMapsPlusViewSpec::getOnPolylinePress);
56
+ prototype.registerHybridSetter("onPolylinePress", &HybridRNGoogleMapsPlusViewSpec::setOnPolylinePress);
57
+ prototype.registerHybridGetter("onPolygonPress", &HybridRNGoogleMapsPlusViewSpec::getOnPolygonPress);
58
+ prototype.registerHybridSetter("onPolygonPress", &HybridRNGoogleMapsPlusViewSpec::setOnPolygonPress);
59
+ prototype.registerHybridGetter("onCirclePress", &HybridRNGoogleMapsPlusViewSpec::getOnCirclePress);
60
+ prototype.registerHybridSetter("onCirclePress", &HybridRNGoogleMapsPlusViewSpec::setOnCirclePress);
51
61
  prototype.registerHybridGetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart);
52
62
  prototype.registerHybridSetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeStart);
53
63
  prototype.registerHybridGetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChange);