react-native-google-maps-plus 1.1.0-dev.3 → 1.1.0-dev.4
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 +7 -5
- package/RNGoogleMapsPlus.podspec +2 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +54 -0
- package/android/src/main/java/com/rngooglemapsplus/MapHeatmapBuilder.kt +31 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +16 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNHeatmapPointExtension.kt +9 -0
- package/ios/GoogleMapViewImpl.swift +38 -4
- package/ios/MapHeatmapBuilder.swift +27 -0
- package/ios/RNGoogleMapsPlusView.swift +22 -0
- package/ios/extensions/RNHeatmap+Extension.swift +16 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +19 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +38 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -0
- package/nitrogen/generated/android/c++/JRNHeatmap.hpp +100 -0
- package/nitrogen/generated/android/c++/JRNHeatmapGradient.hpp +89 -0
- package/nitrogen/generated/android/c++/JRNHeatmapPoint.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +4 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +6 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +13 -13
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +116 -39
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +17 -1
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +5 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +110 -42
- package/nitrogen/generated/ios/swift/RNCamera.swift +8 -1
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +180 -0
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +81 -0
- package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +57 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +8 -1
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +16 -2
- package/nitrogen/generated/ios/swift/RNMarker.swift +16 -2
- package/nitrogen/generated/ios/swift/RNPolygon.swift +15 -11
- package/nitrogen/generated/ios/swift/RNPolyline.swift +15 -11
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +5 -0
- package/nitrogen/generated/shared/c++/RNHeatmap.hpp +98 -0
- package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +76 -0
- package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +75 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +12 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -0
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +1 -0
- package/package.json +2 -2
- package/src/RNGoogleMapsPlusView.nitro.ts +2 -0
- package/src/types.ts +22 -0
|
@@ -22,6 +22,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriorit
|
|
|
22
22
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
23
23
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
25
|
+
// Forward declaration of `RNHeatmapGradient` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
|
|
27
|
+
// Forward declaration of `RNHeatmapPoint` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
29
|
+
// Forward declaration of `RNHeatmap` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
|
|
25
31
|
// Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
|
|
26
32
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
27
33
|
// Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
|
|
@@ -83,6 +89,9 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
83
89
|
#include "RNAndroidLocationPriority.hpp"
|
|
84
90
|
#include "RNCamera.hpp"
|
|
85
91
|
#include "RNCircle.hpp"
|
|
92
|
+
#include "RNHeatmap.hpp"
|
|
93
|
+
#include "RNHeatmapGradient.hpp"
|
|
94
|
+
#include "RNHeatmapPoint.hpp"
|
|
86
95
|
#include "RNIOSLocationAccuracy.hpp"
|
|
87
96
|
#include "RNIOSLocationConfig.hpp"
|
|
88
97
|
#include "RNIOSPermissionResult.hpp"
|
|
@@ -106,7 +115,6 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
106
115
|
#include "RNPosition.hpp"
|
|
107
116
|
#include "RNRegion.hpp"
|
|
108
117
|
#include "RNUserInterfaceStyle.hpp"
|
|
109
|
-
#include <NitroModules/FastVectorCopy.hpp>
|
|
110
118
|
#include <NitroModules/Promise.hpp>
|
|
111
119
|
#include <NitroModules/PromiseHolder.hpp>
|
|
112
120
|
#include <NitroModules/Result.hpp>
|
|
@@ -182,7 +190,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
182
190
|
private:
|
|
183
191
|
std::unique_ptr<std::function<void(const RNLocationPermissionResult& /* result */)>> _function;
|
|
184
192
|
} SWIFT_NONCOPYABLE;
|
|
185
|
-
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void*
|
|
193
|
+
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
186
194
|
inline Func_void_RNLocationPermissionResult_Wrapper wrap_Func_void_RNLocationPermissionResult(Func_void_RNLocationPermissionResult value) noexcept {
|
|
187
195
|
return Func_void_RNLocationPermissionResult_Wrapper(std::move(value));
|
|
188
196
|
}
|
|
@@ -204,7 +212,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
204
212
|
private:
|
|
205
213
|
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
206
214
|
} SWIFT_NONCOPYABLE;
|
|
207
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void*
|
|
215
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
208
216
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
209
217
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
210
218
|
}
|
|
@@ -214,8 +222,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
214
222
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
|
|
215
223
|
*/
|
|
216
224
|
using std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
217
|
-
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void*
|
|
218
|
-
void*
|
|
225
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
|
|
226
|
+
void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept;
|
|
219
227
|
|
|
220
228
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>
|
|
221
229
|
using std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
@@ -448,11 +456,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
448
456
|
* Specialized version of `std::vector<RNMarker>`.
|
|
449
457
|
*/
|
|
450
458
|
using std__vector_RNMarker_ = std::vector<RNMarker>;
|
|
451
|
-
inline std::vector<RNMarker>
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
return vector.data();
|
|
459
|
+
inline std::vector<RNMarker> create_std__vector_RNMarker_(size_t size) noexcept {
|
|
460
|
+
std::vector<RNMarker> vector;
|
|
461
|
+
vector.reserve(size);
|
|
462
|
+
return vector;
|
|
456
463
|
}
|
|
457
464
|
|
|
458
465
|
// pragma MARK: std::optional<std::vector<RNMarker>>
|
|
@@ -475,11 +482,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
475
482
|
* Specialized version of `std::vector<RNLatLng>`.
|
|
476
483
|
*/
|
|
477
484
|
using std__vector_RNLatLng_ = std::vector<RNLatLng>;
|
|
478
|
-
inline std::vector<RNLatLng>
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
return vector.data();
|
|
485
|
+
inline std::vector<RNLatLng> create_std__vector_RNLatLng_(size_t size) noexcept {
|
|
486
|
+
std::vector<RNLatLng> vector;
|
|
487
|
+
vector.reserve(size);
|
|
488
|
+
return vector;
|
|
483
489
|
}
|
|
484
490
|
|
|
485
491
|
// pragma MARK: std::vector<RNPolygon>
|
|
@@ -487,11 +493,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
487
493
|
* Specialized version of `std::vector<RNPolygon>`.
|
|
488
494
|
*/
|
|
489
495
|
using std__vector_RNPolygon_ = std::vector<RNPolygon>;
|
|
490
|
-
inline std::vector<RNPolygon>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
return vector.data();
|
|
496
|
+
inline std::vector<RNPolygon> create_std__vector_RNPolygon_(size_t size) noexcept {
|
|
497
|
+
std::vector<RNPolygon> vector;
|
|
498
|
+
vector.reserve(size);
|
|
499
|
+
return vector;
|
|
495
500
|
}
|
|
496
501
|
|
|
497
502
|
// pragma MARK: std::optional<std::vector<RNPolygon>>
|
|
@@ -544,11 +549,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
544
549
|
* Specialized version of `std::vector<RNPolyline>`.
|
|
545
550
|
*/
|
|
546
551
|
using std__vector_RNPolyline_ = std::vector<RNPolyline>;
|
|
547
|
-
inline std::vector<RNPolyline>
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
return vector.data();
|
|
552
|
+
inline std::vector<RNPolyline> create_std__vector_RNPolyline_(size_t size) noexcept {
|
|
553
|
+
std::vector<RNPolyline> vector;
|
|
554
|
+
vector.reserve(size);
|
|
555
|
+
return vector;
|
|
552
556
|
}
|
|
553
557
|
|
|
554
558
|
// pragma MARK: std::optional<std::vector<RNPolyline>>
|
|
@@ -571,11 +575,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
571
575
|
* Specialized version of `std::vector<RNCircle>`.
|
|
572
576
|
*/
|
|
573
577
|
using std__vector_RNCircle_ = std::vector<RNCircle>;
|
|
574
|
-
inline std::vector<RNCircle>
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
return vector.data();
|
|
578
|
+
inline std::vector<RNCircle> create_std__vector_RNCircle_(size_t size) noexcept {
|
|
579
|
+
std::vector<RNCircle> vector;
|
|
580
|
+
vector.reserve(size);
|
|
581
|
+
return vector;
|
|
579
582
|
}
|
|
580
583
|
|
|
581
584
|
// pragma MARK: std::optional<std::vector<RNCircle>>
|
|
@@ -593,6 +596,80 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
593
596
|
return *optional;
|
|
594
597
|
}
|
|
595
598
|
|
|
599
|
+
// pragma MARK: std::vector<RNHeatmapPoint>
|
|
600
|
+
/**
|
|
601
|
+
* Specialized version of `std::vector<RNHeatmapPoint>`.
|
|
602
|
+
*/
|
|
603
|
+
using std__vector_RNHeatmapPoint_ = std::vector<RNHeatmapPoint>;
|
|
604
|
+
inline std::vector<RNHeatmapPoint> create_std__vector_RNHeatmapPoint_(size_t size) noexcept {
|
|
605
|
+
std::vector<RNHeatmapPoint> vector;
|
|
606
|
+
vector.reserve(size);
|
|
607
|
+
return vector;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// pragma MARK: std::vector<std::string>
|
|
611
|
+
/**
|
|
612
|
+
* Specialized version of `std::vector<std::string>`.
|
|
613
|
+
*/
|
|
614
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
615
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
616
|
+
std::vector<std::string> vector;
|
|
617
|
+
vector.reserve(size);
|
|
618
|
+
return vector;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// pragma MARK: std::vector<double>
|
|
622
|
+
/**
|
|
623
|
+
* Specialized version of `std::vector<double>`.
|
|
624
|
+
*/
|
|
625
|
+
using std__vector_double_ = std::vector<double>;
|
|
626
|
+
inline std::vector<double> create_std__vector_double_(size_t size) noexcept {
|
|
627
|
+
std::vector<double> vector;
|
|
628
|
+
vector.reserve(size);
|
|
629
|
+
return vector;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
// pragma MARK: std::optional<RNHeatmapGradient>
|
|
633
|
+
/**
|
|
634
|
+
* Specialized version of `std::optional<RNHeatmapGradient>`.
|
|
635
|
+
*/
|
|
636
|
+
using std__optional_RNHeatmapGradient_ = std::optional<RNHeatmapGradient>;
|
|
637
|
+
inline std::optional<RNHeatmapGradient> create_std__optional_RNHeatmapGradient_(const RNHeatmapGradient& value) noexcept {
|
|
638
|
+
return std::optional<RNHeatmapGradient>(value);
|
|
639
|
+
}
|
|
640
|
+
inline bool has_value_std__optional_RNHeatmapGradient_(const std::optional<RNHeatmapGradient>& optional) noexcept {
|
|
641
|
+
return optional.has_value();
|
|
642
|
+
}
|
|
643
|
+
inline RNHeatmapGradient get_std__optional_RNHeatmapGradient_(const std::optional<RNHeatmapGradient>& optional) noexcept {
|
|
644
|
+
return *optional;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// pragma MARK: std::vector<RNHeatmap>
|
|
648
|
+
/**
|
|
649
|
+
* Specialized version of `std::vector<RNHeatmap>`.
|
|
650
|
+
*/
|
|
651
|
+
using std__vector_RNHeatmap_ = std::vector<RNHeatmap>;
|
|
652
|
+
inline std::vector<RNHeatmap> create_std__vector_RNHeatmap_(size_t size) noexcept {
|
|
653
|
+
std::vector<RNHeatmap> vector;
|
|
654
|
+
vector.reserve(size);
|
|
655
|
+
return vector;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// pragma MARK: std::optional<std::vector<RNHeatmap>>
|
|
659
|
+
/**
|
|
660
|
+
* Specialized version of `std::optional<std::vector<RNHeatmap>>`.
|
|
661
|
+
*/
|
|
662
|
+
using std__optional_std__vector_RNHeatmap__ = std::optional<std::vector<RNHeatmap>>;
|
|
663
|
+
inline std::optional<std::vector<RNHeatmap>> create_std__optional_std__vector_RNHeatmap__(const std::vector<RNHeatmap>& value) noexcept {
|
|
664
|
+
return std::optional<std::vector<RNHeatmap>>(value);
|
|
665
|
+
}
|
|
666
|
+
inline bool has_value_std__optional_std__vector_RNHeatmap__(const std::optional<std::vector<RNHeatmap>>& optional) noexcept {
|
|
667
|
+
return optional.has_value();
|
|
668
|
+
}
|
|
669
|
+
inline std::vector<RNHeatmap> get_std__optional_std__vector_RNHeatmap__(const std::optional<std::vector<RNHeatmap>>& optional) noexcept {
|
|
670
|
+
return *optional;
|
|
671
|
+
}
|
|
672
|
+
|
|
596
673
|
// pragma MARK: std::optional<RNAndroidLocationPriority>
|
|
597
674
|
/**
|
|
598
675
|
* Specialized version of `std::optional<RNAndroidLocationPriority>`.
|
|
@@ -685,7 +762,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
685
762
|
private:
|
|
686
763
|
std::unique_ptr<std::function<void(RNMapErrorCode /* error */)>> _function;
|
|
687
764
|
} SWIFT_NONCOPYABLE;
|
|
688
|
-
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void*
|
|
765
|
+
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
689
766
|
inline Func_void_RNMapErrorCode_Wrapper wrap_Func_void_RNMapErrorCode(Func_void_RNMapErrorCode value) noexcept {
|
|
690
767
|
return Func_void_RNMapErrorCode_Wrapper(std::move(value));
|
|
691
768
|
}
|
|
@@ -722,7 +799,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
722
799
|
private:
|
|
723
800
|
std::unique_ptr<std::function<void(bool /* ready */)>> _function;
|
|
724
801
|
} SWIFT_NONCOPYABLE;
|
|
725
|
-
Func_void_bool create_Func_void_bool(void*
|
|
802
|
+
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
726
803
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
727
804
|
return Func_void_bool_Wrapper(std::move(value));
|
|
728
805
|
}
|
|
@@ -759,7 +836,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
759
836
|
private:
|
|
760
837
|
std::unique_ptr<std::function<void(const RNLocation& /* location */)>> _function;
|
|
761
838
|
} SWIFT_NONCOPYABLE;
|
|
762
|
-
Func_void_RNLocation create_Func_void_RNLocation(void*
|
|
839
|
+
Func_void_RNLocation create_Func_void_RNLocation(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
763
840
|
inline Func_void_RNLocation_Wrapper wrap_Func_void_RNLocation(Func_void_RNLocation value) noexcept {
|
|
764
841
|
return Func_void_RNLocation_Wrapper(std::move(value));
|
|
765
842
|
}
|
|
@@ -796,7 +873,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
796
873
|
private:
|
|
797
874
|
std::unique_ptr<std::function<void(RNLocationErrorCode /* error */)>> _function;
|
|
798
875
|
} SWIFT_NONCOPYABLE;
|
|
799
|
-
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void*
|
|
876
|
+
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
800
877
|
inline Func_void_RNLocationErrorCode_Wrapper wrap_Func_void_RNLocationErrorCode(Func_void_RNLocationErrorCode value) noexcept {
|
|
801
878
|
return Func_void_RNLocationErrorCode_Wrapper(std::move(value));
|
|
802
879
|
}
|
|
@@ -833,7 +910,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
833
910
|
private:
|
|
834
911
|
std::unique_ptr<std::function<void(const RNLatLng& /* coordinate */)>> _function;
|
|
835
912
|
} SWIFT_NONCOPYABLE;
|
|
836
|
-
Func_void_RNLatLng create_Func_void_RNLatLng(void*
|
|
913
|
+
Func_void_RNLatLng create_Func_void_RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
837
914
|
inline Func_void_RNLatLng_Wrapper wrap_Func_void_RNLatLng(Func_void_RNLatLng value) noexcept {
|
|
838
915
|
return Func_void_RNLatLng_Wrapper(std::move(value));
|
|
839
916
|
}
|
|
@@ -870,7 +947,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
870
947
|
private:
|
|
871
948
|
std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
|
|
872
949
|
} SWIFT_NONCOPYABLE;
|
|
873
|
-
Func_void_std__string create_Func_void_std__string(void*
|
|
950
|
+
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
874
951
|
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
|
|
875
952
|
return Func_void_std__string_Wrapper(std::move(value));
|
|
876
953
|
}
|
|
@@ -907,7 +984,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
907
984
|
private:
|
|
908
985
|
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
|
|
909
986
|
} SWIFT_NONCOPYABLE;
|
|
910
|
-
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void*
|
|
987
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
911
988
|
inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
|
|
912
989
|
return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
|
|
913
990
|
}
|
|
@@ -932,8 +1009,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
932
1009
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
933
1010
|
*/
|
|
934
1011
|
using std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
935
|
-
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void*
|
|
936
|
-
void*
|
|
1012
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
|
|
1013
|
+
void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept;
|
|
937
1014
|
|
|
938
1015
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
939
1016
|
using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
@@ -22,6 +22,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriorit
|
|
|
22
22
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
23
23
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
25
|
+
// Forward declaration of `RNHeatmapGradient` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
|
|
27
|
+
// Forward declaration of `RNHeatmapPoint` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
29
|
+
// Forward declaration of `RNHeatmap` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
|
|
25
31
|
// Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
|
|
26
32
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
27
33
|
// Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
|
|
@@ -77,6 +83,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
77
83
|
#include "RNAndroidLocationPriority.hpp"
|
|
78
84
|
#include "RNCamera.hpp"
|
|
79
85
|
#include "RNCircle.hpp"
|
|
86
|
+
#include "RNHeatmap.hpp"
|
|
87
|
+
#include "RNHeatmapGradient.hpp"
|
|
88
|
+
#include "RNHeatmapPoint.hpp"
|
|
80
89
|
#include "RNIOSLocationAccuracy.hpp"
|
|
81
90
|
#include "RNIOSLocationConfig.hpp"
|
|
82
91
|
#include "RNIOSPermissionResult.hpp"
|
|
@@ -44,6 +44,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
|
|
|
44
44
|
namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
|
|
45
45
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
46
46
|
namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
|
|
47
|
+
// Forward declaration of `RNHeatmap` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
|
|
49
|
+
// Forward declaration of `RNHeatmapPoint` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
51
|
+
// Forward declaration of `RNHeatmapGradient` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
|
|
47
53
|
// Forward declaration of `RNLocationConfig` to properly resolve imports.
|
|
48
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
|
|
49
55
|
// Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
|
|
@@ -88,6 +94,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
88
94
|
#include "RNLineCapType.hpp"
|
|
89
95
|
#include "RNLineJoinType.hpp"
|
|
90
96
|
#include "RNCircle.hpp"
|
|
97
|
+
#include "RNHeatmap.hpp"
|
|
98
|
+
#include "RNHeatmapPoint.hpp"
|
|
99
|
+
#include "RNHeatmapGradient.hpp"
|
|
91
100
|
#include "RNLocationConfig.hpp"
|
|
92
101
|
#include "RNAndroidLocationConfig.hpp"
|
|
93
102
|
#include "RNAndroidLocationPriority.hpp"
|
|
@@ -245,6 +254,13 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
245
254
|
inline void setCircles(const std::optional<std::vector<RNCircle>>& circles) noexcept override {
|
|
246
255
|
_swiftPart.setCircles(circles);
|
|
247
256
|
}
|
|
257
|
+
inline std::optional<std::vector<RNHeatmap>> getHeatmaps() noexcept override {
|
|
258
|
+
auto __result = _swiftPart.getHeatmaps();
|
|
259
|
+
return __result;
|
|
260
|
+
}
|
|
261
|
+
inline void setHeatmaps(const std::optional<std::vector<RNHeatmap>>& heatmaps) noexcept override {
|
|
262
|
+
_swiftPart.setHeatmaps(heatmaps);
|
|
263
|
+
}
|
|
248
264
|
inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
|
|
249
265
|
auto __result = _swiftPart.getLocationConfig();
|
|
250
266
|
return __result;
|
|
@@ -340,7 +356,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
340
356
|
public:
|
|
341
357
|
// Methods
|
|
342
358
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMS) override {
|
|
343
|
-
auto __result = _swiftPart.setCamera(
|
|
359
|
+
auto __result = _swiftPart.setCamera(camera, animated, durationMS);
|
|
344
360
|
if (__result.hasError()) [[unlikely]] {
|
|
345
361
|
std::rethrow_exception(__result.error());
|
|
346
362
|
}
|
|
@@ -146,6 +146,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
146
146
|
swiftPart.setCircles(newViewProps.circles.value);
|
|
147
147
|
newViewProps.circles.isDirty = false;
|
|
148
148
|
}
|
|
149
|
+
// heatmaps: optional
|
|
150
|
+
if (newViewProps.heatmaps.isDirty) {
|
|
151
|
+
swiftPart.setHeatmaps(newViewProps.heatmaps.value);
|
|
152
|
+
newViewProps.heatmaps.isDirty = false;
|
|
153
|
+
}
|
|
149
154
|
// locationConfig: optional
|
|
150
155
|
if (newViewProps.locationConfig.isDirty) {
|
|
151
156
|
swiftPart.setLocationConfig(newViewProps.locationConfig.value);
|
|
@@ -26,6 +26,7 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
26
26
|
var polygons: [RNPolygon]? { get set }
|
|
27
27
|
var polylines: [RNPolyline]? { get set }
|
|
28
28
|
var circles: [RNCircle]? { get set }
|
|
29
|
+
var heatmaps: [RNHeatmap]? { get set }
|
|
29
30
|
var locationConfig: RNLocationConfig? { get set }
|
|
30
31
|
var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
|
|
31
32
|
var onMapReady: ((_ ready: Bool) -> Void)? { get set }
|
|
@@ -119,7 +119,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
119
119
|
}
|
|
120
120
|
@inline(__always)
|
|
121
121
|
set {
|
|
122
|
-
self.__implementation.initialProps =
|
|
122
|
+
self.__implementation.initialProps = { () -> RNInitialProps? in
|
|
123
|
+
if bridge.has_value_std__optional_RNInitialProps_(newValue) {
|
|
124
|
+
let __unwrapped = bridge.get_std__optional_RNInitialProps_(newValue)
|
|
125
|
+
return __unwrapped
|
|
126
|
+
} else {
|
|
127
|
+
return nil
|
|
128
|
+
}
|
|
129
|
+
}()
|
|
123
130
|
}
|
|
124
131
|
}
|
|
125
132
|
|
|
@@ -136,7 +143,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
136
143
|
}
|
|
137
144
|
@inline(__always)
|
|
138
145
|
set {
|
|
139
|
-
self.__implementation.uiSettings =
|
|
146
|
+
self.__implementation.uiSettings = { () -> RNMapUiSettings? in
|
|
147
|
+
if bridge.has_value_std__optional_RNMapUiSettings_(newValue) {
|
|
148
|
+
let __unwrapped = bridge.get_std__optional_RNMapUiSettings_(newValue)
|
|
149
|
+
return __unwrapped
|
|
150
|
+
} else {
|
|
151
|
+
return nil
|
|
152
|
+
}
|
|
153
|
+
}()
|
|
140
154
|
}
|
|
141
155
|
}
|
|
142
156
|
|
|
@@ -262,7 +276,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
262
276
|
}
|
|
263
277
|
@inline(__always)
|
|
264
278
|
set {
|
|
265
|
-
self.__implementation.mapZoomConfig =
|
|
279
|
+
self.__implementation.mapZoomConfig = { () -> RNMapZoomConfig? in
|
|
280
|
+
if bridge.has_value_std__optional_RNMapZoomConfig_(newValue) {
|
|
281
|
+
let __unwrapped = bridge.get_std__optional_RNMapZoomConfig_(newValue)
|
|
282
|
+
return __unwrapped
|
|
283
|
+
} else {
|
|
284
|
+
return nil
|
|
285
|
+
}
|
|
286
|
+
}()
|
|
266
287
|
}
|
|
267
288
|
}
|
|
268
289
|
|
|
@@ -279,7 +300,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
279
300
|
}
|
|
280
301
|
@inline(__always)
|
|
281
302
|
set {
|
|
282
|
-
self.__implementation.mapPadding =
|
|
303
|
+
self.__implementation.mapPadding = { () -> RNMapPadding? in
|
|
304
|
+
if bridge.has_value_std__optional_RNMapPadding_(newValue) {
|
|
305
|
+
let __unwrapped = bridge.get_std__optional_RNMapPadding_(newValue)
|
|
306
|
+
return __unwrapped
|
|
307
|
+
} else {
|
|
308
|
+
return nil
|
|
309
|
+
}
|
|
310
|
+
}()
|
|
283
311
|
}
|
|
284
312
|
}
|
|
285
313
|
|
|
@@ -305,9 +333,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
305
333
|
get {
|
|
306
334
|
return { () -> bridge.std__optional_std__vector_RNMarker__ in
|
|
307
335
|
if let __unwrappedValue = self.__implementation.markers {
|
|
308
|
-
return bridge.create_std__optional_std__vector_RNMarker__(
|
|
309
|
-
|
|
310
|
-
|
|
336
|
+
return bridge.create_std__optional_std__vector_RNMarker__({ () -> bridge.std__vector_RNMarker_ in
|
|
337
|
+
var __vector = bridge.create_std__vector_RNMarker_(__unwrappedValue.count)
|
|
338
|
+
for __item in __unwrappedValue {
|
|
339
|
+
__vector.push_back(__item)
|
|
340
|
+
}
|
|
341
|
+
return __vector
|
|
342
|
+
}())
|
|
311
343
|
} else {
|
|
312
344
|
return .init()
|
|
313
345
|
}
|
|
@@ -318,11 +350,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
318
350
|
self.__implementation.markers = { () -> [RNMarker]? in
|
|
319
351
|
if bridge.has_value_std__optional_std__vector_RNMarker__(newValue) {
|
|
320
352
|
let __unwrapped = bridge.get_std__optional_std__vector_RNMarker__(newValue)
|
|
321
|
-
return {
|
|
322
|
-
let __data = bridge.get_data_std__vector_RNMarker_(__unwrapped)
|
|
323
|
-
let __size = __unwrapped.size()
|
|
324
|
-
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
325
|
-
}()
|
|
353
|
+
return __unwrapped.map({ __item in __item })
|
|
326
354
|
} else {
|
|
327
355
|
return nil
|
|
328
356
|
}
|
|
@@ -335,9 +363,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
335
363
|
get {
|
|
336
364
|
return { () -> bridge.std__optional_std__vector_RNPolygon__ in
|
|
337
365
|
if let __unwrappedValue = self.__implementation.polygons {
|
|
338
|
-
return bridge.create_std__optional_std__vector_RNPolygon__(
|
|
339
|
-
|
|
340
|
-
|
|
366
|
+
return bridge.create_std__optional_std__vector_RNPolygon__({ () -> bridge.std__vector_RNPolygon_ in
|
|
367
|
+
var __vector = bridge.create_std__vector_RNPolygon_(__unwrappedValue.count)
|
|
368
|
+
for __item in __unwrappedValue {
|
|
369
|
+
__vector.push_back(__item)
|
|
370
|
+
}
|
|
371
|
+
return __vector
|
|
372
|
+
}())
|
|
341
373
|
} else {
|
|
342
374
|
return .init()
|
|
343
375
|
}
|
|
@@ -348,11 +380,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
348
380
|
self.__implementation.polygons = { () -> [RNPolygon]? in
|
|
349
381
|
if bridge.has_value_std__optional_std__vector_RNPolygon__(newValue) {
|
|
350
382
|
let __unwrapped = bridge.get_std__optional_std__vector_RNPolygon__(newValue)
|
|
351
|
-
return {
|
|
352
|
-
let __data = bridge.get_data_std__vector_RNPolygon_(__unwrapped)
|
|
353
|
-
let __size = __unwrapped.size()
|
|
354
|
-
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
355
|
-
}()
|
|
383
|
+
return __unwrapped.map({ __item in __item })
|
|
356
384
|
} else {
|
|
357
385
|
return nil
|
|
358
386
|
}
|
|
@@ -365,9 +393,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
365
393
|
get {
|
|
366
394
|
return { () -> bridge.std__optional_std__vector_RNPolyline__ in
|
|
367
395
|
if let __unwrappedValue = self.__implementation.polylines {
|
|
368
|
-
return bridge.create_std__optional_std__vector_RNPolyline__(
|
|
369
|
-
|
|
370
|
-
|
|
396
|
+
return bridge.create_std__optional_std__vector_RNPolyline__({ () -> bridge.std__vector_RNPolyline_ in
|
|
397
|
+
var __vector = bridge.create_std__vector_RNPolyline_(__unwrappedValue.count)
|
|
398
|
+
for __item in __unwrappedValue {
|
|
399
|
+
__vector.push_back(__item)
|
|
400
|
+
}
|
|
401
|
+
return __vector
|
|
402
|
+
}())
|
|
371
403
|
} else {
|
|
372
404
|
return .init()
|
|
373
405
|
}
|
|
@@ -378,11 +410,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
378
410
|
self.__implementation.polylines = { () -> [RNPolyline]? in
|
|
379
411
|
if bridge.has_value_std__optional_std__vector_RNPolyline__(newValue) {
|
|
380
412
|
let __unwrapped = bridge.get_std__optional_std__vector_RNPolyline__(newValue)
|
|
381
|
-
return {
|
|
382
|
-
let __data = bridge.get_data_std__vector_RNPolyline_(__unwrapped)
|
|
383
|
-
let __size = __unwrapped.size()
|
|
384
|
-
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
385
|
-
}()
|
|
413
|
+
return __unwrapped.map({ __item in __item })
|
|
386
414
|
} else {
|
|
387
415
|
return nil
|
|
388
416
|
}
|
|
@@ -395,9 +423,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
395
423
|
get {
|
|
396
424
|
return { () -> bridge.std__optional_std__vector_RNCircle__ in
|
|
397
425
|
if let __unwrappedValue = self.__implementation.circles {
|
|
398
|
-
return bridge.create_std__optional_std__vector_RNCircle__(
|
|
399
|
-
|
|
400
|
-
|
|
426
|
+
return bridge.create_std__optional_std__vector_RNCircle__({ () -> bridge.std__vector_RNCircle_ in
|
|
427
|
+
var __vector = bridge.create_std__vector_RNCircle_(__unwrappedValue.count)
|
|
428
|
+
for __item in __unwrappedValue {
|
|
429
|
+
__vector.push_back(__item)
|
|
430
|
+
}
|
|
431
|
+
return __vector
|
|
432
|
+
}())
|
|
401
433
|
} else {
|
|
402
434
|
return .init()
|
|
403
435
|
}
|
|
@@ -408,11 +440,37 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
408
440
|
self.__implementation.circles = { () -> [RNCircle]? in
|
|
409
441
|
if bridge.has_value_std__optional_std__vector_RNCircle__(newValue) {
|
|
410
442
|
let __unwrapped = bridge.get_std__optional_std__vector_RNCircle__(newValue)
|
|
411
|
-
return {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
443
|
+
return __unwrapped.map({ __item in __item })
|
|
444
|
+
} else {
|
|
445
|
+
return nil
|
|
446
|
+
}
|
|
447
|
+
}()
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
public final var heatmaps: bridge.std__optional_std__vector_RNHeatmap__ {
|
|
452
|
+
@inline(__always)
|
|
453
|
+
get {
|
|
454
|
+
return { () -> bridge.std__optional_std__vector_RNHeatmap__ in
|
|
455
|
+
if let __unwrappedValue = self.__implementation.heatmaps {
|
|
456
|
+
return bridge.create_std__optional_std__vector_RNHeatmap__({ () -> bridge.std__vector_RNHeatmap_ in
|
|
457
|
+
var __vector = bridge.create_std__vector_RNHeatmap_(__unwrappedValue.count)
|
|
458
|
+
for __item in __unwrappedValue {
|
|
459
|
+
__vector.push_back(__item)
|
|
460
|
+
}
|
|
461
|
+
return __vector
|
|
462
|
+
}())
|
|
463
|
+
} else {
|
|
464
|
+
return .init()
|
|
465
|
+
}
|
|
466
|
+
}()
|
|
467
|
+
}
|
|
468
|
+
@inline(__always)
|
|
469
|
+
set {
|
|
470
|
+
self.__implementation.heatmaps = { () -> [RNHeatmap]? in
|
|
471
|
+
if bridge.has_value_std__optional_std__vector_RNHeatmap__(newValue) {
|
|
472
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNHeatmap__(newValue)
|
|
473
|
+
return __unwrapped.map({ __item in __item })
|
|
416
474
|
} else {
|
|
417
475
|
return nil
|
|
418
476
|
}
|
|
@@ -433,7 +491,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
433
491
|
}
|
|
434
492
|
@inline(__always)
|
|
435
493
|
set {
|
|
436
|
-
self.__implementation.locationConfig =
|
|
494
|
+
self.__implementation.locationConfig = { () -> RNLocationConfig? in
|
|
495
|
+
if bridge.has_value_std__optional_RNLocationConfig_(newValue) {
|
|
496
|
+
let __unwrapped = bridge.get_std__optional_RNLocationConfig_(newValue)
|
|
497
|
+
return __unwrapped
|
|
498
|
+
} else {
|
|
499
|
+
return nil
|
|
500
|
+
}
|
|
501
|
+
}()
|
|
437
502
|
}
|
|
438
503
|
}
|
|
439
504
|
|
|
@@ -836,11 +901,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
836
901
|
@inline(__always)
|
|
837
902
|
public final func setCameraToCoordinates(coordinates: bridge.std__vector_RNLatLng_, padding: bridge.std__optional_RNMapPadding_, animated: bridge.std__optional_bool_, durationMS: bridge.std__optional_double_) -> bridge.Result_void_ {
|
|
838
903
|
do {
|
|
839
|
-
try self.__implementation.setCameraToCoordinates(coordinates: { () ->
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
904
|
+
try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding: { () -> RNMapPadding? in
|
|
905
|
+
if bridge.has_value_std__optional_RNMapPadding_(padding) {
|
|
906
|
+
let __unwrapped = bridge.get_std__optional_RNMapPadding_(padding)
|
|
907
|
+
return __unwrapped
|
|
908
|
+
} else {
|
|
909
|
+
return nil
|
|
910
|
+
}
|
|
911
|
+
}(), animated: animated.value, durationMS: durationMS.value)
|
|
844
912
|
return bridge.create_Result_void_()
|
|
845
913
|
} catch (let __error) {
|
|
846
914
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -49,7 +49,14 @@ public extension RNCamera {
|
|
|
49
49
|
var center: RNLatLng? {
|
|
50
50
|
@inline(__always)
|
|
51
51
|
get {
|
|
52
|
-
return
|
|
52
|
+
return { () -> RNLatLng? in
|
|
53
|
+
if bridge.has_value_std__optional_RNLatLng_(self.__center) {
|
|
54
|
+
let __unwrapped = bridge.get_std__optional_RNLatLng_(self.__center)
|
|
55
|
+
return __unwrapped
|
|
56
|
+
} else {
|
|
57
|
+
return nil
|
|
58
|
+
}
|
|
59
|
+
}()
|
|
53
60
|
}
|
|
54
61
|
@inline(__always)
|
|
55
62
|
set {
|