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

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 (58) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +57 -8
  2. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +13 -3
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +29 -4
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/IndoorBuildingExtension.kt +33 -0
  5. package/ios/GoogleMapViewImpl.swift +61 -14
  6. package/ios/MapMarkerBuilder.swift +17 -8
  7. package/ios/RNGoogleMapsPlusView.swift +19 -4
  8. package/ios/extensions/IndoorBuilding+Extension.swift +33 -0
  9. package/lib/module/types.js.map +1 -1
  10. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +10 -5
  11. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  12. package/lib/typescript/src/types.d.ts +18 -0
  13. package/lib/typescript/src/types.d.ts.map +1 -1
  14. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +8 -2
  15. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +81 -0
  16. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +78 -0
  17. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +76 -0
  18. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +78 -0
  19. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +143 -37
  20. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +18 -8
  21. package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +86 -0
  22. package/nitrogen/generated/android/c++/JRNIndoorLevel.hpp +66 -0
  23. package/nitrogen/generated/android/c++/JRNMarker.hpp +24 -0
  24. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +20 -0
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +81 -0
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +81 -0
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__string.kt → Func_void_std__optional_std__string_.kt} +12 -12
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__optional_std__string__RNLatLng.kt +81 -0
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +82 -12
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +38 -0
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +38 -0
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +18 -0
  33. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +28 -4
  34. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +146 -18
  35. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +6 -0
  36. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +49 -8
  37. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +25 -0
  38. package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +47 -0
  39. package/nitrogen/generated/ios/swift/{Func_void_std__string.swift → Func_void_RNIndoorLevel.swift} +11 -11
  40. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +54 -0
  41. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +54 -0
  42. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +9 -4
  43. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +250 -48
  44. package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +116 -0
  45. package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +118 -0
  46. package/nitrogen/generated/ios/swift/RNMarker.swift +153 -1
  47. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +10 -0
  48. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +24 -8
  49. package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +82 -0
  50. package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +80 -0
  51. package/nitrogen/generated/shared/c++/RNMarker.hpp +25 -1
  52. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +68 -8
  53. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +11 -4
  54. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +5 -0
  55. package/package.json +1 -1
  56. package/src/RNGoogleMapsPlusView.nitro.ts +11 -4
  57. package/src/types.ts +20 -0
  58. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +0 -75
