react-native-google-maps-plus 1.1.0-dev.1 → 1.1.0-dev.3
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/RNGoogleMapsPlus.podspec +2 -0
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +38 -103
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -3
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +16 -2
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +48 -27
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +26 -9
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +48 -72
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +17 -0
- package/ios/GoogleMapViewImpl.swift +94 -212
- package/ios/LocationHandler.swift +2 -10
- package/ios/MapCircleBuilder.swift +23 -8
- package/ios/MapHelper.swift +6 -4
- package/ios/MapMarkerBuilder.swift +55 -48
- package/ios/MapPolygonBuilder.swift +25 -7
- package/ios/MapPolylineBuilder.swift +27 -11
- package/ios/RNGoogleMapsPlusView.swift +9 -15
- package/ios/extensions/RNCircle+Extension.swift +0 -13
- package/ios/extensions/RNMarker+Extension.swift +6 -5
- package/ios/extensions/RNPolygon+Extension.swift.swift +2 -19
- package/ios/extensions/RNPolyline+Extension.swift.swift +1 -26
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +2 -3
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +9 -2
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +14 -15
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +2 -4
- package/nitrogen/generated/android/c++/JRNCircle.hpp +4 -4
- package/nitrogen/generated/android/c++/JRNMapZoomConfig.hpp +57 -0
- package/nitrogen/generated/android/c++/JRNMarker.hpp +6 -12
- package/nitrogen/generated/android/c++/JRNMarkerSvg.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +2 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +1 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +32 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.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 +75 -33
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +6 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +11 -12
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +4 -9
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +46 -94
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
- package/nitrogen/generated/ios/swift/RNCircle.swift +5 -17
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
- package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +70 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +18 -35
- package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +57 -0
- package/nitrogen/generated/ios/swift/RNPolygon.swift +11 -15
- package/nitrogen/generated/ios/swift/RNPolyline.swift +11 -15
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -4
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +5 -4
- package/nitrogen/generated/shared/c++/RNCircle.hpp +5 -5
- package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +71 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +8 -13
- package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +75 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +7 -19
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +1 -2
- package/package.json +13 -13
- package/src/RNGoogleMapsPlusView.nitro.ts +2 -2
- package/src/types.ts +11 -2
|
@@ -52,6 +52,10 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
|
52
52
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
53
53
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
54
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
55
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
57
|
+
// Forward declaration of `RNMarkerSvg` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
|
|
55
59
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
56
60
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
57
61
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
@@ -94,12 +98,15 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
94
98
|
#include "RNMapPadding.hpp"
|
|
95
99
|
#include "RNMapType.hpp"
|
|
96
100
|
#include "RNMapUiSettings.hpp"
|
|
101
|
+
#include "RNMapZoomConfig.hpp"
|
|
97
102
|
#include "RNMarker.hpp"
|
|
103
|
+
#include "RNMarkerSvg.hpp"
|
|
98
104
|
#include "RNPolygon.hpp"
|
|
99
105
|
#include "RNPolyline.hpp"
|
|
100
106
|
#include "RNPosition.hpp"
|
|
101
107
|
#include "RNRegion.hpp"
|
|
102
108
|
#include "RNUserInterfaceStyle.hpp"
|
|
109
|
+
#include <NitroModules/FastVectorCopy.hpp>
|
|
103
110
|
#include <NitroModules/Promise.hpp>
|
|
104
111
|
#include <NitroModules/PromiseHolder.hpp>
|
|
105
112
|
#include <NitroModules/Result.hpp>
|
|
@@ -175,7 +182,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
175
182
|
private:
|
|
176
183
|
std::unique_ptr<std::function<void(const RNLocationPermissionResult& /* result */)>> _function;
|
|
177
184
|
} SWIFT_NONCOPYABLE;
|
|
178
|
-
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void*
|
|
185
|
+
Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
179
186
|
inline Func_void_RNLocationPermissionResult_Wrapper wrap_Func_void_RNLocationPermissionResult(Func_void_RNLocationPermissionResult value) noexcept {
|
|
180
187
|
return Func_void_RNLocationPermissionResult_Wrapper(std::move(value));
|
|
181
188
|
}
|
|
@@ -197,7 +204,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
197
204
|
private:
|
|
198
205
|
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
199
206
|
} SWIFT_NONCOPYABLE;
|
|
200
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void*
|
|
207
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
201
208
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
202
209
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
203
210
|
}
|
|
@@ -207,8 +214,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
207
214
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
|
|
208
215
|
*/
|
|
209
216
|
using std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
210
|
-
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void*
|
|
211
|
-
void*
|
|
217
|
+
std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
218
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept;
|
|
212
219
|
|
|
213
220
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>
|
|
214
221
|
using std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>;
|
|
@@ -361,6 +368,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
361
368
|
return *optional;
|
|
362
369
|
}
|
|
363
370
|
|
|
371
|
+
// pragma MARK: std::optional<RNMapZoomConfig>
|
|
372
|
+
/**
|
|
373
|
+
* Specialized version of `std::optional<RNMapZoomConfig>`.
|
|
374
|
+
*/
|
|
375
|
+
using std__optional_RNMapZoomConfig_ = std::optional<RNMapZoomConfig>;
|
|
376
|
+
inline std::optional<RNMapZoomConfig> create_std__optional_RNMapZoomConfig_(const RNMapZoomConfig& value) noexcept {
|
|
377
|
+
return std::optional<RNMapZoomConfig>(value);
|
|
378
|
+
}
|
|
379
|
+
inline bool has_value_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
|
|
380
|
+
return optional.has_value();
|
|
381
|
+
}
|
|
382
|
+
inline RNMapZoomConfig get_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
|
|
383
|
+
return *optional;
|
|
384
|
+
}
|
|
385
|
+
|
|
364
386
|
// pragma MARK: std::optional<RNMapPadding>
|
|
365
387
|
/**
|
|
366
388
|
* Specialized version of `std::optional<RNMapPadding>`.
|
|
@@ -406,15 +428,31 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
406
428
|
return *optional;
|
|
407
429
|
}
|
|
408
430
|
|
|
431
|
+
// pragma MARK: std::optional<RNMarkerSvg>
|
|
432
|
+
/**
|
|
433
|
+
* Specialized version of `std::optional<RNMarkerSvg>`.
|
|
434
|
+
*/
|
|
435
|
+
using std__optional_RNMarkerSvg_ = std::optional<RNMarkerSvg>;
|
|
436
|
+
inline std::optional<RNMarkerSvg> create_std__optional_RNMarkerSvg_(const RNMarkerSvg& value) noexcept {
|
|
437
|
+
return std::optional<RNMarkerSvg>(value);
|
|
438
|
+
}
|
|
439
|
+
inline bool has_value_std__optional_RNMarkerSvg_(const std::optional<RNMarkerSvg>& optional) noexcept {
|
|
440
|
+
return optional.has_value();
|
|
441
|
+
}
|
|
442
|
+
inline RNMarkerSvg get_std__optional_RNMarkerSvg_(const std::optional<RNMarkerSvg>& optional) noexcept {
|
|
443
|
+
return *optional;
|
|
444
|
+
}
|
|
445
|
+
|
|
409
446
|
// pragma MARK: std::vector<RNMarker>
|
|
410
447
|
/**
|
|
411
448
|
* Specialized version of `std::vector<RNMarker>`.
|
|
412
449
|
*/
|
|
413
450
|
using std__vector_RNMarker_ = std::vector<RNMarker>;
|
|
414
|
-
inline std::vector<RNMarker>
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
451
|
+
inline std::vector<RNMarker> copy_std__vector_RNMarker_(const RNMarker* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
452
|
+
return margelo::nitro::FastVectorCopy<RNMarker>(data, size);
|
|
453
|
+
}
|
|
454
|
+
inline const RNMarker* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNMarker_(const std::vector<RNMarker>& vector) noexcept {
|
|
455
|
+
return vector.data();
|
|
418
456
|
}
|
|
419
457
|
|
|
420
458
|
// pragma MARK: std::optional<std::vector<RNMarker>>
|
|
@@ -437,10 +475,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
437
475
|
* Specialized version of `std::vector<RNLatLng>`.
|
|
438
476
|
*/
|
|
439
477
|
using std__vector_RNLatLng_ = std::vector<RNLatLng>;
|
|
440
|
-
inline std::vector<RNLatLng>
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
478
|
+
inline std::vector<RNLatLng> copy_std__vector_RNLatLng_(const RNLatLng* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
479
|
+
return margelo::nitro::FastVectorCopy<RNLatLng>(data, size);
|
|
480
|
+
}
|
|
481
|
+
inline const RNLatLng* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNLatLng_(const std::vector<RNLatLng>& vector) noexcept {
|
|
482
|
+
return vector.data();
|
|
444
483
|
}
|
|
445
484
|
|
|
446
485
|
// pragma MARK: std::vector<RNPolygon>
|
|
@@ -448,10 +487,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
448
487
|
* Specialized version of `std::vector<RNPolygon>`.
|
|
449
488
|
*/
|
|
450
489
|
using std__vector_RNPolygon_ = std::vector<RNPolygon>;
|
|
451
|
-
inline std::vector<RNPolygon>
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
490
|
+
inline std::vector<RNPolygon> copy_std__vector_RNPolygon_(const RNPolygon* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
491
|
+
return margelo::nitro::FastVectorCopy<RNPolygon>(data, size);
|
|
492
|
+
}
|
|
493
|
+
inline const RNPolygon* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNPolygon_(const std::vector<RNPolygon>& vector) noexcept {
|
|
494
|
+
return vector.data();
|
|
455
495
|
}
|
|
456
496
|
|
|
457
497
|
// pragma MARK: std::optional<std::vector<RNPolygon>>
|
|
@@ -504,10 +544,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
504
544
|
* Specialized version of `std::vector<RNPolyline>`.
|
|
505
545
|
*/
|
|
506
546
|
using std__vector_RNPolyline_ = std::vector<RNPolyline>;
|
|
507
|
-
inline std::vector<RNPolyline>
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
547
|
+
inline std::vector<RNPolyline> copy_std__vector_RNPolyline_(const RNPolyline* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
548
|
+
return margelo::nitro::FastVectorCopy<RNPolyline>(data, size);
|
|
549
|
+
}
|
|
550
|
+
inline const RNPolyline* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNPolyline_(const std::vector<RNPolyline>& vector) noexcept {
|
|
551
|
+
return vector.data();
|
|
511
552
|
}
|
|
512
553
|
|
|
513
554
|
// pragma MARK: std::optional<std::vector<RNPolyline>>
|
|
@@ -530,10 +571,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
530
571
|
* Specialized version of `std::vector<RNCircle>`.
|
|
531
572
|
*/
|
|
532
573
|
using std__vector_RNCircle_ = std::vector<RNCircle>;
|
|
533
|
-
inline std::vector<RNCircle>
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
574
|
+
inline std::vector<RNCircle> copy_std__vector_RNCircle_(const RNCircle* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
|
|
575
|
+
return margelo::nitro::FastVectorCopy<RNCircle>(data, size);
|
|
576
|
+
}
|
|
577
|
+
inline const RNCircle* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_RNCircle_(const std::vector<RNCircle>& vector) noexcept {
|
|
578
|
+
return vector.data();
|
|
537
579
|
}
|
|
538
580
|
|
|
539
581
|
// pragma MARK: std::optional<std::vector<RNCircle>>
|
|
@@ -643,7 +685,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
643
685
|
private:
|
|
644
686
|
std::unique_ptr<std::function<void(RNMapErrorCode /* error */)>> _function;
|
|
645
687
|
} SWIFT_NONCOPYABLE;
|
|
646
|
-
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void*
|
|
688
|
+
Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
647
689
|
inline Func_void_RNMapErrorCode_Wrapper wrap_Func_void_RNMapErrorCode(Func_void_RNMapErrorCode value) noexcept {
|
|
648
690
|
return Func_void_RNMapErrorCode_Wrapper(std::move(value));
|
|
649
691
|
}
|
|
@@ -680,7 +722,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
680
722
|
private:
|
|
681
723
|
std::unique_ptr<std::function<void(bool /* ready */)>> _function;
|
|
682
724
|
} SWIFT_NONCOPYABLE;
|
|
683
|
-
Func_void_bool create_Func_void_bool(void*
|
|
725
|
+
Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
684
726
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
685
727
|
return Func_void_bool_Wrapper(std::move(value));
|
|
686
728
|
}
|
|
@@ -717,7 +759,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
717
759
|
private:
|
|
718
760
|
std::unique_ptr<std::function<void(const RNLocation& /* location */)>> _function;
|
|
719
761
|
} SWIFT_NONCOPYABLE;
|
|
720
|
-
Func_void_RNLocation create_Func_void_RNLocation(void*
|
|
762
|
+
Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
721
763
|
inline Func_void_RNLocation_Wrapper wrap_Func_void_RNLocation(Func_void_RNLocation value) noexcept {
|
|
722
764
|
return Func_void_RNLocation_Wrapper(std::move(value));
|
|
723
765
|
}
|
|
@@ -754,7 +796,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
754
796
|
private:
|
|
755
797
|
std::unique_ptr<std::function<void(RNLocationErrorCode /* error */)>> _function;
|
|
756
798
|
} SWIFT_NONCOPYABLE;
|
|
757
|
-
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void*
|
|
799
|
+
Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
758
800
|
inline Func_void_RNLocationErrorCode_Wrapper wrap_Func_void_RNLocationErrorCode(Func_void_RNLocationErrorCode value) noexcept {
|
|
759
801
|
return Func_void_RNLocationErrorCode_Wrapper(std::move(value));
|
|
760
802
|
}
|
|
@@ -791,7 +833,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
791
833
|
private:
|
|
792
834
|
std::unique_ptr<std::function<void(const RNLatLng& /* coordinate */)>> _function;
|
|
793
835
|
} SWIFT_NONCOPYABLE;
|
|
794
|
-
Func_void_RNLatLng create_Func_void_RNLatLng(void*
|
|
836
|
+
Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
795
837
|
inline Func_void_RNLatLng_Wrapper wrap_Func_void_RNLatLng(Func_void_RNLatLng value) noexcept {
|
|
796
838
|
return Func_void_RNLatLng_Wrapper(std::move(value));
|
|
797
839
|
}
|
|
@@ -828,7 +870,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
828
870
|
private:
|
|
829
871
|
std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
|
|
830
872
|
} SWIFT_NONCOPYABLE;
|
|
831
|
-
Func_void_std__string create_Func_void_std__string(void*
|
|
873
|
+
Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
832
874
|
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
|
|
833
875
|
return Func_void_std__string_Wrapper(std::move(value));
|
|
834
876
|
}
|
|
@@ -865,7 +907,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
865
907
|
private:
|
|
866
908
|
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
|
|
867
909
|
} SWIFT_NONCOPYABLE;
|
|
868
|
-
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void*
|
|
910
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
869
911
|
inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
|
|
870
912
|
return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
|
|
871
913
|
}
|
|
@@ -890,8 +932,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
890
932
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
891
933
|
*/
|
|
892
934
|
using std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
893
|
-
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void*
|
|
894
|
-
void*
|
|
935
|
+
std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
936
|
+
void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept;
|
|
895
937
|
|
|
896
938
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
897
939
|
using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
@@ -52,6 +52,10 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
|
52
52
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
53
53
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
54
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
55
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
57
|
+
// Forward declaration of `RNMarkerSvg` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
|
|
55
59
|
// Forward declaration of `RNMarker` to properly resolve imports.
|
|
56
60
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
57
61
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
@@ -88,7 +92,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
88
92
|
#include "RNMapPadding.hpp"
|
|
89
93
|
#include "RNMapType.hpp"
|
|
90
94
|
#include "RNMapUiSettings.hpp"
|
|
95
|
+
#include "RNMapZoomConfig.hpp"
|
|
91
96
|
#include "RNMarker.hpp"
|
|
97
|
+
#include "RNMarkerSvg.hpp"
|
|
92
98
|
#include "RNPolygon.hpp"
|
|
93
99
|
#include "RNPolyline.hpp"
|
|
94
100
|
#include "RNPosition.hpp"
|
|
@@ -22,6 +22,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
|
22
22
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
|
|
23
23
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
25
|
+
// Forward declaration of `RNMapZoomConfig` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
|
|
25
27
|
// Forward declaration of `RNMapPadding` to properly resolve imports.
|
|
26
28
|
namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
|
|
27
29
|
// Forward declaration of `RNMapType` to properly resolve imports.
|
|
@@ -30,6 +32,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
|
|
|
30
32
|
namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
|
|
31
33
|
// Forward declaration of `RNPosition` to properly resolve imports.
|
|
32
34
|
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
35
|
+
// Forward declaration of `RNMarkerSvg` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
|
|
33
37
|
// Forward declaration of `RNPolygon` to properly resolve imports.
|
|
34
38
|
namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
|
|
35
39
|
// Forward declaration of `RNPolyline` to properly resolve imports.
|
|
@@ -72,11 +76,13 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
72
76
|
#include "RNLatLng.hpp"
|
|
73
77
|
#include "RNMapUiSettings.hpp"
|
|
74
78
|
#include "RNUserInterfaceStyle.hpp"
|
|
79
|
+
#include "RNMapZoomConfig.hpp"
|
|
75
80
|
#include "RNMapPadding.hpp"
|
|
76
81
|
#include "RNMapType.hpp"
|
|
77
82
|
#include "RNMarker.hpp"
|
|
78
83
|
#include <vector>
|
|
79
84
|
#include "RNPosition.hpp"
|
|
85
|
+
#include "RNMarkerSvg.hpp"
|
|
80
86
|
#include "RNPolygon.hpp"
|
|
81
87
|
#include "RNPolyline.hpp"
|
|
82
88
|
#include "RNLineCapType.hpp"
|
|
@@ -190,19 +196,12 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
190
196
|
inline void setUserInterfaceStyle(std::optional<RNUserInterfaceStyle> userInterfaceStyle) noexcept override {
|
|
191
197
|
_swiftPart.setUserInterfaceStyle(userInterfaceStyle);
|
|
192
198
|
}
|
|
193
|
-
inline std::optional<
|
|
194
|
-
auto __result = _swiftPart.
|
|
199
|
+
inline std::optional<RNMapZoomConfig> getMapZoomConfig() noexcept override {
|
|
200
|
+
auto __result = _swiftPart.getMapZoomConfig();
|
|
195
201
|
return __result;
|
|
196
202
|
}
|
|
197
|
-
inline void
|
|
198
|
-
_swiftPart.
|
|
199
|
-
}
|
|
200
|
-
inline std::optional<double> getMaxZoomLevel() noexcept override {
|
|
201
|
-
auto __result = _swiftPart.getMaxZoomLevel();
|
|
202
|
-
return __result;
|
|
203
|
-
}
|
|
204
|
-
inline void setMaxZoomLevel(std::optional<double> maxZoomLevel) noexcept override {
|
|
205
|
-
_swiftPart.setMaxZoomLevel(maxZoomLevel);
|
|
203
|
+
inline void setMapZoomConfig(const std::optional<RNMapZoomConfig>& mapZoomConfig) noexcept override {
|
|
204
|
+
_swiftPart.setMapZoomConfig(mapZoomConfig);
|
|
206
205
|
}
|
|
207
206
|
inline std::optional<RNMapPadding> getMapPadding() noexcept override {
|
|
208
207
|
auto __result = _swiftPart.getMapPadding();
|
|
@@ -341,7 +340,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
341
340
|
public:
|
|
342
341
|
// Methods
|
|
343
342
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMS) override {
|
|
344
|
-
auto __result = _swiftPart.setCamera(camera, animated, durationMS);
|
|
343
|
+
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMS);
|
|
345
344
|
if (__result.hasError()) [[unlikely]] {
|
|
346
345
|
std::rethrow_exception(__result.error());
|
|
347
346
|
}
|
|
@@ -111,15 +111,10 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
111
111
|
swiftPart.setUserInterfaceStyle(newViewProps.userInterfaceStyle.value);
|
|
112
112
|
newViewProps.userInterfaceStyle.isDirty = false;
|
|
113
113
|
}
|
|
114
|
-
//
|
|
115
|
-
if (newViewProps.
|
|
116
|
-
swiftPart.
|
|
117
|
-
newViewProps.
|
|
118
|
-
}
|
|
119
|
-
// maxZoomLevel: optional
|
|
120
|
-
if (newViewProps.maxZoomLevel.isDirty) {
|
|
121
|
-
swiftPart.setMaxZoomLevel(newViewProps.maxZoomLevel.value);
|
|
122
|
-
newViewProps.maxZoomLevel.isDirty = false;
|
|
114
|
+
// mapZoomConfig: optional
|
|
115
|
+
if (newViewProps.mapZoomConfig.isDirty) {
|
|
116
|
+
swiftPart.setMapZoomConfig(newViewProps.mapZoomConfig.value);
|
|
117
|
+
newViewProps.mapZoomConfig.isDirty = false;
|
|
123
118
|
}
|
|
124
119
|
// mapPadding: optional
|
|
125
120
|
if (newViewProps.mapPadding.isDirty) {
|
|
@@ -19,8 +19,7 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
19
19
|
var indoorEnabled: Bool? { get set }
|
|
20
20
|
var customMapStyle: String? { get set }
|
|
21
21
|
var userInterfaceStyle: RNUserInterfaceStyle? { get set }
|
|
22
|
-
var
|
|
23
|
-
var maxZoomLevel: Double? { get set }
|
|
22
|
+
var mapZoomConfig: RNMapZoomConfig? { get set }
|
|
24
23
|
var mapPadding: RNMapPadding? { get set }
|
|
25
24
|
var mapType: RNMapType? { get set }
|
|
26
25
|
var markers: [RNMarker]? { get set }
|
|
@@ -119,14 +119,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
119
119
|
}
|
|
120
120
|
@inline(__always)
|
|
121
121
|
set {
|
|
122
|
-
self.__implementation.initialProps =
|
|
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
|
-
}()
|
|
122
|
+
self.__implementation.initialProps = newValue.value
|
|
130
123
|
}
|
|
131
124
|
}
|
|
132
125
|
|
|
@@ -143,14 +136,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
143
136
|
}
|
|
144
137
|
@inline(__always)
|
|
145
138
|
set {
|
|
146
|
-
self.__implementation.uiSettings =
|
|
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
|
-
}()
|
|
139
|
+
self.__implementation.uiSettings = newValue.value
|
|
154
140
|
}
|
|
155
141
|
}
|
|
156
142
|
|
|
@@ -263,29 +249,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
263
249
|
}
|
|
264
250
|
}
|
|
265
251
|
|
|
266
|
-
public final var
|
|
267
|
-
@inline(__always)
|
|
268
|
-
get {
|
|
269
|
-
return { () -> bridge.std__optional_double_ in
|
|
270
|
-
if let __unwrappedValue = self.__implementation.minZoomLevel {
|
|
271
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
272
|
-
} else {
|
|
273
|
-
return .init()
|
|
274
|
-
}
|
|
275
|
-
}()
|
|
276
|
-
}
|
|
277
|
-
@inline(__always)
|
|
278
|
-
set {
|
|
279
|
-
self.__implementation.minZoomLevel = newValue.value
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
public final var maxZoomLevel: bridge.std__optional_double_ {
|
|
252
|
+
public final var mapZoomConfig: bridge.std__optional_RNMapZoomConfig_ {
|
|
284
253
|
@inline(__always)
|
|
285
254
|
get {
|
|
286
|
-
return { () -> bridge.
|
|
287
|
-
if let __unwrappedValue = self.__implementation.
|
|
288
|
-
return bridge.
|
|
255
|
+
return { () -> bridge.std__optional_RNMapZoomConfig_ in
|
|
256
|
+
if let __unwrappedValue = self.__implementation.mapZoomConfig {
|
|
257
|
+
return bridge.create_std__optional_RNMapZoomConfig_(__unwrappedValue)
|
|
289
258
|
} else {
|
|
290
259
|
return .init()
|
|
291
260
|
}
|
|
@@ -293,7 +262,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
293
262
|
}
|
|
294
263
|
@inline(__always)
|
|
295
264
|
set {
|
|
296
|
-
self.__implementation.
|
|
265
|
+
self.__implementation.mapZoomConfig = newValue.value
|
|
297
266
|
}
|
|
298
267
|
}
|
|
299
268
|
|
|
@@ -310,14 +279,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
310
279
|
}
|
|
311
280
|
@inline(__always)
|
|
312
281
|
set {
|
|
313
|
-
self.__implementation.mapPadding =
|
|
314
|
-
if bridge.has_value_std__optional_RNMapPadding_(newValue) {
|
|
315
|
-
let __unwrapped = bridge.get_std__optional_RNMapPadding_(newValue)
|
|
316
|
-
return __unwrapped
|
|
317
|
-
} else {
|
|
318
|
-
return nil
|
|
319
|
-
}
|
|
320
|
-
}()
|
|
282
|
+
self.__implementation.mapPadding = newValue.value
|
|
321
283
|
}
|
|
322
284
|
}
|
|
323
285
|
|
|
@@ -343,13 +305,9 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
343
305
|
get {
|
|
344
306
|
return { () -> bridge.std__optional_std__vector_RNMarker__ in
|
|
345
307
|
if let __unwrappedValue = self.__implementation.markers {
|
|
346
|
-
return bridge.create_std__optional_std__vector_RNMarker__({
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
__vector.push_back(__item)
|
|
350
|
-
}
|
|
351
|
-
return __vector
|
|
352
|
-
}())
|
|
308
|
+
return bridge.create_std__optional_std__vector_RNMarker__(__unwrappedValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_RNMarker_ in
|
|
309
|
+
return bridge.copy_std__vector_RNMarker_(__pointer.baseAddress!, __unwrappedValue.count)
|
|
310
|
+
})
|
|
353
311
|
} else {
|
|
354
312
|
return .init()
|
|
355
313
|
}
|
|
@@ -360,7 +318,11 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
360
318
|
self.__implementation.markers = { () -> [RNMarker]? in
|
|
361
319
|
if bridge.has_value_std__optional_std__vector_RNMarker__(newValue) {
|
|
362
320
|
let __unwrapped = bridge.get_std__optional_std__vector_RNMarker__(newValue)
|
|
363
|
-
return
|
|
321
|
+
return { () -> [RNMarker] in
|
|
322
|
+
let __data = bridge.get_data_std__vector_RNMarker_(__unwrapped)
|
|
323
|
+
let __size = __unwrapped.size()
|
|
324
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
325
|
+
}()
|
|
364
326
|
} else {
|
|
365
327
|
return nil
|
|
366
328
|
}
|
|
@@ -373,13 +335,9 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
373
335
|
get {
|
|
374
336
|
return { () -> bridge.std__optional_std__vector_RNPolygon__ in
|
|
375
337
|
if let __unwrappedValue = self.__implementation.polygons {
|
|
376
|
-
return bridge.create_std__optional_std__vector_RNPolygon__({
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
__vector.push_back(__item)
|
|
380
|
-
}
|
|
381
|
-
return __vector
|
|
382
|
-
}())
|
|
338
|
+
return bridge.create_std__optional_std__vector_RNPolygon__(__unwrappedValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_RNPolygon_ in
|
|
339
|
+
return bridge.copy_std__vector_RNPolygon_(__pointer.baseAddress!, __unwrappedValue.count)
|
|
340
|
+
})
|
|
383
341
|
} else {
|
|
384
342
|
return .init()
|
|
385
343
|
}
|
|
@@ -390,7 +348,11 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
390
348
|
self.__implementation.polygons = { () -> [RNPolygon]? in
|
|
391
349
|
if bridge.has_value_std__optional_std__vector_RNPolygon__(newValue) {
|
|
392
350
|
let __unwrapped = bridge.get_std__optional_std__vector_RNPolygon__(newValue)
|
|
393
|
-
return
|
|
351
|
+
return { () -> [RNPolygon] in
|
|
352
|
+
let __data = bridge.get_data_std__vector_RNPolygon_(__unwrapped)
|
|
353
|
+
let __size = __unwrapped.size()
|
|
354
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
355
|
+
}()
|
|
394
356
|
} else {
|
|
395
357
|
return nil
|
|
396
358
|
}
|
|
@@ -403,13 +365,9 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
403
365
|
get {
|
|
404
366
|
return { () -> bridge.std__optional_std__vector_RNPolyline__ in
|
|
405
367
|
if let __unwrappedValue = self.__implementation.polylines {
|
|
406
|
-
return bridge.create_std__optional_std__vector_RNPolyline__({
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
__vector.push_back(__item)
|
|
410
|
-
}
|
|
411
|
-
return __vector
|
|
412
|
-
}())
|
|
368
|
+
return bridge.create_std__optional_std__vector_RNPolyline__(__unwrappedValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_RNPolyline_ in
|
|
369
|
+
return bridge.copy_std__vector_RNPolyline_(__pointer.baseAddress!, __unwrappedValue.count)
|
|
370
|
+
})
|
|
413
371
|
} else {
|
|
414
372
|
return .init()
|
|
415
373
|
}
|
|
@@ -420,7 +378,11 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
420
378
|
self.__implementation.polylines = { () -> [RNPolyline]? in
|
|
421
379
|
if bridge.has_value_std__optional_std__vector_RNPolyline__(newValue) {
|
|
422
380
|
let __unwrapped = bridge.get_std__optional_std__vector_RNPolyline__(newValue)
|
|
423
|
-
return
|
|
381
|
+
return { () -> [RNPolyline] in
|
|
382
|
+
let __data = bridge.get_data_std__vector_RNPolyline_(__unwrapped)
|
|
383
|
+
let __size = __unwrapped.size()
|
|
384
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
385
|
+
}()
|
|
424
386
|
} else {
|
|
425
387
|
return nil
|
|
426
388
|
}
|
|
@@ -433,13 +395,9 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
433
395
|
get {
|
|
434
396
|
return { () -> bridge.std__optional_std__vector_RNCircle__ in
|
|
435
397
|
if let __unwrappedValue = self.__implementation.circles {
|
|
436
|
-
return bridge.create_std__optional_std__vector_RNCircle__({
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
__vector.push_back(__item)
|
|
440
|
-
}
|
|
441
|
-
return __vector
|
|
442
|
-
}())
|
|
398
|
+
return bridge.create_std__optional_std__vector_RNCircle__(__unwrappedValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_RNCircle_ in
|
|
399
|
+
return bridge.copy_std__vector_RNCircle_(__pointer.baseAddress!, __unwrappedValue.count)
|
|
400
|
+
})
|
|
443
401
|
} else {
|
|
444
402
|
return .init()
|
|
445
403
|
}
|
|
@@ -450,7 +408,11 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
450
408
|
self.__implementation.circles = { () -> [RNCircle]? in
|
|
451
409
|
if bridge.has_value_std__optional_std__vector_RNCircle__(newValue) {
|
|
452
410
|
let __unwrapped = bridge.get_std__optional_std__vector_RNCircle__(newValue)
|
|
453
|
-
return
|
|
411
|
+
return { () -> [RNCircle] in
|
|
412
|
+
let __data = bridge.get_data_std__vector_RNCircle_(__unwrapped)
|
|
413
|
+
let __size = __unwrapped.size()
|
|
414
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
415
|
+
}()
|
|
454
416
|
} else {
|
|
455
417
|
return nil
|
|
456
418
|
}
|
|
@@ -471,14 +433,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
471
433
|
}
|
|
472
434
|
@inline(__always)
|
|
473
435
|
set {
|
|
474
|
-
self.__implementation.locationConfig =
|
|
475
|
-
if bridge.has_value_std__optional_RNLocationConfig_(newValue) {
|
|
476
|
-
let __unwrapped = bridge.get_std__optional_RNLocationConfig_(newValue)
|
|
477
|
-
return __unwrapped
|
|
478
|
-
} else {
|
|
479
|
-
return nil
|
|
480
|
-
}
|
|
481
|
-
}()
|
|
436
|
+
self.__implementation.locationConfig = newValue.value
|
|
482
437
|
}
|
|
483
438
|
}
|
|
484
439
|
|
|
@@ -881,14 +836,11 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
881
836
|
@inline(__always)
|
|
882
837
|
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_ {
|
|
883
838
|
do {
|
|
884
|
-
try self.__implementation.setCameraToCoordinates(coordinates:
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
return nil
|
|
890
|
-
}
|
|
891
|
-
}(), animated: animated.value, durationMS: durationMS.value)
|
|
839
|
+
try self.__implementation.setCameraToCoordinates(coordinates: { () -> [RNLatLng] in
|
|
840
|
+
let __data = bridge.get_data_std__vector_RNLatLng_(coordinates)
|
|
841
|
+
let __size = coordinates.size()
|
|
842
|
+
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
843
|
+
}(), padding: padding.value, animated: animated.value, durationMS: durationMS.value)
|
|
892
844
|
return bridge.create_Result_void_()
|
|
893
845
|
} catch (let __error) {
|
|
894
846
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -49,14 +49,7 @@ public extension RNCamera {
|
|
|
49
49
|
var center: RNLatLng? {
|
|
50
50
|
@inline(__always)
|
|
51
51
|
get {
|
|
52
|
-
return
|
|
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
|
-
}()
|
|
52
|
+
return self.__center.value
|
|
60
53
|
}
|
|
61
54
|
@inline(__always)
|
|
62
55
|
set {
|