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.
- package/README.md +127 -11
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +239 -112
- package/android/src/main/java/com/rngooglemapsplus/MapCircle.kt +29 -0
- package/android/src/main/java/com/rngooglemapsplus/MapMarker.kt +6 -5
- package/android/src/main/java/com/rngooglemapsplus/MapPolygon.kt +3 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolyline.kt +3 -1
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +115 -88
- package/ios/Color.swift +20 -20
- package/ios/GoogleMapViewImpl.swift +194 -139
- package/ios/MapCircle.swift +43 -0
- package/ios/MapMarker.swift +10 -17
- package/ios/MapPolygon.swift +9 -6
- package/ios/MapPolyline.swift +9 -7
- package/ios/PermissionHandler.swift +1 -1
- package/ios/RNGoogleMapsPlusModule.swift +1 -1
- package/ios/RNGoogleMapsPlusView.swift +148 -105
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +17 -12
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +21 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +173 -69
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +32 -22
- package/nitrogen/generated/android/c++/JRNCircle.hpp +84 -0
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +66 -0
- package/nitrogen/generated/android/c++/JRNMapType.hpp +68 -0
- package/nitrogen/generated/android/c++/JRNMarker.hpp +4 -4
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +8 -4
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +8 -4
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +24 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +65 -11
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapType.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +4 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +4 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +7 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +188 -45
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +85 -37
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +41 -16
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +16 -11
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +296 -45
- package/nitrogen/generated/ios/swift/RNCircle.swift +198 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +107 -0
- package/nitrogen/generated/ios/swift/RNMapType.swift +52 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +17 -5
- package/nitrogen/generated/ios/swift/RNPolygon.swift +40 -5
- package/nitrogen/generated/ios/swift/RNPolyline.swift +40 -5
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +12 -2
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +45 -26
- package/nitrogen/generated/shared/c++/RNCircle.hpp +98 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +78 -0
- package/nitrogen/generated/shared/c++/RNMapType.hpp +88 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -6
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +10 -6
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +92 -32
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +21 -13
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +6 -1
- package/package.json +5 -5
- package/src/RNGoogleMapsPlusView.nitro.ts +19 -11
- package/src/types.ts +24 -3
|
@@ -16,8 +16,12 @@ namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusViewSpe
|
|
|
16
16
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
17
17
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
19
|
+
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
19
21
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
20
22
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
23
|
+
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
21
25
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
26
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
23
27
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
@@ -34,6 +38,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
|
34
38
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
35
39
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
36
40
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
41
|
+
// Forward declaration of `RNMapType` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
37
43
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
38
44
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
39
45
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
@@ -44,6 +50,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
|
44
50
|
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
45
51
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
46
52
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
53
|
+
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
47
55
|
|
|
48
56
|
// Forward declarations of Swift defined types
|
|
49
57
|
// Forward declaration of `HybridRNGoogleMapsPlusModuleSpec_cxx` to properly resolve imports.
|
|
@@ -56,7 +64,9 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
56
64
|
#include "HybridRNGoogleMapsPlusViewSpec.hpp"
|
|
57
65
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
58
66
|
#include "RNCamera.hpp"
|
|
67
|
+
#include "RNCircle.hpp"
|
|
59
68
|
#include "RNIOSPermissionResult.hpp"
|
|
69
|
+
#include "RNInitialProps.hpp"
|
|
60
70
|
#include "RNLatLng.hpp"
|
|
61
71
|
#include "RNLineCapType.hpp"
|
|
62
72
|
#include "RNLineJoinType.hpp"
|
|
@@ -65,11 +75,13 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
65
75
|
#include "RNLocationPermissionResult.hpp"
|
|
66
76
|
#include "RNMapErrorCode.hpp"
|
|
67
77
|
#include "RNMapPadding.hpp"
|
|
78
|
+
#include "RNMapType.hpp"
|
|
68
79
|
#include "RNMarker.hpp"
|
|
69
80
|
#include "RNPolygon.hpp"
|
|
70
81
|
#include "RNPolyline.hpp"
|
|
71
82
|
#include "RNPosition.hpp"
|
|
72
83
|
#include "RNRegion.hpp"
|
|
84
|
+
#include "RNUserInterfaceStyle.hpp"
|
|
73
85
|
#include <NitroModules/Promise.hpp>
|
|
74
86
|
#include <NitroModules/PromiseHolder.hpp>
|
|
75
87
|
#include <NitroModules/Result.hpp>
|
|
@@ -211,6 +223,36 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
211
223
|
return Result<bool>::withError(error);
|
|
212
224
|
}
|
|
213
225
|
|
|
226
|
+
// pragma MARK: std::optional<std::string>
|
|
227
|
+
/**
|
|
228
|
+
* Specialized version of `std::optional<std::string>`.
|
|
229
|
+
*/
|
|
230
|
+
using std__optional_std__string_ = std::optional<std::string>;
|
|
231
|
+
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
|
|
232
|
+
return std::optional<std::string>(value);
|
|
233
|
+
}
|
|
234
|
+
inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
235
|
+
return optional.has_value();
|
|
236
|
+
}
|
|
237
|
+
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
238
|
+
return *optional;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// pragma MARK: std::optional<bool>
|
|
242
|
+
/**
|
|
243
|
+
* Specialized version of `std::optional<bool>`.
|
|
244
|
+
*/
|
|
245
|
+
using std__optional_bool_ = std::optional<bool>;
|
|
246
|
+
inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
|
|
247
|
+
return std::optional<bool>(value);
|
|
248
|
+
}
|
|
249
|
+
inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
250
|
+
return optional.has_value();
|
|
251
|
+
}
|
|
252
|
+
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
253
|
+
return *optional;
|
|
254
|
+
}
|
|
255
|
+
|
|
214
256
|
// pragma MARK: std::optional<RNLatLng>
|
|
215
257
|
/**
|
|
216
258
|
* Specialized version of `std::optional<RNLatLng>`.
|
|
@@ -241,6 +283,81 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
241
283
|
return *optional;
|
|
242
284
|
}
|
|
243
285
|
|
|
286
|
+
// pragma MARK: std::optional<RNCamera>
|
|
287
|
+
/**
|
|
288
|
+
* Specialized version of `std::optional<RNCamera>`.
|
|
289
|
+
*/
|
|
290
|
+
using std__optional_RNCamera_ = std::optional<RNCamera>;
|
|
291
|
+
inline std::optional<RNCamera> create_std__optional_RNCamera_(const RNCamera& value) noexcept {
|
|
292
|
+
return std::optional<RNCamera>(value);
|
|
293
|
+
}
|
|
294
|
+
inline bool has_value_std__optional_RNCamera_(const std::optional<RNCamera>& optional) noexcept {
|
|
295
|
+
return optional.has_value();
|
|
296
|
+
}
|
|
297
|
+
inline RNCamera get_std__optional_RNCamera_(const std::optional<RNCamera>& optional) noexcept {
|
|
298
|
+
return *optional;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// pragma MARK: std::optional<RNInitialProps>
|
|
302
|
+
/**
|
|
303
|
+
* Specialized version of `std::optional<RNInitialProps>`.
|
|
304
|
+
*/
|
|
305
|
+
using std__optional_RNInitialProps_ = std::optional<RNInitialProps>;
|
|
306
|
+
inline std::optional<RNInitialProps> create_std__optional_RNInitialProps_(const RNInitialProps& value) noexcept {
|
|
307
|
+
return std::optional<RNInitialProps>(value);
|
|
308
|
+
}
|
|
309
|
+
inline bool has_value_std__optional_RNInitialProps_(const std::optional<RNInitialProps>& optional) noexcept {
|
|
310
|
+
return optional.has_value();
|
|
311
|
+
}
|
|
312
|
+
inline RNInitialProps get_std__optional_RNInitialProps_(const std::optional<RNInitialProps>& optional) noexcept {
|
|
313
|
+
return *optional;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// pragma MARK: std::optional<RNUserInterfaceStyle>
|
|
317
|
+
/**
|
|
318
|
+
* Specialized version of `std::optional<RNUserInterfaceStyle>`.
|
|
319
|
+
*/
|
|
320
|
+
using std__optional_RNUserInterfaceStyle_ = std::optional<RNUserInterfaceStyle>;
|
|
321
|
+
inline std::optional<RNUserInterfaceStyle> create_std__optional_RNUserInterfaceStyle_(const RNUserInterfaceStyle& value) noexcept {
|
|
322
|
+
return std::optional<RNUserInterfaceStyle>(value);
|
|
323
|
+
}
|
|
324
|
+
inline bool has_value_std__optional_RNUserInterfaceStyle_(const std::optional<RNUserInterfaceStyle>& optional) noexcept {
|
|
325
|
+
return optional.has_value();
|
|
326
|
+
}
|
|
327
|
+
inline RNUserInterfaceStyle get_std__optional_RNUserInterfaceStyle_(const std::optional<RNUserInterfaceStyle>& optional) noexcept {
|
|
328
|
+
return *optional;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// pragma MARK: std::optional<RNMapPadding>
|
|
332
|
+
/**
|
|
333
|
+
* Specialized version of `std::optional<RNMapPadding>`.
|
|
334
|
+
*/
|
|
335
|
+
using std__optional_RNMapPadding_ = std::optional<RNMapPadding>;
|
|
336
|
+
inline std::optional<RNMapPadding> create_std__optional_RNMapPadding_(const RNMapPadding& value) noexcept {
|
|
337
|
+
return std::optional<RNMapPadding>(value);
|
|
338
|
+
}
|
|
339
|
+
inline bool has_value_std__optional_RNMapPadding_(const std::optional<RNMapPadding>& optional) noexcept {
|
|
340
|
+
return optional.has_value();
|
|
341
|
+
}
|
|
342
|
+
inline RNMapPadding get_std__optional_RNMapPadding_(const std::optional<RNMapPadding>& optional) noexcept {
|
|
343
|
+
return *optional;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// pragma MARK: std::optional<RNMapType>
|
|
347
|
+
/**
|
|
348
|
+
* Specialized version of `std::optional<RNMapType>`.
|
|
349
|
+
*/
|
|
350
|
+
using std__optional_RNMapType_ = std::optional<RNMapType>;
|
|
351
|
+
inline std::optional<RNMapType> create_std__optional_RNMapType_(const RNMapType& value) noexcept {
|
|
352
|
+
return std::optional<RNMapType>(value);
|
|
353
|
+
}
|
|
354
|
+
inline bool has_value_std__optional_RNMapType_(const std::optional<RNMapType>& optional) noexcept {
|
|
355
|
+
return optional.has_value();
|
|
356
|
+
}
|
|
357
|
+
inline RNMapType get_std__optional_RNMapType_(const std::optional<RNMapType>& optional) noexcept {
|
|
358
|
+
return *optional;
|
|
359
|
+
}
|
|
360
|
+
|
|
244
361
|
// pragma MARK: std::optional<RNPosition>
|
|
245
362
|
/**
|
|
246
363
|
* Specialized version of `std::optional<RNPosition>`.
|
|
@@ -267,6 +384,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
267
384
|
return vector;
|
|
268
385
|
}
|
|
269
386
|
|
|
387
|
+
// pragma MARK: std::optional<std::vector<RNMarker>>
|
|
388
|
+
/**
|
|
389
|
+
* Specialized version of `std::optional<std::vector<RNMarker>>`.
|
|
390
|
+
*/
|
|
391
|
+
using std__optional_std__vector_RNMarker__ = std::optional<std::vector<RNMarker>>;
|
|
392
|
+
inline std::optional<std::vector<RNMarker>> create_std__optional_std__vector_RNMarker__(const std::vector<RNMarker>& value) noexcept {
|
|
393
|
+
return std::optional<std::vector<RNMarker>>(value);
|
|
394
|
+
}
|
|
395
|
+
inline bool has_value_std__optional_std__vector_RNMarker__(const std::optional<std::vector<RNMarker>>& optional) noexcept {
|
|
396
|
+
return optional.has_value();
|
|
397
|
+
}
|
|
398
|
+
inline std::vector<RNMarker> get_std__optional_std__vector_RNMarker__(const std::optional<std::vector<RNMarker>>& optional) noexcept {
|
|
399
|
+
return *optional;
|
|
400
|
+
}
|
|
401
|
+
|
|
270
402
|
// pragma MARK: std::vector<RNLatLng>
|
|
271
403
|
/**
|
|
272
404
|
* Specialized version of `std::vector<RNLatLng>`.
|
|
@@ -278,21 +410,6 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
278
410
|
return vector;
|
|
279
411
|
}
|
|
280
412
|
|
|
281
|
-
// pragma MARK: std::optional<std::string>
|
|
282
|
-
/**
|
|
283
|
-
* Specialized version of `std::optional<std::string>`.
|
|
284
|
-
*/
|
|
285
|
-
using std__optional_std__string_ = std::optional<std::string>;
|
|
286
|
-
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
|
|
287
|
-
return std::optional<std::string>(value);
|
|
288
|
-
}
|
|
289
|
-
inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
290
|
-
return optional.has_value();
|
|
291
|
-
}
|
|
292
|
-
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
293
|
-
return *optional;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
413
|
// pragma MARK: std::vector<RNPolygon>
|
|
297
414
|
/**
|
|
298
415
|
* Specialized version of `std::vector<RNPolygon>`.
|
|
@@ -304,6 +421,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
304
421
|
return vector;
|
|
305
422
|
}
|
|
306
423
|
|
|
424
|
+
// pragma MARK: std::optional<std::vector<RNPolygon>>
|
|
425
|
+
/**
|
|
426
|
+
* Specialized version of `std::optional<std::vector<RNPolygon>>`.
|
|
427
|
+
*/
|
|
428
|
+
using std__optional_std__vector_RNPolygon__ = std::optional<std::vector<RNPolygon>>;
|
|
429
|
+
inline std::optional<std::vector<RNPolygon>> create_std__optional_std__vector_RNPolygon__(const std::vector<RNPolygon>& value) noexcept {
|
|
430
|
+
return std::optional<std::vector<RNPolygon>>(value);
|
|
431
|
+
}
|
|
432
|
+
inline bool has_value_std__optional_std__vector_RNPolygon__(const std::optional<std::vector<RNPolygon>>& optional) noexcept {
|
|
433
|
+
return optional.has_value();
|
|
434
|
+
}
|
|
435
|
+
inline std::vector<RNPolygon> get_std__optional_std__vector_RNPolygon__(const std::optional<std::vector<RNPolygon>>& optional) noexcept {
|
|
436
|
+
return *optional;
|
|
437
|
+
}
|
|
438
|
+
|
|
307
439
|
// pragma MARK: std::optional<RNLineCapType>
|
|
308
440
|
/**
|
|
309
441
|
* Specialized version of `std::optional<RNLineCapType>`.
|
|
@@ -345,6 +477,47 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
345
477
|
return vector;
|
|
346
478
|
}
|
|
347
479
|
|
|
480
|
+
// pragma MARK: std::optional<std::vector<RNPolyline>>
|
|
481
|
+
/**
|
|
482
|
+
* Specialized version of `std::optional<std::vector<RNPolyline>>`.
|
|
483
|
+
*/
|
|
484
|
+
using std__optional_std__vector_RNPolyline__ = std::optional<std::vector<RNPolyline>>;
|
|
485
|
+
inline std::optional<std::vector<RNPolyline>> create_std__optional_std__vector_RNPolyline__(const std::vector<RNPolyline>& value) noexcept {
|
|
486
|
+
return std::optional<std::vector<RNPolyline>>(value);
|
|
487
|
+
}
|
|
488
|
+
inline bool has_value_std__optional_std__vector_RNPolyline__(const std::optional<std::vector<RNPolyline>>& optional) noexcept {
|
|
489
|
+
return optional.has_value();
|
|
490
|
+
}
|
|
491
|
+
inline std::vector<RNPolyline> get_std__optional_std__vector_RNPolyline__(const std::optional<std::vector<RNPolyline>>& optional) noexcept {
|
|
492
|
+
return *optional;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// pragma MARK: std::vector<RNCircle>
|
|
496
|
+
/**
|
|
497
|
+
* Specialized version of `std::vector<RNCircle>`.
|
|
498
|
+
*/
|
|
499
|
+
using std__vector_RNCircle_ = std::vector<RNCircle>;
|
|
500
|
+
inline std::vector<RNCircle> create_std__vector_RNCircle_(size_t size) noexcept {
|
|
501
|
+
std::vector<RNCircle> vector;
|
|
502
|
+
vector.reserve(size);
|
|
503
|
+
return vector;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// pragma MARK: std::optional<std::vector<RNCircle>>
|
|
507
|
+
/**
|
|
508
|
+
* Specialized version of `std::optional<std::vector<RNCircle>>`.
|
|
509
|
+
*/
|
|
510
|
+
using std__optional_std__vector_RNCircle__ = std::optional<std::vector<RNCircle>>;
|
|
511
|
+
inline std::optional<std::vector<RNCircle>> create_std__optional_std__vector_RNCircle__(const std::vector<RNCircle>& value) noexcept {
|
|
512
|
+
return std::optional<std::vector<RNCircle>>(value);
|
|
513
|
+
}
|
|
514
|
+
inline bool has_value_std__optional_std__vector_RNCircle__(const std::optional<std::vector<RNCircle>>& optional) noexcept {
|
|
515
|
+
return optional.has_value();
|
|
516
|
+
}
|
|
517
|
+
inline std::vector<RNCircle> get_std__optional_std__vector_RNCircle__(const std::optional<std::vector<RNCircle>>& optional) noexcept {
|
|
518
|
+
return *optional;
|
|
519
|
+
}
|
|
520
|
+
|
|
348
521
|
// pragma MARK: std::function<void(RNMapErrorCode /* error */)>
|
|
349
522
|
/**
|
|
350
523
|
* Specialized version of `std::function<void(RNMapErrorCode)>`.
|
|
@@ -604,36 +777,6 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
604
777
|
return *optional;
|
|
605
778
|
}
|
|
606
779
|
|
|
607
|
-
// pragma MARK: std::optional<bool>
|
|
608
|
-
/**
|
|
609
|
-
* Specialized version of `std::optional<bool>`.
|
|
610
|
-
*/
|
|
611
|
-
using std__optional_bool_ = std::optional<bool>;
|
|
612
|
-
inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
|
|
613
|
-
return std::optional<bool>(value);
|
|
614
|
-
}
|
|
615
|
-
inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
616
|
-
return optional.has_value();
|
|
617
|
-
}
|
|
618
|
-
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
619
|
-
return *optional;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
// pragma MARK: std::optional<RNMapPadding>
|
|
623
|
-
/**
|
|
624
|
-
* Specialized version of `std::optional<RNMapPadding>`.
|
|
625
|
-
*/
|
|
626
|
-
using std__optional_RNMapPadding_ = std::optional<RNMapPadding>;
|
|
627
|
-
inline std::optional<RNMapPadding> create_std__optional_RNMapPadding_(const RNMapPadding& value) noexcept {
|
|
628
|
-
return std::optional<RNMapPadding>(value);
|
|
629
|
-
}
|
|
630
|
-
inline bool has_value_std__optional_RNMapPadding_(const std::optional<RNMapPadding>& optional) noexcept {
|
|
631
|
-
return optional.has_value();
|
|
632
|
-
}
|
|
633
|
-
inline RNMapPadding get_std__optional_RNMapPadding_(const std::optional<RNMapPadding>& optional) noexcept {
|
|
634
|
-
return *optional;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
780
|
// pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
638
781
|
/**
|
|
639
782
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
@@ -16,8 +16,12 @@ namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusViewSpe
|
|
|
16
16
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
17
17
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
19
|
+
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
19
21
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
20
22
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
23
|
+
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
21
25
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
26
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
23
27
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
@@ -34,6 +38,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
|
34
38
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
35
39
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
36
40
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
41
|
+
// Forward declaration of `RNMapType` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
37
43
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
38
44
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
39
45
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
@@ -52,7 +58,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
52
58
|
#include "HybridRNGoogleMapsPlusViewSpec.hpp"
|
|
53
59
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
54
60
|
#include "RNCamera.hpp"
|
|
61
|
+
#include "RNCircle.hpp"
|
|
55
62
|
#include "RNIOSPermissionResult.hpp"
|
|
63
|
+
#include "RNInitialProps.hpp"
|
|
56
64
|
#include "RNLatLng.hpp"
|
|
57
65
|
#include "RNLineCapType.hpp"
|
|
58
66
|
#include "RNLineJoinType.hpp"
|
|
@@ -61,6 +69,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
61
69
|
#include "RNLocationPermissionResult.hpp"
|
|
62
70
|
#include "RNMapErrorCode.hpp"
|
|
63
71
|
#include "RNMapPadding.hpp"
|
|
72
|
+
#include "RNMapType.hpp"
|
|
64
73
|
#include "RNMarker.hpp"
|
|
65
74
|
#include "RNPolygon.hpp"
|
|
66
75
|
#include "RNPolyline.hpp"
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
// Forward declaration of `HybridRNGoogleMapsPlusViewSpec_cxx` to properly resolve imports.
|
|
13
13
|
namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
14
14
|
|
|
15
|
+
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
15
17
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
16
18
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
17
19
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
@@ -20,6 +22,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
|
20
22
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
21
23
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
22
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
25
|
+
// Forward declaration of `RNMapType` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
23
27
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
24
28
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
25
29
|
// Forward declaration of `RNPosition` to properly resolve imports.
|
|
@@ -32,6 +36,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
|
32
36
|
namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
|
|
33
37
|
// Forward declaration of `RNLineJoinType` to properly resolve imports.
|
|
34
38
|
namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
|
|
39
|
+
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
35
41
|
// Forward declaration of `RNMapErrorCode` to properly resolve imports.
|
|
36
42
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
37
43
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
@@ -47,12 +53,14 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermiss
|
|
|
47
53
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
48
54
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
49
55
|
|
|
56
|
+
#include "RNInitialProps.hpp"
|
|
57
|
+
#include <optional>
|
|
50
58
|
#include <string>
|
|
51
59
|
#include "RNCamera.hpp"
|
|
52
60
|
#include "RNLatLng.hpp"
|
|
53
|
-
#include <optional>
|
|
54
61
|
#include "RNUserInterfaceStyle.hpp"
|
|
55
62
|
#include "RNMapPadding.hpp"
|
|
63
|
+
#include "RNMapType.hpp"
|
|
56
64
|
#include "RNMarker.hpp"
|
|
57
65
|
#include <vector>
|
|
58
66
|
#include "RNPosition.hpp"
|
|
@@ -60,6 +68,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
60
68
|
#include "RNPolyline.hpp"
|
|
61
69
|
#include "RNLineCapType.hpp"
|
|
62
70
|
#include "RNLineJoinType.hpp"
|
|
71
|
+
#include "RNCircle.hpp"
|
|
63
72
|
#include "RNMapErrorCode.hpp"
|
|
64
73
|
#include <functional>
|
|
65
74
|
#include "RNLocation.hpp"
|
|
@@ -107,79 +116,97 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
107
116
|
|
|
108
117
|
public:
|
|
109
118
|
// Properties
|
|
110
|
-
inline
|
|
111
|
-
|
|
119
|
+
inline std::optional<RNInitialProps> getInitialProps() noexcept override {
|
|
120
|
+
auto __result = _swiftPart.getInitialProps();
|
|
121
|
+
return __result;
|
|
112
122
|
}
|
|
113
|
-
inline void
|
|
114
|
-
_swiftPart.
|
|
123
|
+
inline void setInitialProps(const std::optional<RNInitialProps>& initialProps) noexcept override {
|
|
124
|
+
_swiftPart.setInitialProps(initialProps);
|
|
115
125
|
}
|
|
116
|
-
inline bool
|
|
117
|
-
|
|
126
|
+
inline std::optional<bool> getBuildingEnabled() noexcept override {
|
|
127
|
+
auto __result = _swiftPart.getBuildingEnabled();
|
|
128
|
+
return __result;
|
|
118
129
|
}
|
|
119
|
-
inline void
|
|
120
|
-
_swiftPart.
|
|
130
|
+
inline void setBuildingEnabled(std::optional<bool> buildingEnabled) noexcept override {
|
|
131
|
+
_swiftPart.setBuildingEnabled(buildingEnabled);
|
|
121
132
|
}
|
|
122
|
-
inline std::
|
|
123
|
-
auto __result = _swiftPart.
|
|
133
|
+
inline std::optional<bool> getTrafficEnabled() noexcept override {
|
|
134
|
+
auto __result = _swiftPart.getTrafficEnabled();
|
|
124
135
|
return __result;
|
|
125
136
|
}
|
|
126
|
-
inline void
|
|
127
|
-
_swiftPart.
|
|
137
|
+
inline void setTrafficEnabled(std::optional<bool> trafficEnabled) noexcept override {
|
|
138
|
+
_swiftPart.setTrafficEnabled(trafficEnabled);
|
|
128
139
|
}
|
|
129
|
-
inline
|
|
130
|
-
auto __result = _swiftPart.
|
|
140
|
+
inline std::optional<std::string> getCustomMapStyle() noexcept override {
|
|
141
|
+
auto __result = _swiftPart.getCustomMapStyle();
|
|
131
142
|
return __result;
|
|
132
143
|
}
|
|
133
|
-
inline void
|
|
134
|
-
_swiftPart.
|
|
144
|
+
inline void setCustomMapStyle(const std::optional<std::string>& customMapStyle) noexcept override {
|
|
145
|
+
_swiftPart.setCustomMapStyle(customMapStyle);
|
|
135
146
|
}
|
|
136
|
-
inline RNUserInterfaceStyle getUserInterfaceStyle() noexcept override {
|
|
147
|
+
inline std::optional<RNUserInterfaceStyle> getUserInterfaceStyle() noexcept override {
|
|
137
148
|
auto __result = _swiftPart.getUserInterfaceStyle();
|
|
138
|
-
return
|
|
149
|
+
return __result;
|
|
139
150
|
}
|
|
140
|
-
inline void setUserInterfaceStyle(RNUserInterfaceStyle userInterfaceStyle) noexcept override {
|
|
141
|
-
_swiftPart.setUserInterfaceStyle(
|
|
151
|
+
inline void setUserInterfaceStyle(std::optional<RNUserInterfaceStyle> userInterfaceStyle) noexcept override {
|
|
152
|
+
_swiftPart.setUserInterfaceStyle(userInterfaceStyle);
|
|
142
153
|
}
|
|
143
|
-
inline double getMinZoomLevel() noexcept override {
|
|
144
|
-
|
|
154
|
+
inline std::optional<double> getMinZoomLevel() noexcept override {
|
|
155
|
+
auto __result = _swiftPart.getMinZoomLevel();
|
|
156
|
+
return __result;
|
|
145
157
|
}
|
|
146
|
-
inline void setMinZoomLevel(double minZoomLevel) noexcept override {
|
|
147
|
-
_swiftPart.setMinZoomLevel(
|
|
158
|
+
inline void setMinZoomLevel(std::optional<double> minZoomLevel) noexcept override {
|
|
159
|
+
_swiftPart.setMinZoomLevel(minZoomLevel);
|
|
148
160
|
}
|
|
149
|
-
inline double getMaxZoomLevel() noexcept override {
|
|
150
|
-
|
|
161
|
+
inline std::optional<double> getMaxZoomLevel() noexcept override {
|
|
162
|
+
auto __result = _swiftPart.getMaxZoomLevel();
|
|
163
|
+
return __result;
|
|
151
164
|
}
|
|
152
|
-
inline void setMaxZoomLevel(double maxZoomLevel) noexcept override {
|
|
153
|
-
_swiftPart.setMaxZoomLevel(
|
|
165
|
+
inline void setMaxZoomLevel(std::optional<double> maxZoomLevel) noexcept override {
|
|
166
|
+
_swiftPart.setMaxZoomLevel(maxZoomLevel);
|
|
154
167
|
}
|
|
155
|
-
inline RNMapPadding getMapPadding() noexcept override {
|
|
168
|
+
inline std::optional<RNMapPadding> getMapPadding() noexcept override {
|
|
156
169
|
auto __result = _swiftPart.getMapPadding();
|
|
157
170
|
return __result;
|
|
158
171
|
}
|
|
159
|
-
inline void setMapPadding(const RNMapPadding
|
|
172
|
+
inline void setMapPadding(const std::optional<RNMapPadding>& mapPadding) noexcept override {
|
|
160
173
|
_swiftPart.setMapPadding(mapPadding);
|
|
161
174
|
}
|
|
162
|
-
inline std::
|
|
175
|
+
inline std::optional<RNMapType> getMapType() noexcept override {
|
|
176
|
+
auto __result = _swiftPart.getMapType();
|
|
177
|
+
return __result;
|
|
178
|
+
}
|
|
179
|
+
inline void setMapType(std::optional<RNMapType> mapType) noexcept override {
|
|
180
|
+
_swiftPart.setMapType(mapType);
|
|
181
|
+
}
|
|
182
|
+
inline std::optional<std::vector<RNMarker>> getMarkers() noexcept override {
|
|
163
183
|
auto __result = _swiftPart.getMarkers();
|
|
164
184
|
return __result;
|
|
165
185
|
}
|
|
166
|
-
inline void setMarkers(const std::vector<RNMarker
|
|
186
|
+
inline void setMarkers(const std::optional<std::vector<RNMarker>>& markers) noexcept override {
|
|
167
187
|
_swiftPart.setMarkers(markers);
|
|
168
188
|
}
|
|
169
|
-
inline std::vector<RNPolygon
|
|
189
|
+
inline std::optional<std::vector<RNPolygon>> getPolygons() noexcept override {
|
|
170
190
|
auto __result = _swiftPart.getPolygons();
|
|
171
191
|
return __result;
|
|
172
192
|
}
|
|
173
|
-
inline void setPolygons(const std::vector<RNPolygon
|
|
193
|
+
inline void setPolygons(const std::optional<std::vector<RNPolygon>>& polygons) noexcept override {
|
|
174
194
|
_swiftPart.setPolygons(polygons);
|
|
175
195
|
}
|
|
176
|
-
inline std::vector<RNPolyline
|
|
196
|
+
inline std::optional<std::vector<RNPolyline>> getPolylines() noexcept override {
|
|
177
197
|
auto __result = _swiftPart.getPolylines();
|
|
178
198
|
return __result;
|
|
179
199
|
}
|
|
180
|
-
inline void setPolylines(const std::vector<RNPolyline
|
|
200
|
+
inline void setPolylines(const std::optional<std::vector<RNPolyline>>& polylines) noexcept override {
|
|
181
201
|
_swiftPart.setPolylines(polylines);
|
|
182
202
|
}
|
|
203
|
+
inline std::optional<std::vector<RNCircle>> getCircles() noexcept override {
|
|
204
|
+
auto __result = _swiftPart.getCircles();
|
|
205
|
+
return __result;
|
|
206
|
+
}
|
|
207
|
+
inline void setCircles(const std::optional<std::vector<RNCircle>>& circles) noexcept override {
|
|
208
|
+
_swiftPart.setCircles(circles);
|
|
209
|
+
}
|
|
183
210
|
inline std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() noexcept override {
|
|
184
211
|
auto __result = _swiftPart.getOnMapError();
|
|
185
212
|
return __result;
|
|
@@ -222,6 +249,27 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
222
249
|
inline void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) noexcept override {
|
|
223
250
|
_swiftPart.setOnMarkerPress(onMarkerPress);
|
|
224
251
|
}
|
|
252
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() noexcept override {
|
|
253
|
+
auto __result = _swiftPart.getOnPolylinePress();
|
|
254
|
+
return __result;
|
|
255
|
+
}
|
|
256
|
+
inline void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) noexcept override {
|
|
257
|
+
_swiftPart.setOnPolylinePress(onPolylinePress);
|
|
258
|
+
}
|
|
259
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() noexcept override {
|
|
260
|
+
auto __result = _swiftPart.getOnPolygonPress();
|
|
261
|
+
return __result;
|
|
262
|
+
}
|
|
263
|
+
inline void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) noexcept override {
|
|
264
|
+
_swiftPart.setOnPolygonPress(onPolygonPress);
|
|
265
|
+
}
|
|
266
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() noexcept override {
|
|
267
|
+
auto __result = _swiftPart.getOnCirclePress();
|
|
268
|
+
return __result;
|
|
269
|
+
}
|
|
270
|
+
inline void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) noexcept override {
|
|
271
|
+
_swiftPart.setOnCirclePress(onCirclePress);
|
|
272
|
+
}
|
|
225
273
|
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
|
|
226
274
|
auto __result = _swiftPart.getOnCameraChangeStart();
|
|
227
275
|
return __result;
|