@@ -0,0 +1,116 @@
1
+ ///
2
+ /// RNIndoorBuilding.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 `RNIndoorBuilding`, backed by a C++ struct.
12
+ */
13
+ public typealias RNIndoorBuilding = margelo.nitro.rngooglemapsplus.RNIndoorBuilding
14
+
15
+ public extension RNIndoorBuilding {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNIndoorBuilding`.
20
+ */
21
+ init(activeLevelIndex: Double?, defaultLevelIndex: Double?, levels: [RNIndoorLevel], underground: Bool?) {
22
+ self.init({ () -> bridge.std__optional_double_ in
23
+ if let __unwrappedValue = activeLevelIndex {
24
+ return bridge.create_std__optional_double_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_double_ in
29
+ if let __unwrappedValue = defaultLevelIndex {
30
+ return bridge.create_std__optional_double_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__vector_RNIndoorLevel_ in
35
+ var __vector = bridge.create_std__vector_RNIndoorLevel_(levels.count)
36
+ for __item in levels {
37
+ __vector.push_back(__item)
38
+ }
39
+ return __vector
40
+ }(), { () -> bridge.std__optional_bool_ in
41
+ if let __unwrappedValue = underground {
42
+ return bridge.create_std__optional_bool_(__unwrappedValue)
43
+ } else {
44
+ return .init()
45
+ }
46
+ }())
47
+ }
48
+
49
+ var activeLevelIndex: Double? {
50
+ @inline(__always)
51
+ get {
52
+ return self.__activeLevelIndex.value
53
+ }
54
+ @inline(__always)
55
+ set {
56
+ self.__activeLevelIndex = { () -> bridge.std__optional_double_ in
57
+ if let __unwrappedValue = newValue {
58
+ return bridge.create_std__optional_double_(__unwrappedValue)
59
+ } else {
60
+ return .init()
61
+ }
62
+ }()
63
+ }
64
+ }
65
+
66
+ var defaultLevelIndex: Double? {
67
+ @inline(__always)
68
+ get {
69
+ return self.__defaultLevelIndex.value
70
+ }
71
+ @inline(__always)
72
+ set {
73
+ self.__defaultLevelIndex = { () -> bridge.std__optional_double_ in
74
+ if let __unwrappedValue = newValue {
75
+ return bridge.create_std__optional_double_(__unwrappedValue)
76
+ } else {
77
+ return .init()
78
+ }
79
+ }()
80
+ }
81
+ }
82
+
83
+ var levels: [RNIndoorLevel] {
84
+ @inline(__always)
85
+ get {
86
+ return self.__levels.map({ __item in __item })
87
+ }
88
+ @inline(__always)
89
+ set {
90
+ self.__levels = { () -> bridge.std__vector_RNIndoorLevel_ in
91
+ var __vector = bridge.create_std__vector_RNIndoorLevel_(newValue.count)
92
+ for __item in newValue {
93
+ __vector.push_back(__item)
94
+ }
95
+ return __vector
96
+ }()
97
+ }
98
+ }
99
+
100
+ var underground: Bool? {
101
+ @inline(__always)
102
+ get {
103
+ return self.__underground.value
104
+ }
105
+ @inline(__always)
106
+ set {
107
+ self.__underground = { () -> bridge.std__optional_bool_ in
108
+ if let __unwrappedValue = newValue {
109
+ return bridge.create_std__optional_bool_(__unwrappedValue)
110
+ } else {
111
+ return .init()
112
+ }
113
+ }()
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,118 @@
1
+ ///
2
+ /// RNIndoorLevel.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 `RNIndoorLevel`, backed by a C++ struct.
12
+ */
13
+ public typealias RNIndoorLevel = margelo.nitro.rngooglemapsplus.RNIndoorLevel
14
+
15
+ public extension RNIndoorLevel {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNIndoorLevel`.
20
+ */
21
+ init(index: Double, name: String?, shortName: String?, active: Bool?) {
22
+ self.init(index, { () -> bridge.std__optional_std__string_ in
23
+ if let __unwrappedValue = name {
24
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_std__string_ in
29
+ if let __unwrappedValue = shortName {
30
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__optional_bool_ in
35
+ if let __unwrappedValue = active {
36
+ return bridge.create_std__optional_bool_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
40
+ }())
41
+ }
42
+
43
+ var index: Double {
44
+ @inline(__always)
45
+ get {
46
+ return self.__index
47
+ }
48
+ @inline(__always)
49
+ set {
50
+ self.__index = newValue
51
+ }
52
+ }
53
+
54
+ var name: String? {
55
+ @inline(__always)
56
+ get {
57
+ return { () -> String? in
58
+ if bridge.has_value_std__optional_std__string_(self.__name) {
59
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__name)
60
+ return String(__unwrapped)
61
+ } else {
62
+ return nil
63
+ }
64
+ }()
65
+ }
66
+ @inline(__always)
67
+ set {
68
+ self.__name = { () -> bridge.std__optional_std__string_ in
69
+ if let __unwrappedValue = newValue {
70
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
71
+ } else {
72
+ return .init()
73
+ }
74
+ }()
75
+ }
76
+ }
77
+
78
+ var shortName: String? {
79
+ @inline(__always)
80
+ get {
81
+ return { () -> String? in
82
+ if bridge.has_value_std__optional_std__string_(self.__shortName) {
83
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__shortName)
84
+ return String(__unwrapped)
85
+ } else {
86
+ return nil
87
+ }
88
+ }()
89
+ }
90
+ @inline(__always)
91
+ set {
92
+ self.__shortName = { () -> bridge.std__optional_std__string_ in
93
+ if let __unwrappedValue = newValue {
94
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
95
+ } else {
96
+ return .init()
97
+ }
98
+ }()
99
+ }
100
+ }
101
+
102
+ var active: Bool? {
103
+ @inline(__always)
104
+ get {
105
+ return self.__active.value
106
+ }
107
+ @inline(__always)
108
+ set {
109
+ self.__active = { () -> bridge.std__optional_bool_ in
110
+ if let __unwrappedValue = newValue {
111
+ return bridge.create_std__optional_bool_(__unwrappedValue)
112
+ } else {
113
+ return .init()
114
+ }
115
+ }()
116
+ }
117
+ }
118
+ }
@@ -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?, iconSvg: RNMarkerSvg?) {
21
+ init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, iconSvg: 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)
@@ -31,6 +31,42 @@ public extension RNMarker {
31
31
  } else {
32
32
  return .init()
33
33
  }
