react-native-google-maps-plus 1.7.0-dev.1 → 1.7.0-dev.10
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/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +457 -451
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -8
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapHeatmapBuilder.kt +1 -1
- package/android/src/main/java/com/rngooglemapsplus/MapHelper.kt +22 -0
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +103 -2
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapUrlTileOverlayBuilder.kt +40 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +84 -34
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +10 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +2 -8
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapTypeExtension.kt +13 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/VisibleRegionExtension.kt +13 -0
- package/ios/GoogleMapViewImpl.swift +164 -48
- package/ios/MapCircleBuilder.swift +2 -0
- package/ios/MapHeatmapBuilder.swift +2 -1
- package/ios/MapMarkerBuilder.swift +54 -1
- package/ios/MapPolygonBuilder.swift +2 -0
- package/ios/MapPolylineBuilder.swift +2 -0
- package/ios/MapUrlTileOverlayBuilder.swift +24 -0
- package/ios/RNGoogleMapsPlusView.swift +68 -11
- package/ios/extensions/GMSCoordinateBounds+Extension.swift +4 -13
- package/ios/extensions/GMSVisibleRegion+Extension.swift +14 -0
- package/ios/extensions/MapObjectTag+Extension.swift +93 -0
- package/ios/extensions/RNLatLngBounds+Extension.swift +4 -4
- package/ios/extensions/RNMapType+Extension.swift +18 -0
- package/lib/module/types.js.map +1 -1
- package/lib/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +7 -0
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +18 -9
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +18 -5
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +8 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera.hpp +83 -0
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +2 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +237 -83
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +32 -16
- package/nitrogen/generated/android/c++/JRNLatLngBounds.hpp +8 -8
- package/nitrogen/generated/android/c++/JRNMapUiSettings.hpp +11 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
- package/nitrogen/generated/android/c++/JRNRegion.hpp +23 -13
- package/nitrogen/generated/android/c++/JRNUrlTileOverlay.hpp +78 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string_.kt → Func_void_std__string.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string__RNLatLng.kt → Func_void_std__string_RNLatLng.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_std__string_RNLatLng.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +122 -24
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +9 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNRegion.kt +11 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +52 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +32 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +168 -43
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +86 -22
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +35 -0
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_RNLatLng.swift +47 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +17 -8
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +340 -138
- package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +8 -8
- package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +61 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
- package/nitrogen/generated/ios/swift/RNRegion.swift +33 -11
- package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +133 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +16 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +41 -22
- package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +9 -9
- package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +10 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
- package/nitrogen/generated/shared/c++/RNRegion.hpp +24 -13
- package/nitrogen/generated/shared/c++/RNUrlTileOverlay.hpp +96 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +100 -16
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +18 -10
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +7 -0
- package/package.json +4 -2
- package/src/RNGoogleMapsPlusView.nitro.ts +20 -8
- package/src/types.ts +19 -5
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBounds.kt +0 -15
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +0 -76
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +0 -78
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +0 -54
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSize.kt → RNSizeExtension.kt} +0 -0
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSnapshotFormat.kt → RNSnapshotFormatExtension.kt} +0 -0
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSnapshotResultType.kt → RNSnapshotResultTypeExtension.kt} +0 -0
|
@@ -88,6 +88,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
|
88
88
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
89
89
|
// Forward declaration of `RNSize` to properly resolve imports.
|
|
90
90
|
namespace margelo::nitro::rngooglemapsplus { struct RNSize; }
|
|
91
|
+
// Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
|
|
92
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
|
|
91
93
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
92
94
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
93
95
|
|
|
@@ -138,6 +140,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
138
140
|
#include "RNPosition.hpp"
|
|
139
141
|
#include "RNRegion.hpp"
|
|
140
142
|
#include "RNSize.hpp"
|
|
143
|
+
#include "RNUrlTileOverlay.hpp"
|
|
141
144
|
#include "RNUserInterfaceStyle.hpp"
|
|
142
145
|
#include <NitroModules/FastVectorCopy.hpp>
|
|
143
146
|
#include <NitroModules/Promise.hpp>
|
|
@@ -748,6 +751,32 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
748
751
|
return *optional;
|
|
749
752
|
}
|
|
750
753
|
|
|
754
|
+
// pragma MARK: std::vector<RNUrlTileOverlay>
|
|
755
|
+
/**
|
|
756
|
+
* Specialized version of `std::vector<RNUrlTileOverlay>`.
|
|
757
|
+
*/
|
|
758
|
+
using std__vector_RNUrlTileOverlay_ = std::vector<RNUrlTileOverlay>;
|
|
759
|
+
inline std::vector<RNUrlTileOverlay> create_std__vector_RNUrlTileOverlay_(size_t size) noexcept {
|
|
760
|
+
std::vector<RNUrlTileOverlay> vector;
|
|
761
|
+
vector.reserve(size);
|
|
762
|
+
return vector;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// pragma MARK: std::optional<std::vector<RNUrlTileOverlay>>
|
|
766
|
+
/**
|
|
767
|
+
* Specialized version of `std::optional<std::vector<RNUrlTileOverlay>>`.
|
|
768
|
+
*/
|
|
769
|
+
using std__optional_std__vector_RNUrlTileOverlay__ = std::optional<std::vector<RNUrlTileOverlay>>;
|
|
770
|
+
inline std::optional<std::vector<RNUrlTileOverlay>> create_std__optional_std__vector_RNUrlTileOverlay__(const std::vector<RNUrlTileOverlay>& value) noexcept {
|
|
771
|
+
return std::optional<std::vector<RNUrlTileOverlay>>(value);
|
|
772
|
+
}
|
|
773
|
+
inline bool has_value_std__optional_std__vector_RNUrlTileOverlay__(const std::optional<std::vector<RNUrlTileOverlay>>& optional) noexcept {
|
|
774
|
+
return optional.has_value();
|
|
775
|
+
}
|
|
776
|
+
inline std::vector<RNUrlTileOverlay> get_std__optional_std__vector_RNUrlTileOverlay__(const std::optional<std::vector<RNUrlTileOverlay>>& optional) noexcept {
|
|
777
|
+
return *optional;
|
|
778
|
+
}
|
|
779
|
+
|
|
751
780
|
// pragma MARK: std::optional<RNAndroidLocationPriority>
|
|
752
781
|
/**
|
|
753
782
|
* Specialized version of `std::optional<RNAndroidLocationPriority>`.
|
|
@@ -897,18 +926,40 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
897
926
|
return *optional;
|
|
898
927
|
}
|
|
899
928
|
|
|
900
|
-
// pragma MARK: std::
|
|
929
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>
|
|
930
|
+
/**
|
|
931
|
+
* Specialized version of `std::function<void(const RNRegion&, const RNCamera&)>`.
|
|
932
|
+
*/
|
|
933
|
+
using Func_void_RNRegion_RNCamera = std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>;
|
|
934
|
+
/**
|
|
935
|
+
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /)>`, this can be used from Swift.
|
|
936
|
+
*/
|
|
937
|
+
class Func_void_RNRegion_RNCamera_Wrapper final {
|
|
938
|
+
public:
|
|
939
|
+
explicit Func_void_RNRegion_RNCamera_Wrapper(std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>&& func): _function(std::make_unique<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>(std::move(func))) {}
|
|
940
|
+
inline void call(RNRegion region, RNCamera camera) const noexcept {
|
|
941
|
+
_function->operator()(region, camera);
|
|
942
|
+
}
|
|
943
|
+
private:
|
|
944
|
+
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> _function;
|
|
945
|
+
} SWIFT_NONCOPYABLE;
|
|
946
|
+
Func_void_RNRegion_RNCamera create_Func_void_RNRegion_RNCamera(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
947
|
+
inline Func_void_RNRegion_RNCamera_Wrapper wrap_Func_void_RNRegion_RNCamera(Func_void_RNRegion_RNCamera value) noexcept {
|
|
948
|
+
return Func_void_RNRegion_RNCamera_Wrapper(std::move(value));
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>
|
|
901
952
|
/**
|
|
902
|
-
* Specialized version of `std::optional<std::function<void(
|
|
953
|
+
* Specialized version of `std::optional<std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /)>>`.
|
|
903
954
|
*/
|
|
904
|
-
using
|
|
905
|
-
inline std::optional<std::function<void(
|
|
906
|
-
return std::optional<std::function<void(
|
|
955
|
+
using std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______ = std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>;
|
|
956
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>& value) noexcept {
|
|
957
|
+
return std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>(value);
|
|
907
958
|
}
|
|
908
|
-
inline bool
|
|
959
|
+
inline bool has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& optional) noexcept {
|
|
909
960
|
return optional.has_value();
|
|
910
961
|
}
|
|
911
|
-
inline std::function<void(
|
|
962
|
+
inline std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)> get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& optional) noexcept {
|
|
912
963
|
return *optional;
|
|
913
964
|
}
|
|
914
965
|
|
|
@@ -1053,77 +1104,114 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1053
1104
|
return *optional;
|
|
1054
1105
|
}
|
|
1055
1106
|
|
|
1056
|
-
// pragma MARK: std::function<void(const std::
|
|
1107
|
+
// pragma MARK: std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>
|
|
1057
1108
|
/**
|
|
1058
|
-
* Specialized version of `std::function<void(const std::
|
|
1109
|
+
* Specialized version of `std::function<void(const std::string&, const std::string&, const RNLatLng&)>`.
|
|
1059
1110
|
*/
|
|
1060
|
-
using
|
|
1111
|
+
using Func_void_std__string_std__string_RNLatLng = std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>;
|
|
1061
1112
|
/**
|
|
1062
|
-
* Wrapper class for a `std::function<void(const std::
|
|
1113
|
+
* Wrapper class for a `std::function<void(const std::string& / * placeId * /, const std::string& / * name * /, const RNLatLng& / * coordinate * /)>`, this can be used from Swift.
|
|
1063
1114
|
*/
|
|
1064
|
-
class
|
|
1115
|
+
class Func_void_std__string_std__string_RNLatLng_Wrapper final {
|
|
1065
1116
|
public:
|
|
1066
|
-
explicit
|
|
1067
|
-
inline void call(std::
|
|
1117
|
+
explicit Func_void_std__string_std__string_RNLatLng_Wrapper(std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>(std::move(func))) {}
|
|
1118
|
+
inline void call(std::string placeId, std::string name, RNLatLng coordinate) const noexcept {
|
|
1119
|
+
_function->operator()(placeId, name, coordinate);
|
|
1120
|
+
}
|
|
1121
|
+
private:
|
|
1122
|
+
std::unique_ptr<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> _function;
|
|
1123
|
+
} SWIFT_NONCOPYABLE;
|
|
1124
|
+
Func_void_std__string_std__string_RNLatLng create_Func_void_std__string_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1125
|
+
inline Func_void_std__string_std__string_RNLatLng_Wrapper wrap_Func_void_std__string_std__string_RNLatLng(Func_void_std__string_std__string_RNLatLng value) noexcept {
|
|
1126
|
+
return Func_void_std__string_std__string_RNLatLng_Wrapper(std::move(value));
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// pragma MARK: std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>
|
|
1130
|
+
/**
|
|
1131
|
+
* Specialized version of `std::optional<std::function<void(const std::string& / * placeId * /, const std::string& / * name * /, const RNLatLng& / * coordinate * /)>>`.
|
|
1132
|
+
*/
|
|
1133
|
+
using std__optional_std__function_void_const_std__string_____placeId_____const_std__string_____name_____const_RNLatLng_____coordinate______ = std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>;
|
|
1134
|
+
inline std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> create_std__optional_std__function_void_const_std__string_____placeId_____const_std__string_____name_____const_RNLatLng_____coordinate______(const std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>& value) noexcept {
|
|
1135
|
+
return std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>(value);
|
|
1136
|
+
}
|
|
1137
|
+
inline bool has_value_std__optional_std__function_void_const_std__string_____placeId_____const_std__string_____name_____const_RNLatLng_____coordinate______(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& optional) noexcept {
|
|
1138
|
+
return optional.has_value();
|
|
1139
|
+
}
|
|
1140
|
+
inline std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)> get_std__optional_std__function_void_const_std__string_____placeId_____const_std__string_____name_____const_RNLatLng_____coordinate______(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& optional) noexcept {
|
|
1141
|
+
return *optional;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// pragma MARK: std::function<void(const std::string& /* id */)>
|
|
1145
|
+
/**
|
|
1146
|
+
* Specialized version of `std::function<void(const std::string&)>`.
|
|
1147
|
+
*/
|
|
1148
|
+
using Func_void_std__string = std::function<void(const std::string& /* id */)>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Wrapper class for a `std::function<void(const std::string& / * id * /)>`, this can be used from Swift.
|
|
1151
|
+
*/
|
|
1152
|
+
class Func_void_std__string_Wrapper final {
|
|
1153
|
+
public:
|
|
1154
|
+
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* id */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */)>>(std::move(func))) {}
|
|
1155
|
+
inline void call(std::string id) const noexcept {
|
|
1068
1156
|
_function->operator()(id);
|
|
1069
1157
|
}
|
|
1070
1158
|
private:
|
|
1071
|
-
std::unique_ptr<std::function<void(const std::
|
|
1159
|
+
std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
|
|
1072
1160
|
} SWIFT_NONCOPYABLE;
|
|
1073
|
-
|
|
1074
|
-
inline
|
|
1075
|
-
return
|
|
1161
|
+
Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1162
|
+
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
|
|
1163
|
+
return Func_void_std__string_Wrapper(std::move(value));
|
|
1076
1164
|
}
|
|
1077
1165
|
|
|
1078
|
-
// pragma MARK: std::optional<std::function<void(const std::
|
|
1166
|
+
// pragma MARK: std::optional<std::function<void(const std::string& /* id */)>>
|
|
1079
1167
|
/**
|
|
1080
|
-
* Specialized version of `std::optional<std::function<void(const std::
|
|
1168
|
+
* Specialized version of `std::optional<std::function<void(const std::string& / * id * /)>>`.
|
|
1081
1169
|
*/
|
|
1082
|
-
using
|
|
1083
|
-
inline std::optional<std::function<void(const std::
|
|
1084
|
-
return std::optional<std::function<void(const std::
|
|
1170
|
+
using std__optional_std__function_void_const_std__string_____id______ = std::optional<std::function<void(const std::string& /* id */)>>;
|
|
1171
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> create_std__optional_std__function_void_const_std__string_____id______(const std::function<void(const std::string& /* id */)>& value) noexcept {
|
|
1172
|
+
return std::optional<std::function<void(const std::string& /* id */)>>(value);
|
|
1085
1173
|
}
|
|
1086
|
-
inline bool
|
|
1174
|
+
inline bool has_value_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
|
|
1087
1175
|
return optional.has_value();
|
|
1088
1176
|
}
|
|
1089
|
-
inline std::function<void(const std::
|
|
1177
|
+
inline std::function<void(const std::string& /* id */)> get_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
|
|
1090
1178
|
return *optional;
|
|
1091
1179
|
}
|
|
1092
1180
|
|
|
1093
|
-
// pragma MARK: std::function<void(const std::
|
|
1181
|
+
// pragma MARK: std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>
|
|
1094
1182
|
/**
|
|
1095
|
-
* Specialized version of `std::function<void(const std::
|
|
1183
|
+
* Specialized version of `std::function<void(const std::string&, const RNLatLng&)>`.
|
|
1096
1184
|
*/
|
|
1097
|
-
using
|
|
1185
|
+
using Func_void_std__string_RNLatLng = std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>;
|
|
1098
1186
|
/**
|
|
1099
|
-
* Wrapper class for a `std::function<void(const std::
|
|
1187
|
+
* Wrapper class for a `std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>`, this can be used from Swift.
|
|
1100
1188
|
*/
|
|
1101
|
-
class
|
|
1189
|
+
class Func_void_std__string_RNLatLng_Wrapper final {
|
|
1102
1190
|
public:
|
|
1103
|
-
explicit
|
|
1104
|
-
inline void call(std::
|
|
1191
|
+
explicit Func_void_std__string_RNLatLng_Wrapper(std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(std::move(func))) {}
|
|
1192
|
+
inline void call(std::string id, RNLatLng location) const noexcept {
|
|
1105
1193
|
_function->operator()(id, location);
|
|
1106
1194
|
}
|
|
1107
1195
|
private:
|
|
1108
|
-
std::unique_ptr<std::function<void(const std::
|
|
1196
|
+
std::unique_ptr<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> _function;
|
|
1109
1197
|
} SWIFT_NONCOPYABLE;
|
|
1110
|
-
|
|
1111
|
-
inline
|
|
1112
|
-
return
|
|
1198
|
+
Func_void_std__string_RNLatLng create_Func_void_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1199
|
+
inline Func_void_std__string_RNLatLng_Wrapper wrap_Func_void_std__string_RNLatLng(Func_void_std__string_RNLatLng value) noexcept {
|
|
1200
|
+
return Func_void_std__string_RNLatLng_Wrapper(std::move(value));
|
|
1113
1201
|
}
|
|
1114
1202
|
|
|
1115
|
-
// pragma MARK: std::optional<std::function<void(const std::
|
|
1203
|
+
// pragma MARK: std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>
|
|
1116
1204
|
/**
|
|
1117
|
-
* Specialized version of `std::optional<std::function<void(const std::
|
|
1205
|
+
* Specialized version of `std::optional<std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>>`.
|
|
1118
1206
|
*/
|
|
1119
|
-
using
|
|
1120
|
-
inline std::optional<std::function<void(const std::
|
|
1121
|
-
return std::optional<std::function<void(const std::
|
|
1207
|
+
using std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ = std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>;
|
|
1208
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>& value) noexcept {
|
|
1209
|
+
return std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(value);
|
|
1122
1210
|
}
|
|
1123
|
-
inline bool
|
|
1211
|
+
inline bool has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
|
|
1124
1212
|
return optional.has_value();
|
|
1125
1213
|
}
|
|
1126
|
-
inline std::function<void(const std::
|
|
1214
|
+
inline std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
|
|
1127
1215
|
return *optional;
|
|
1128
1216
|
}
|
|
1129
1217
|
|
|
@@ -1212,6 +1300,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1212
1300
|
return *optional;
|
|
1213
1301
|
}
|
|
1214
1302
|
|
|
1303
|
+
// pragma MARK: std::optional<std::function<void(bool /* pressed */)>>
|
|
1304
|
+
/**
|
|
1305
|
+
* Specialized version of `std::optional<std::function<void(bool / * pressed * /)>>`.
|
|
1306
|
+
*/
|
|
1307
|
+
using std__optional_std__function_void_bool____pressed______ = std::optional<std::function<void(bool /* pressed */)>>;
|
|
1308
|
+
inline std::optional<std::function<void(bool /* pressed */)>> create_std__optional_std__function_void_bool____pressed______(const std::function<void(bool /* pressed */)>& value) noexcept {
|
|
1309
|
+
return std::optional<std::function<void(bool /* pressed */)>>(value);
|
|
1310
|
+
}
|
|
1311
|
+
inline bool has_value_std__optional_std__function_void_bool____pressed______(const std::optional<std::function<void(bool /* pressed */)>>& optional) noexcept {
|
|
1312
|
+
return optional.has_value();
|
|
1313
|
+
}
|
|
1314
|
+
inline std::function<void(bool /* pressed */)> get_std__optional_std__function_void_bool____pressed______(const std::optional<std::function<void(bool /* pressed */)>>& optional) noexcept {
|
|
1315
|
+
return *optional;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1215
1318
|
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
|
|
1216
1319
|
/**
|
|
1217
1320
|
* Specialized version of `std::function<void(const RNRegion&, const RNCamera&, bool)>`.
|
|
@@ -1276,6 +1379,28 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1276
1379
|
return PromiseHolder<std::optional<std::string>>(std::move(promise));
|
|
1277
1380
|
}
|
|
1278
1381
|
|
|
1382
|
+
// pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
|
|
1383
|
+
/**
|
|
1384
|
+
* Specialized version of `std::function<void(const std::optional<std::string>&)>`.
|
|
1385
|
+
*/
|
|
1386
|
+
using Func_void_std__optional_std__string_ = std::function<void(const std::optional<std::string>& /* result */)>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Wrapper class for a `std::function<void(const std::optional<std::string>& / * result * /)>`, this can be used from Swift.
|
|
1389
|
+
*/
|
|
1390
|
+
class Func_void_std__optional_std__string__Wrapper final {
|
|
1391
|
+
public:
|
|
1392
|
+
explicit Func_void_std__optional_std__string__Wrapper(std::function<void(const std::optional<std::string>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* result */)>>(std::move(func))) {}
|
|
1393
|
+
inline void call(std::optional<std::string> result) const noexcept {
|
|
1394
|
+
_function->operator()(result);
|
|
1395
|
+
}
|
|
1396
|
+
private:
|
|
1397
|
+
std::unique_ptr<std::function<void(const std::optional<std::string>& /* result */)>> _function;
|
|
1398
|
+
} SWIFT_NONCOPYABLE;
|
|
1399
|
+
Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1400
|
+
inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
|
|
1401
|
+
return Func_void_std__optional_std__string__Wrapper(std::move(value));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1279
1404
|
// pragma MARK: std::optional<RNSize>
|
|
1280
1405
|
/**
|
|
1281
1406
|
* Specialized version of `std::optional<RNSize>`.
|
|
@@ -94,6 +94,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotFormat; }
|
|
|
94
94
|
namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
|
|
95
95
|
// Forward declaration of `RNSnapshotResultType` to properly resolve imports.
|
|
96
96
|
namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
97
|
+
// Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
|
|
98
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
|
|
97
99
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
98
100
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
99
101
|
|
|
@@ -141,6 +143,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
141
143
|
#include "RNSnapshotFormat.hpp"
|
|
142
144
|
#include "RNSnapshotOptions.hpp"
|
|
143
145
|
#include "RNSnapshotResultType.hpp"
|
|
146
|
+
#include "RNUrlTileOverlay.hpp"
|
|
144
147
|
#include "RNUserInterfaceStyle.hpp"
|
|
145
148
|
#include <NitroModules/Promise.hpp>
|
|
146
149
|
#include <NitroModules/Result.hpp>
|
|
@@ -54,6 +54,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
|
54
54
|
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
|
|
55
55
|
// Forward declaration of `RNKMLayer` to properly resolve imports.
|
|
56
56
|
namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
|
|
57
|
+
// Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
|
|
57
59
|
// Forward declaration of `RNLocationConfig` to properly resolve imports.
|
|
58
60
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
|
|
59
61
|
// Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
|
|
@@ -66,6 +68,10 @@ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
|
|
|
66
68
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
67
69
|
// Forward declaration of `RNMapErrorCode` to properly resolve imports.
|
|
68
70
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
71
|
+
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
73
|
+
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
69
75
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
70
76
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
71
77
|
// Forward declaration of `RNLocationAndroid` to properly resolve imports.
|
|
@@ -78,10 +84,6 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
|
|
|
78
84
|
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
|
|
79
85
|
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
80
86
|
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
81
|
-
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
82
|
-
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
83
|
-
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
84
|
-
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
85
87
|
// Forward declaration of `RNSnapshotOptions` to properly resolve imports.
|
|
86
88
|
namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
|
|
87
89
|
// Forward declaration of `RNSize` to properly resolve imports.
|
|
@@ -121,6 +123,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
121
123
|
#include "RNHeatmapPoint.hpp"
|
|
122
124
|
#include "RNHeatmapGradient.hpp"
|
|
123
125
|
#include "RNKMLayer.hpp"
|
|
126
|
+
#include "RNUrlTileOverlay.hpp"
|
|
124
127
|
#include "RNLocationConfig.hpp"
|
|
125
128
|
#include "RNAndroidLocationConfig.hpp"
|
|
126
129
|
#include "RNAndroidLocationPriority.hpp"
|
|
@@ -128,14 +131,14 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
128
131
|
#include "RNIOSLocationAccuracy.hpp"
|
|
129
132
|
#include "RNMapErrorCode.hpp"
|
|
130
133
|
#include <functional>
|
|
134
|
+
#include "RNRegion.hpp"
|
|
135
|
+
#include "RNLatLngBounds.hpp"
|
|
131
136
|
#include "RNLocation.hpp"
|
|
132
137
|
#include "RNLocationAndroid.hpp"
|
|
133
138
|
#include "RNLocationIOS.hpp"
|
|
134
139
|
#include "RNLocationErrorCode.hpp"
|
|
135
140
|
#include "RNIndoorBuilding.hpp"
|
|
136
141
|
#include "RNIndoorLevel.hpp"
|
|
137
|
-
#include "RNRegion.hpp"
|
|
138
|
-
#include "RNLatLngBounds.hpp"
|
|
139
142
|
#include <NitroModules/Promise.hpp>
|
|
140
143
|
#include "RNSnapshotOptions.hpp"
|
|
141
144
|
#include "RNSize.hpp"
|
|
@@ -301,6 +304,13 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
301
304
|
inline void setKmlLayers(const std::optional<std::vector<RNKMLayer>>& kmlLayers) noexcept override {
|
|
302
305
|
_swiftPart.setKmlLayers(kmlLayers);
|
|
303
306
|
}
|
|
307
|
+
inline std::optional<std::vector<RNUrlTileOverlay>> getUrlTileOverlays() noexcept override {
|
|
308
|
+
auto __result = _swiftPart.getUrlTileOverlays();
|
|
309
|
+
return __result;
|
|
310
|
+
}
|
|
311
|
+
inline void setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) noexcept override {
|
|
312
|
+
_swiftPart.setUrlTileOverlays(urlTileOverlays);
|
|
313
|
+
}
|
|
304
314
|
inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
|
|
305
315
|
auto __result = _swiftPart.getLocationConfig();
|
|
306
316
|
return __result;
|
|
@@ -322,11 +332,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
322
332
|
inline void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) noexcept override {
|
|
323
333
|
_swiftPart.setOnMapReady(onMapReady);
|
|
324
334
|
}
|
|
325
|
-
inline std::optional<std::function<void(
|
|
335
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> getOnMapLoaded() noexcept override {
|
|
326
336
|
auto __result = _swiftPart.getOnMapLoaded();
|
|
327
337
|
return __result;
|
|
328
338
|
}
|
|
329
|
-
inline void setOnMapLoaded(const std::optional<std::function<void(
|
|
339
|
+
inline void setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& onMapLoaded) noexcept override {
|
|
330
340
|
_swiftPart.setOnMapLoaded(onMapLoaded);
|
|
331
341
|
}
|
|
332
342
|
inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() noexcept override {
|
|
@@ -357,53 +367,60 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
357
367
|
inline void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) noexcept override {
|
|
358
368
|
_swiftPart.setOnMapLongPress(onMapLongPress);
|
|
359
369
|
}
|
|
360
|
-
inline std::optional<std::function<void(const std::
|
|
370
|
+
inline std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> getOnPoiPress() noexcept override {
|
|
371
|
+
auto __result = _swiftPart.getOnPoiPress();
|
|
372
|
+
return __result;
|
|
373
|
+
}
|
|
374
|
+
inline void setOnPoiPress(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& onPoiPress) noexcept override {
|
|
375
|
+
_swiftPart.setOnPoiPress(onPoiPress);
|
|
376
|
+
}
|
|
377
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() noexcept override {
|
|
361
378
|
auto __result = _swiftPart.getOnMarkerPress();
|
|
362
379
|
return __result;
|
|
363
380
|
}
|
|
364
|
-
inline void setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
381
|
+
inline void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) noexcept override {
|
|
365
382
|
_swiftPart.setOnMarkerPress(onMarkerPress);
|
|
366
383
|
}
|
|
367
|
-
inline std::optional<std::function<void(const std::
|
|
384
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() noexcept override {
|
|
368
385
|
auto __result = _swiftPart.getOnPolylinePress();
|
|
369
386
|
return __result;
|
|
370
387
|
}
|
|
371
|
-
inline void setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
388
|
+
inline void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) noexcept override {
|
|
372
389
|
_swiftPart.setOnPolylinePress(onPolylinePress);
|
|
373
390
|
}
|
|
374
|
-
inline std::optional<std::function<void(const std::
|
|
391
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() noexcept override {
|
|
375
392
|
auto __result = _swiftPart.getOnPolygonPress();
|
|
376
393
|
return __result;
|
|
377
394
|
}
|
|
378
|
-
inline void setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
395
|
+
inline void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) noexcept override {
|
|
379
396
|
_swiftPart.setOnPolygonPress(onPolygonPress);
|
|
380
397
|
}
|
|
381
|
-
inline std::optional<std::function<void(const std::
|
|
398
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() noexcept override {
|
|
382
399
|
auto __result = _swiftPart.getOnCirclePress();
|
|
383
400
|
return __result;
|
|
384
401
|
}
|
|
385
|
-
inline void setOnCirclePress(const std::optional<std::function<void(const std::
|
|
402
|
+
inline void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) noexcept override {
|
|
386
403
|
_swiftPart.setOnCirclePress(onCirclePress);
|
|
387
404
|
}
|
|
388
|
-
inline std::optional<std::function<void(const std::
|
|
405
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() noexcept override {
|
|
389
406
|
auto __result = _swiftPart.getOnMarkerDragStart();
|
|
390
407
|
return __result;
|
|
391
408
|
}
|
|
392
|
-
inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
409
|
+
inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) noexcept override {
|
|
393
410
|
_swiftPart.setOnMarkerDragStart(onMarkerDragStart);
|
|
394
411
|
}
|
|
395
|
-
inline std::optional<std::function<void(const std::
|
|
412
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() noexcept override {
|
|
396
413
|
auto __result = _swiftPart.getOnMarkerDrag();
|
|
397
414
|
return __result;
|
|
398
415
|
}
|
|
399
|
-
inline void setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
416
|
+
inline void setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) noexcept override {
|
|
400
417
|
_swiftPart.setOnMarkerDrag(onMarkerDrag);
|
|
401
418
|
}
|
|
402
|
-
inline std::optional<std::function<void(const std::
|
|
419
|
+
inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() noexcept override {
|
|
403
420
|
auto __result = _swiftPart.getOnMarkerDragEnd();
|
|
404
421
|
return __result;
|
|
405
422
|
}
|
|
406
|
-
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
423
|
+
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
|
|
407
424
|
_swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
|
|
408
425
|
}
|
|
409
426
|
inline std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() noexcept override {
|
|
@@ -420,6 +437,41 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
420
437
|
inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) noexcept override {
|
|
421
438
|
_swiftPart.setOnIndoorLevelActivated(onIndoorLevelActivated);
|
|
422
439
|
}
|
|
440
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() noexcept override {
|
|
441
|
+
auto __result = _swiftPart.getOnInfoWindowPress();
|
|
442
|
+
return __result;
|
|
443
|
+
}
|
|
444
|
+
inline void setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) noexcept override {
|
|
445
|
+
_swiftPart.setOnInfoWindowPress(onInfoWindowPress);
|
|
446
|
+
}
|
|
447
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowClose() noexcept override {
|
|
448
|
+
auto __result = _swiftPart.getOnInfoWindowClose();
|
|
449
|
+
return __result;
|
|
450
|
+
}
|
|
451
|
+
inline void setOnInfoWindowClose(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowClose) noexcept override {
|
|
452
|
+
_swiftPart.setOnInfoWindowClose(onInfoWindowClose);
|
|
453
|
+
}
|
|
454
|
+
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowLongPress() noexcept override {
|
|
455
|
+
auto __result = _swiftPart.getOnInfoWindowLongPress();
|
|
456
|
+
return __result;
|
|
457
|
+
}
|
|
458
|
+
inline void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowLongPress) noexcept override {
|
|
459
|
+
_swiftPart.setOnInfoWindowLongPress(onInfoWindowLongPress);
|
|
460
|
+
}
|
|
461
|
+
inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnMyLocationPress() noexcept override {
|
|
462
|
+
auto __result = _swiftPart.getOnMyLocationPress();
|
|
463
|
+
return __result;
|
|
464
|
+
}
|
|
465
|
+
inline void setOnMyLocationPress(const std::optional<std::function<void(const RNLocation& /* location */)>>& onMyLocationPress) noexcept override {
|
|
466
|
+
_swiftPart.setOnMyLocationPress(onMyLocationPress);
|
|
467
|
+
}
|
|
468
|
+
inline std::optional<std::function<void(bool /* pressed */)>> getOnMyLocationButtonPress() noexcept override {
|
|
469
|
+
auto __result = _swiftPart.getOnMyLocationButtonPress();
|
|
470
|
+
return __result;
|
|
471
|
+
}
|
|
472
|
+
inline void setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) noexcept override {
|
|
473
|
+
_swiftPart.setOnMyLocationButtonPress(onMyLocationButtonPress);
|
|
474
|
+
}
|
|
423
475
|
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
|
|
424
476
|
auto __result = _swiftPart.getOnCameraChangeStart();
|
|
425
477
|
return __result;
|
|
@@ -444,6 +496,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
444
496
|
|
|
445
497
|
public:
|
|
446
498
|
// Methods
|
|
499
|
+
inline void showMarkerInfoWindow(const std::string& id) override {
|
|
500
|
+
auto __result = _swiftPart.showMarkerInfoWindow(id);
|
|
501
|
+
if (__result.hasError()) [[unlikely]] {
|
|
502
|
+
std::rethrow_exception(__result.error());
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
inline void hideMarkerInfoWindow(const std::string& id) override {
|
|
506
|
+
auto __result = _swiftPart.hideMarkerInfoWindow(id);
|
|
507
|
+
if (__result.hasError()) [[unlikely]] {
|
|
508
|
+
std::rethrow_exception(__result.error());
|
|
509
|
+
}
|
|
510
|
+
}
|
|
447
511
|
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
448
512
|
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
|
|
449
513
|
if (__result.hasError()) [[unlikely]] {
|
|
@@ -171,6 +171,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
171
171
|
swiftPart.setKmlLayers(newViewProps.kmlLayers.value);
|
|
172
172
|
newViewProps.kmlLayers.isDirty = false;
|
|
173
173
|
}
|
|
174
|
+
// urlTileOverlays: optional
|
|
175
|
+
if (newViewProps.urlTileOverlays.isDirty) {
|
|
176
|
+
swiftPart.setUrlTileOverlays(newViewProps.urlTileOverlays.value);
|
|
177
|
+
newViewProps.urlTileOverlays.isDirty = false;
|
|
178
|
+
}
|
|
174
179
|
// locationConfig: optional
|
|
175
180
|
if (newViewProps.locationConfig.isDirty) {
|
|
176
181
|
swiftPart.setLocationConfig(newViewProps.locationConfig.value);
|
|
@@ -211,6 +216,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
211
216
|
swiftPart.setOnMapLongPress(newViewProps.onMapLongPress.value);
|
|
212
217
|
newViewProps.onMapLongPress.isDirty = false;
|
|
213
218
|
}
|
|
219
|
+
// onPoiPress: optional
|
|
220
|
+
if (newViewProps.onPoiPress.isDirty) {
|
|
221
|
+
swiftPart.setOnPoiPress(newViewProps.onPoiPress.value);
|
|
222
|
+
newViewProps.onPoiPress.isDirty = false;
|
|
223
|
+
}
|
|
214
224
|
// onMarkerPress: optional
|
|
215
225
|
if (newViewProps.onMarkerPress.isDirty) {
|
|
216
226
|
swiftPart.setOnMarkerPress(newViewProps.onMarkerPress.value);
|
|
@@ -256,6 +266,31 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
256
266
|
swiftPart.setOnIndoorLevelActivated(newViewProps.onIndoorLevelActivated.value);
|
|
257
267
|
newViewProps.onIndoorLevelActivated.isDirty = false;
|
|
258
268
|
}
|
|
269
|
+
// onInfoWindowPress: optional
|
|
270
|
+
if (newViewProps.onInfoWindowPress.isDirty) {
|
|
271
|
+
swiftPart.setOnInfoWindowPress(newViewProps.onInfoWindowPress.value);
|
|
272
|
+
newViewProps.onInfoWindowPress.isDirty = false;
|
|
273
|
+
}
|
|
274
|
+
// onInfoWindowClose: optional
|
|
275
|
+
if (newViewProps.onInfoWindowClose.isDirty) {
|
|
276
|
+
swiftPart.setOnInfoWindowClose(newViewProps.onInfoWindowClose.value);
|
|
277
|
+
newViewProps.onInfoWindowClose.isDirty = false;
|
|
278
|
+
}
|
|
279
|
+
// onInfoWindowLongPress: optional
|
|
280
|
+
if (newViewProps.onInfoWindowLongPress.isDirty) {
|
|
281
|
+
swiftPart.setOnInfoWindowLongPress(newViewProps.onInfoWindowLongPress.value);
|
|
282
|
+
newViewProps.onInfoWindowLongPress.isDirty = false;
|
|
283
|
+
}
|
|
284
|
+
// onMyLocationPress: optional
|
|
285
|
+
if (newViewProps.onMyLocationPress.isDirty) {
|
|
286
|
+
swiftPart.setOnMyLocationPress(newViewProps.onMyLocationPress.value);
|
|
287
|
+
newViewProps.onMyLocationPress.isDirty = false;
|
|
288
|
+
}
|
|
289
|
+
// onMyLocationButtonPress: optional
|
|
290
|
+
if (newViewProps.onMyLocationButtonPress.isDirty) {
|
|
291
|
+
swiftPart.setOnMyLocationButtonPress(newViewProps.onMyLocationButtonPress.value);
|
|
292
|
+
newViewProps.onMyLocationButtonPress.isDirty = false;
|
|
293
|
+
}
|
|
259
294
|
// onCameraChangeStart: optional
|
|
260
295
|
if (newViewProps.onCameraChangeStart.isDirty) {
|
|
261
296
|
swiftPart.setOnCameraChangeStart(newViewProps.onCameraChangeStart.value);
|