34
+ }(), { () -> bridge.std__optional_bool_ in
35
+ if let __unwrappedValue = showInfoWindow {
36
+ return bridge.create_std__optional_bool_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
40
+ }(), { () -> bridge.std__optional_std__string_ in
41
+ if let __unwrappedValue = title {
42
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
43
+ } else {
44
+ return .init()
45
+ }
46
+ }(), { () -> bridge.std__optional_std__string_ in
47
+ if let __unwrappedValue = snippet {
48
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
49
+ } else {
50
+ return .init()
51
+ }
52
+ }(), { () -> bridge.std__optional_double_ in
53
+ if let __unwrappedValue = opacity {
54
+ return bridge.create_std__optional_double_(__unwrappedValue)
55
+ } else {
56
+ return .init()
57
+ }
58
+ }(), { () -> bridge.std__optional_bool_ in
59
+ if let __unwrappedValue = flat {
60
+ return bridge.create_std__optional_bool_(__unwrappedValue)
61
+ } else {
62
+ return .init()
63
+ }
64
+ }(), { () -> bridge.std__optional_bool_ in
65
+ if let __unwrappedValue = draggable {
66
+ return bridge.create_std__optional_bool_(__unwrappedValue)
67
+ } else {
68
+ return .init()
69
+ }
34
70
  }(), { () -> bridge.std__optional_RNMarkerSvg_ in
35
71
  if let __unwrappedValue = iconSvg {
36
72
  return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
@@ -103,6 +139,122 @@ public extension RNMarker {
103
139
  }
104
140
  }
105
141
 
142
+ var showInfoWindow: Bool? {
143
+ @inline(__always)
144
+ get {
145
+ return self.__showInfoWindow.value
146
+ }
147
+ @inline(__always)
148
+ set {
149
+ self.__showInfoWindow = { () -> bridge.std__optional_bool_ in
150
+ if let __unwrappedValue = newValue {
151
+ return bridge.create_std__optional_bool_(__unwrappedValue)
152
+ } else {
153
+ return .init()
154
+ }
155
+ }()
156
+ }
157
+ }
158
+
159
+ var title: String? {
160
+ @inline(__always)
161
+ get {
162
+ return { () -> String? in
163
+ if bridge.has_value_std__optional_std__string_(self.__title) {
164
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__title)
165
+ return String(__unwrapped)
166
+ } else {
167
+ return nil
168
+ }
169
+ }()
170
+ }
171
+ @inline(__always)
172
+ set {
173
+ self.__title = { () -> bridge.std__optional_std__string_ in
174
+ if let __unwrappedValue = newValue {
175
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
176
+ } else {
177
+ return .init()
178
+ }
179
+ }()
180
+ }
181
+ }
182
+
183
+ var snippet: String? {
184
+ @inline(__always)
185
+ get {
186
+ return { () -> String? in
187
+ if bridge.has_value_std__optional_std__string_(self.__snippet) {
188
+ let __unwrapped = bridge.get_std__optional_std__string_(self.__snippet)
189
+ return String(__unwrapped)
190
+ } else {
191
+ return nil
192
+ }
193
+ }()
194
+ }
195
+ @inline(__always)
196
+ set {
197
+ self.__snippet = { () -> bridge.std__optional_std__string_ in
198
+ if let __unwrappedValue = newValue {
199
+ return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
200
+ } else {
201
+ return .init()
202
+ }
203
+ }()
204
+ }
205
+ }
206
+
207
+ var opacity: Double? {
208
+ @inline(__always)
209
+ get {
210
+ return self.__opacity.value
211
+ }
212
+ @inline(__always)
213
+ set {
214
+ self.__opacity = { () -> bridge.std__optional_double_ in
215
+ if let __unwrappedValue = newValue {
216
+ return bridge.create_std__optional_double_(__unwrappedValue)
217
+ } else {
218
+ return .init()
219
+ }
220
+ }()
221
+ }
222
+ }
223
+
224
+ var flat: Bool? {
225
+ @inline(__always)
226
+ get {
227
+ return self.__flat.value
228
+ }
229
+ @inline(__always)
230
+ set {
231
+ self.__flat = { () -> bridge.std__optional_bool_ in
232
+ if let __unwrappedValue = newValue {
233
+ return bridge.create_std__optional_bool_(__unwrappedValue)
234
+ } else {
235
+ return .init()
236
+ }
237
+ }()
238
+ }
239
+ }
240
+
241
+ var draggable: Bool? {
242
+ @inline(__always)
243
+ get {
244
+ return self.__draggable.value
245
+ }
246
+ @inline(__always)
247
+ set {
248
+ self.__draggable = { () -> bridge.std__optional_bool_ in
249
+ if let __unwrappedValue = newValue {
250
+ return bridge.create_std__optional_bool_(__unwrappedValue)
251
+ } else {
252
+ return .init()
253
+ }
254
+ }()
255
+ }
256
+ }
257
+
106
258
  var iconSvg: RNMarkerSvg? {
107
259
  @inline(__always)
108
260
  get {
@@ -68,6 +68,16 @@ namespace margelo::nitro::rngooglemapsplus {
68
68
  prototype.registerHybridSetter("onPolygonPress", &HybridRNGoogleMapsPlusViewSpec::setOnPolygonPress);
69
69
  prototype.registerHybridGetter("onCirclePress", &HybridRNGoogleMapsPlusViewSpec::getOnCirclePress);
70
70
  prototype.registerHybridSetter("onCirclePress", &HybridRNGoogleMapsPlusViewSpec::setOnCirclePress);
71
+ prototype.registerHybridGetter("onMarkerDragStart", &HybridRNGoogleMapsPlusViewSpec::getOnMarkerDragStart);
72
+ prototype.registerHybridSetter("onMarkerDragStart", &HybridRNGoogleMapsPlusViewSpec::setOnMarkerDragStart);
73
+ prototype.registerHybridGetter("onMarkerDrag", &HybridRNGoogleMapsPlusViewSpec::getOnMarkerDrag);
74
+ prototype.registerHybridSetter("onMarkerDrag", &HybridRNGoogleMapsPlusViewSpec::setOnMarkerDrag);
75
+ prototype.registerHybridGetter("onMarkerDragEnd", &HybridRNGoogleMapsPlusViewSpec::getOnMarkerDragEnd);
76
+ prototype.registerHybridSetter("onMarkerDragEnd", &HybridRNGoogleMapsPlusViewSpec::setOnMarkerDragEnd);
77
+ prototype.registerHybridGetter("onIndoorBuildingFocused", &HybridRNGoogleMapsPlusViewSpec::getOnIndoorBuildingFocused);
78
+ prototype.registerHybridSetter("onIndoorBuildingFocused", &HybridRNGoogleMapsPlusViewSpec::setOnIndoorBuildingFocused);
79
+ prototype.registerHybridGetter("onIndoorLevelActivated", &HybridRNGoogleMapsPlusViewSpec::getOnIndoorLevelActivated);
80
+ prototype.registerHybridSetter("onIndoorLevelActivated", &HybridRNGoogleMapsPlusViewSpec::setOnIndoorLevelActivated);
71
81
  prototype.registerHybridGetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart);
72
82
  prototype.registerHybridSetter("onCameraChangeStart", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeStart);
73
83
  prototype.registerHybridGetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChange);
@@ -47,6 +47,10 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
47
47
  namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
48
48
  // Forward declaration of `RNLatLng` to properly resolve imports.
49
49
  namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
50
+ // Forward declaration of `RNIndoorBuilding` to properly resolve imports.
51
+ namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
52
+ // Forward declaration of `RNIndoorLevel` to properly resolve imports.
53
+ namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
50
54
  // Forward declaration of `RNRegion` to properly resolve imports.
51
55
  namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
52
56
  // Forward declaration of `RNCamera` to properly resolve imports.
@@ -75,6 +79,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult;
75
79
  #include "RNLocation.hpp"
76
80
  #include "RNLocationErrorCode.hpp"
77
81
  #include "RNLatLng.hpp"
82
+ #include "RNIndoorBuilding.hpp"
83
+ #include "RNIndoorLevel.hpp"
78
84
  #include "RNRegion.hpp"
79
85
  #include "RNCamera.hpp"
80
86
  #include "RNLocationPermissionResult.hpp"
@@ -153,14 +159,24 @@ namespace margelo::nitro::rngooglemapsplus {
153
159
  virtual void setOnLocationError(const std::optional<std::function<void(RNLocationErrorCode /* error */)>>& onLocationError) = 0;
154
160
  virtual std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapPress() = 0;
155
161
  virtual void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) = 0;
156
- virtual std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() = 0;
157
- virtual void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) = 0;
158
- virtual std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() = 0;
159
- virtual void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) = 0;
160
- virtual std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() = 0;
161
- virtual void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) = 0;
162
- virtual std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() = 0;
163
- virtual void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) = 0;
162
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnMarkerPress() = 0;
163
+ virtual void setOnMarkerPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onMarkerPress) = 0;
164
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolylinePress() = 0;
165
+ virtual void setOnPolylinePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolylinePress) = 0;
166
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolygonPress() = 0;
167
+ virtual void setOnPolygonPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolygonPress) = 0;
168
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnCirclePress() = 0;
169
+ virtual void setOnCirclePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onCirclePress) = 0;
170
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() = 0;
171
+ virtual void setOnMarkerDragStart(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) = 0;
172
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() = 0;
173
+ virtual void setOnMarkerDrag(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) = 0;
174
+ virtual std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() = 0;
175
+ virtual void setOnMarkerDragEnd(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) = 0;
176
+ virtual std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() = 0;
177
+ virtual void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& onIndoorBuildingFocused) = 0;
178
+ virtual std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> getOnIndoorLevelActivated() = 0;
179
+ virtual void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) = 0;
164
180
  virtual std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() = 0;
165
181
  virtual void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) = 0;
166
182
  virtual std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChange() = 0;
@@ -0,0 +1,82 @@
1
+ ///
2
+ /// RNIndoorBuilding.hpp
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
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ // Forward declaration of `RNIndoorLevel` to properly resolve imports.
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
23
+
24
+ #include <optional>
25
+ #include "RNIndoorLevel.hpp"
26
+ #include <vector>
27
+
28
+ namespace margelo::nitro::rngooglemapsplus {
29
+
30
+ /**
31
+ * A struct which can be represented as a JavaScript object (RNIndoorBuilding).
32
+ */
33
+ struct RNIndoorBuilding {
34
+ public:
35
+ std::optional<double> activeLevelIndex SWIFT_PRIVATE;
36
+ std::optional<double> defaultLevelIndex SWIFT_PRIVATE;
37
+ std::vector<RNIndoorLevel> levels SWIFT_PRIVATE;
38
+ std::optional<bool> underground SWIFT_PRIVATE;
39
+
40
+ public:
41
+ RNIndoorBuilding() = default;
42
+ explicit RNIndoorBuilding(std::optional<double> activeLevelIndex, std::optional<double> defaultLevelIndex, std::vector<RNIndoorLevel> levels, std::optional<bool> underground): activeLevelIndex(activeLevelIndex), defaultLevelIndex(defaultLevelIndex), levels(levels), underground(underground) {}
43
+ };
44
+
45
+ } // namespace margelo::nitro::rngooglemapsplus
46
+
47
+ namespace margelo::nitro {
48
+
49
+ // C++ RNIndoorBuilding <> JS RNIndoorBuilding (object)
50
+ template <>
51
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIndoorBuilding> final {
52
+ static inline margelo::nitro::rngooglemapsplus::RNIndoorBuilding fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
+ jsi::Object obj = arg.asObject(runtime);
54
+ return margelo::nitro::rngooglemapsplus::RNIndoorBuilding(
55
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "activeLevelIndex")),
56
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "defaultLevelIndex")),
57
+ JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNIndoorLevel>>::fromJSI(runtime, obj.getProperty(runtime, "levels")),
58
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "underground"))
59
+ );
60
+ }
61
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNIndoorBuilding& arg) {
62
+ jsi::Object obj(runtime);
63
+ obj.setProperty(runtime, "activeLevelIndex", JSIConverter<std::optional<double>>::toJSI(runtime, arg.activeLevelIndex));
64
+ obj.setProperty(runtime, "defaultLevelIndex", JSIConverter<std::optional<double>>::toJSI(runtime, arg.defaultLevelIndex));
65
+ obj.setProperty(runtime, "levels", JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNIndoorLevel>>::toJSI(runtime, arg.levels));
66
+ obj.setProperty(runtime, "underground", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.underground));
67
+ return obj;
68
+ }
69
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
70
+ if (!value.isObject()) {
71
+ return false;
72
+ }
73
+ jsi::Object obj = value.getObject(runtime);
74
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "activeLevelIndex"))) return false;
75
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "defaultLevelIndex"))) return false;
76
+ if (!JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNIndoorLevel>>::canConvert(runtime, obj.getProperty(runtime, "levels"))) return false;
77
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "underground"))) return false;
78
+ return true;
79
+ }
80
+ };
81
+
82
+ } // namespace margelo::nitro
@@ -0,0 +1,80 @@
1
+ ///
2
+ /// RNIndoorLevel.hpp
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
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+
22
+
23
+ #include <string>
24
+ #include <optional>
25
+
26
+ namespace margelo::nitro::rngooglemapsplus {
27
+
28
+ /**
29
+ * A struct which can be represented as a JavaScript object (RNIndoorLevel).
30
+ */
31
+ struct RNIndoorLevel {
32
+ public:
33
+ double index SWIFT_PRIVATE;
34
+ std::optional<std::string> name SWIFT_PRIVATE;
35
+ std::optional<std::string> shortName SWIFT_PRIVATE;
36
+ std::optional<bool> active SWIFT_PRIVATE;
37
+
38
+ public:
39
+ RNIndoorLevel() = default;
40
+ explicit RNIndoorLevel(double index, std::optional<std::string> name, std::optional<std::string> shortName, std::optional<bool> active): index(index), name(name), shortName(shortName), active(active) {}
41
+ };
42
+
43
+ } // namespace margelo::nitro::rngooglemapsplus
44
+
45
+ namespace margelo::nitro {
46
+
47
+ // C++ RNIndoorLevel <> JS RNIndoorLevel (object)
48
+ template <>
49
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIndoorLevel> final {
50
+ static inline margelo::nitro::rngooglemapsplus::RNIndoorLevel fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
+ jsi::Object obj = arg.asObject(runtime);
52
+ return margelo::nitro::rngooglemapsplus::RNIndoorLevel(
53
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "index")),
54
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "name")),
55
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "shortName")),
56
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "active"))
57
+ );
58
+ }
59
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNIndoorLevel& arg) {
60
+ jsi::Object obj(runtime);
61
+ obj.setProperty(runtime, "index", JSIConverter<double>::toJSI(runtime, arg.index));
62
+ obj.setProperty(runtime, "name", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.name));
63
+ obj.setProperty(runtime, "shortName", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.shortName));
64
+ obj.setProperty(runtime, "active", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.active));
65
+ return obj;
66
+ }
67
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
68
+ if (!value.isObject()) {
69
+ return false;
70
+ }
71
+ jsi::Object obj = value.getObject(runtime);
72
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "index"))) return false;
73
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "name"))) return false;
74
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "shortName"))) return false;
75
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "active"))) return false;
76
+ return true;
77
+ }
78
+ };
79
+
80
+ } // namespace margelo::nitro