react-native-google-maps-plus 1.7.0-dev.8 → 1.7.0
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 +122 -126
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +33 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +27 -11
- package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +35 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +31 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
- package/ios/GoogleMapViewImpl.swift +83 -66
- package/ios/MapMarkerBuilder.swift +55 -2
- package/ios/RNGoogleMapsPlusView.swift +20 -10
- package/ios/extensions/MapObjectTag+Extension.swift +93 -0
- package/ios/extensions/UIImage+Extension.swift +45 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +12 -10
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +3 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
- 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++/JHybridRNGoogleMapsPlusViewSpec.cpp +100 -92
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/android/c++/JRNMapUiSettings.hpp +11 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
- 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/HybridRNGoogleMapsPlusViewSpec.kt +38 -30
- 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/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +58 -36
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +32 -20
- 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/HybridRNGoogleMapsPlusViewSpec.swift +12 -10
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +142 -180
- package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +61 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +10 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +20 -20
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +10 -10
- package/package.json +1 -1
- package/src/RNGoogleMapsPlusView.nitro.ts +14 -10
- package/src/types.ts +3 -0
- 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
|
@@ -811,14 +811,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
|
|
814
|
-
public final var onMarkerPress: bridge.
|
|
814
|
+
public final var onMarkerPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
815
815
|
@inline(__always)
|
|
816
816
|
get {
|
|
817
|
-
return { () -> bridge.
|
|
817
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
818
818
|
if let __unwrappedValue = self.__implementation.onMarkerPress {
|
|
819
|
-
return bridge.
|
|
820
|
-
let __closureWrapper =
|
|
821
|
-
return bridge.
|
|
819
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
820
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
821
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
822
822
|
}())
|
|
823
823
|
} else {
|
|
824
824
|
return .init()
|
|
@@ -827,19 +827,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
827
827
|
}
|
|
828
828
|
@inline(__always)
|
|
829
829
|
set {
|
|
830
|
-
self.__implementation.onMarkerPress = { () -> ((_ id: String
|
|
831
|
-
if bridge.
|
|
832
|
-
let __unwrapped = bridge.
|
|
833
|
-
return { () -> (String
|
|
834
|
-
let __wrappedFunction = bridge.
|
|
835
|
-
return { (__id: String
|
|
836
|
-
__wrappedFunction.call(
|
|
837
|
-
if let __unwrappedValue = __id {
|
|
838
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
839
|
-
} else {
|
|
840
|
-
return .init()
|
|
841
|
-
}
|
|
842
|
-
}())
|
|
830
|
+
self.__implementation.onMarkerPress = { () -> ((_ id: String) -> Void)? in
|
|
831
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
832
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
833
|
+
return { () -> (String) -> Void in
|
|
834
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
835
|
+
return { (__id: String) -> Void in
|
|
836
|
+
__wrappedFunction.call(std.string(__id))
|
|
843
837
|
}
|
|
844
838
|
}()
|
|
845
839
|
} else {
|
|
@@ -849,14 +843,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
849
843
|
}
|
|
850
844
|
}
|
|
851
845
|
|
|
852
|
-
public final var onPolylinePress: bridge.
|
|
846
|
+
public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
853
847
|
@inline(__always)
|
|
854
848
|
get {
|
|
855
|
-
return { () -> bridge.
|
|
849
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
856
850
|
if let __unwrappedValue = self.__implementation.onPolylinePress {
|
|
857
|
-
return bridge.
|
|
858
|
-
let __closureWrapper =
|
|
859
|
-
return bridge.
|
|
851
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
852
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
853
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
860
854
|
}())
|
|
861
855
|
} else {
|
|
862
856
|
return .init()
|
|
@@ -865,19 +859,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
865
859
|
}
|
|
866
860
|
@inline(__always)
|
|
867
861
|
set {
|
|
868
|
-
self.__implementation.onPolylinePress = { () -> ((_ id: String
|
|
869
|
-
if bridge.
|
|
870
|
-
let __unwrapped = bridge.
|
|
871
|
-
return { () -> (String
|
|
872
|
-
let __wrappedFunction = bridge.
|
|
873
|
-
return { (__id: String
|
|
874
|
-
__wrappedFunction.call(
|
|
875
|
-
if let __unwrappedValue = __id {
|
|
876
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
877
|
-
} else {
|
|
878
|
-
return .init()
|
|
879
|
-
}
|
|
880
|
-
}())
|
|
862
|
+
self.__implementation.onPolylinePress = { () -> ((_ id: String) -> Void)? in
|
|
863
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
864
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
865
|
+
return { () -> (String) -> Void in
|
|
866
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
867
|
+
return { (__id: String) -> Void in
|
|
868
|
+
__wrappedFunction.call(std.string(__id))
|
|
881
869
|
}
|
|
882
870
|
}()
|
|
883
871
|
} else {
|
|
@@ -887,14 +875,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
887
875
|
}
|
|
888
876
|
}
|
|
889
877
|
|
|
890
|
-
public final var onPolygonPress: bridge.
|
|
878
|
+
public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
891
879
|
@inline(__always)
|
|
892
880
|
get {
|
|
893
|
-
return { () -> bridge.
|
|
881
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
894
882
|
if let __unwrappedValue = self.__implementation.onPolygonPress {
|
|
895
|
-
return bridge.
|
|
896
|
-
let __closureWrapper =
|
|
897
|
-
return bridge.
|
|
883
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
884
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
885
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
898
886
|
}())
|
|
899
887
|
} else {
|
|
900
888
|
return .init()
|
|
@@ -903,19 +891,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
903
891
|
}
|
|
904
892
|
@inline(__always)
|
|
905
893
|
set {
|
|
906
|
-
self.__implementation.onPolygonPress = { () -> ((_ id: String
|
|
907
|
-
if bridge.
|
|
908
|
-
let __unwrapped = bridge.
|
|
909
|
-
return { () -> (String
|
|
910
|
-
let __wrappedFunction = bridge.
|
|
911
|
-
return { (__id: String
|
|
912
|
-
__wrappedFunction.call(
|
|
913
|
-
if let __unwrappedValue = __id {
|
|
914
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
915
|
-
} else {
|
|
916
|
-
return .init()
|
|
917
|
-
}
|
|
918
|
-
}())
|
|
894
|
+
self.__implementation.onPolygonPress = { () -> ((_ id: String) -> Void)? in
|
|
895
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
896
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
897
|
+
return { () -> (String) -> Void in
|
|
898
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
899
|
+
return { (__id: String) -> Void in
|
|
900
|
+
__wrappedFunction.call(std.string(__id))
|
|
919
901
|
}
|
|
920
902
|
}()
|
|
921
903
|
} else {
|
|
@@ -925,14 +907,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
925
907
|
}
|
|
926
908
|
}
|
|
927
909
|
|
|
928
|
-
public final var onCirclePress: bridge.
|
|
910
|
+
public final var onCirclePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
929
911
|
@inline(__always)
|
|
930
912
|
get {
|
|
931
|
-
return { () -> bridge.
|
|
913
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
932
914
|
if let __unwrappedValue = self.__implementation.onCirclePress {
|
|
933
|
-
return bridge.
|
|
934
|
-
let __closureWrapper =
|
|
935
|
-
return bridge.
|
|
915
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
916
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
917
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
936
918
|
}())
|
|
937
919
|
} else {
|
|
938
920
|
return .init()
|
|
@@ -941,19 +923,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
941
923
|
}
|
|
942
924
|
@inline(__always)
|
|
943
925
|
set {
|
|
944
|
-
self.__implementation.onCirclePress = { () -> ((_ id: String
|
|
945
|
-
if bridge.
|
|
946
|
-
let __unwrapped = bridge.
|
|
947
|
-
return { () -> (String
|
|
948
|
-
let __wrappedFunction = bridge.
|
|
949
|
-
return { (__id: String
|
|
950
|
-
__wrappedFunction.call(
|
|
951
|
-
if let __unwrappedValue = __id {
|
|
952
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
953
|
-
} else {
|
|
954
|
-
return .init()
|
|
955
|
-
}
|
|
956
|
-
}())
|
|
926
|
+
self.__implementation.onCirclePress = { () -> ((_ id: String) -> Void)? in
|
|
927
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
928
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
929
|
+
return { () -> (String) -> Void in
|
|
930
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
931
|
+
return { (__id: String) -> Void in
|
|
932
|
+
__wrappedFunction.call(std.string(__id))
|
|
957
933
|
}
|
|
958
934
|
}()
|
|
959
935
|
} else {
|
|
@@ -963,14 +939,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
963
939
|
}
|
|
964
940
|
}
|
|
965
941
|
|
|
966
|
-
public final var onMarkerDragStart: bridge.
|
|
942
|
+
public final var onMarkerDragStart: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
|
|
967
943
|
@inline(__always)
|
|
968
944
|
get {
|
|
969
|
-
return { () -> bridge.
|
|
945
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
|
|
970
946
|
if let __unwrappedValue = self.__implementation.onMarkerDragStart {
|
|
971
|
-
return bridge.
|
|
972
|
-
let __closureWrapper =
|
|
973
|
-
return bridge.
|
|
947
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
|
|
948
|
+
let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
|
|
949
|
+
return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
|
|
974
950
|
}())
|
|
975
951
|
} else {
|
|
976
952
|
return .init()
|
|
@@ -979,19 +955,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
979
955
|
}
|
|
980
956
|
@inline(__always)
|
|
981
957
|
set {
|
|
982
|
-
self.__implementation.onMarkerDragStart = { () -> ((_ id: String
|
|
983
|
-
if bridge.
|
|
984
|
-
let __unwrapped = bridge.
|
|
985
|
-
return { () -> (String
|
|
986
|
-
let __wrappedFunction = bridge.
|
|
987
|
-
return { (__id: String
|
|
988
|
-
__wrappedFunction.call(
|
|
989
|
-
if let __unwrappedValue = __id {
|
|
990
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
991
|
-
} else {
|
|
992
|
-
return .init()
|
|
993
|
-
}
|
|
994
|
-
}(), __location)
|
|
958
|
+
self.__implementation.onMarkerDragStart = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
|
|
959
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
|
|
960
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
|
|
961
|
+
return { () -> (String, RNLatLng) -> Void in
|
|
962
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
|
|
963
|
+
return { (__id: String, __location: RNLatLng) -> Void in
|
|
964
|
+
__wrappedFunction.call(std.string(__id), __location)
|
|
995
965
|
}
|
|
996
966
|
}()
|
|
997
967
|
} else {
|
|
@@ -1001,14 +971,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1001
971
|
}
|
|
1002
972
|
}
|
|
1003
973
|
|
|
1004
|
-
public final var onMarkerDrag: bridge.
|
|
974
|
+
public final var onMarkerDrag: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
|
|
1005
975
|
@inline(__always)
|
|
1006
976
|
get {
|
|
1007
|
-
return { () -> bridge.
|
|
977
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
|
|
1008
978
|
if let __unwrappedValue = self.__implementation.onMarkerDrag {
|
|
1009
|
-
return bridge.
|
|
1010
|
-
let __closureWrapper =
|
|
1011
|
-
return bridge.
|
|
979
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
|
|
980
|
+
let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
|
|
981
|
+
return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
|
|
1012
982
|
}())
|
|
1013
983
|
} else {
|
|
1014
984
|
return .init()
|
|
@@ -1017,19 +987,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1017
987
|
}
|
|
1018
988
|
@inline(__always)
|
|
1019
989
|
set {
|
|
1020
|
-
self.__implementation.onMarkerDrag = { () -> ((_ id: String
|
|
1021
|
-
if bridge.
|
|
1022
|
-
let __unwrapped = bridge.
|
|
1023
|
-
return { () -> (String
|
|
1024
|
-
let __wrappedFunction = bridge.
|
|
1025
|
-
return { (__id: String
|
|
1026
|
-
__wrappedFunction.call(
|
|
1027
|
-
if let __unwrappedValue = __id {
|
|
1028
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1029
|
-
} else {
|
|
1030
|
-
return .init()
|
|
1031
|
-
}
|
|
1032
|
-
}(), __location)
|
|
990
|
+
self.__implementation.onMarkerDrag = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
|
|
991
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
|
|
992
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
|
|
993
|
+
return { () -> (String, RNLatLng) -> Void in
|
|
994
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
|
|
995
|
+
return { (__id: String, __location: RNLatLng) -> Void in
|
|
996
|
+
__wrappedFunction.call(std.string(__id), __location)
|
|
1033
997
|
}
|
|
1034
998
|
}()
|
|
1035
999
|
} else {
|
|
@@ -1039,14 +1003,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1039
1003
|
}
|
|
1040
1004
|
}
|
|
1041
1005
|
|
|
1042
|
-
public final var onMarkerDragEnd: bridge.
|
|
1006
|
+
public final var onMarkerDragEnd: bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ {
|
|
1043
1007
|
@inline(__always)
|
|
1044
1008
|
get {
|
|
1045
|
-
return { () -> bridge.
|
|
1009
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ in
|
|
1046
1010
|
if let __unwrappedValue = self.__implementation.onMarkerDragEnd {
|
|
1047
|
-
return bridge.
|
|
1048
|
-
let __closureWrapper =
|
|
1049
|
-
return bridge.
|
|
1011
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______({ () -> bridge.Func_void_std__string_RNLatLng in
|
|
1012
|
+
let __closureWrapper = Func_void_std__string_RNLatLng(__unwrappedValue)
|
|
1013
|
+
return bridge.create_Func_void_std__string_RNLatLng(__closureWrapper.toUnsafe())
|
|
1050
1014
|
}())
|
|
1051
1015
|
} else {
|
|
1052
1016
|
return .init()
|
|
@@ -1055,19 +1019,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1055
1019
|
}
|
|
1056
1020
|
@inline(__always)
|
|
1057
1021
|
set {
|
|
1058
|
-
self.__implementation.onMarkerDragEnd = { () -> ((_ id: String
|
|
1059
|
-
if bridge.
|
|
1060
|
-
let __unwrapped = bridge.
|
|
1061
|
-
return { () -> (String
|
|
1062
|
-
let __wrappedFunction = bridge.
|
|
1063
|
-
return { (__id: String
|
|
1064
|
-
__wrappedFunction.call(
|
|
1065
|
-
if let __unwrappedValue = __id {
|
|
1066
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1067
|
-
} else {
|
|
1068
|
-
return .init()
|
|
1069
|
-
}
|
|
1070
|
-
}(), __location)
|
|
1022
|
+
self.__implementation.onMarkerDragEnd = { () -> ((_ id: String, _ location: RNLatLng) -> Void)? in
|
|
1023
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue) {
|
|
1024
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(newValue)
|
|
1025
|
+
return { () -> (String, RNLatLng) -> Void in
|
|
1026
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string_RNLatLng(__unwrapped)
|
|
1027
|
+
return { (__id: String, __location: RNLatLng) -> Void in
|
|
1028
|
+
__wrappedFunction.call(std.string(__id), __location)
|
|
1071
1029
|
}
|
|
1072
1030
|
}()
|
|
1073
1031
|
} else {
|
|
@@ -1141,14 +1099,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1141
1099
|
}
|
|
1142
1100
|
}
|
|
1143
1101
|
|
|
1144
|
-
public final var onInfoWindowPress: bridge.
|
|
1102
|
+
public final var onInfoWindowPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
1145
1103
|
@inline(__always)
|
|
1146
1104
|
get {
|
|
1147
|
-
return { () -> bridge.
|
|
1105
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
1148
1106
|
if let __unwrappedValue = self.__implementation.onInfoWindowPress {
|
|
1149
|
-
return bridge.
|
|
1150
|
-
let __closureWrapper =
|
|
1151
|
-
return bridge.
|
|
1107
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
1108
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1109
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1152
1110
|
}())
|
|
1153
1111
|
} else {
|
|
1154
1112
|
return .init()
|
|
@@ -1157,19 +1115,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1157
1115
|
}
|
|
1158
1116
|
@inline(__always)
|
|
1159
1117
|
set {
|
|
1160
|
-
self.__implementation.onInfoWindowPress = { () -> ((_ id: String
|
|
1161
|
-
if bridge.
|
|
1162
|
-
let __unwrapped = bridge.
|
|
1163
|
-
return { () -> (String
|
|
1164
|
-
let __wrappedFunction = bridge.
|
|
1165
|
-
return { (__id: String
|
|
1166
|
-
__wrappedFunction.call(
|
|
1167
|
-
if let __unwrappedValue = __id {
|
|
1168
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1169
|
-
} else {
|
|
1170
|
-
return .init()
|
|
1171
|
-
}
|
|
1172
|
-
}())
|
|
1118
|
+
self.__implementation.onInfoWindowPress = { () -> ((_ id: String) -> Void)? in
|
|
1119
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
1120
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
1121
|
+
return { () -> (String) -> Void in
|
|
1122
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1123
|
+
return { (__id: String) -> Void in
|
|
1124
|
+
__wrappedFunction.call(std.string(__id))
|
|
1173
1125
|
}
|
|
1174
1126
|
}()
|
|
1175
1127
|
} else {
|
|
@@ -1179,14 +1131,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1179
1131
|
}
|
|
1180
1132
|
}
|
|
1181
1133
|
|
|
1182
|
-
public final var onInfoWindowClose: bridge.
|
|
1134
|
+
public final var onInfoWindowClose: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
1183
1135
|
@inline(__always)
|
|
1184
1136
|
get {
|
|
1185
|
-
return { () -> bridge.
|
|
1137
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
1186
1138
|
if let __unwrappedValue = self.__implementation.onInfoWindowClose {
|
|
1187
|
-
return bridge.
|
|
1188
|
-
let __closureWrapper =
|
|
1189
|
-
return bridge.
|
|
1139
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
1140
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1141
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1190
1142
|
}())
|
|
1191
1143
|
} else {
|
|
1192
1144
|
return .init()
|
|
@@ -1195,19 +1147,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1195
1147
|
}
|
|
1196
1148
|
@inline(__always)
|
|
1197
1149
|
set {
|
|
1198
|
-
self.__implementation.onInfoWindowClose = { () -> ((_ id: String
|
|
1199
|
-
if bridge.
|
|
1200
|
-
let __unwrapped = bridge.
|
|
1201
|
-
return { () -> (String
|
|
1202
|
-
let __wrappedFunction = bridge.
|
|
1203
|
-
return { (__id: String
|
|
1204
|
-
__wrappedFunction.call(
|
|
1205
|
-
if let __unwrappedValue = __id {
|
|
1206
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1207
|
-
} else {
|
|
1208
|
-
return .init()
|
|
1209
|
-
}
|
|
1210
|
-
}())
|
|
1150
|
+
self.__implementation.onInfoWindowClose = { () -> ((_ id: String) -> Void)? in
|
|
1151
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
1152
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
1153
|
+
return { () -> (String) -> Void in
|
|
1154
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1155
|
+
return { (__id: String) -> Void in
|
|
1156
|
+
__wrappedFunction.call(std.string(__id))
|
|
1211
1157
|
}
|
|
1212
1158
|
}()
|
|
1213
1159
|
} else {
|
|
@@ -1217,14 +1163,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1217
1163
|
}
|
|
1218
1164
|
}
|
|
1219
1165
|
|
|
1220
|
-
public final var onInfoWindowLongPress: bridge.
|
|
1166
|
+
public final var onInfoWindowLongPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
1221
1167
|
@inline(__always)
|
|
1222
1168
|
get {
|
|
1223
|
-
return { () -> bridge.
|
|
1169
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
1224
1170
|
if let __unwrappedValue = self.__implementation.onInfoWindowLongPress {
|
|
1225
|
-
return bridge.
|
|
1226
|
-
let __closureWrapper =
|
|
1227
|
-
return bridge.
|
|
1171
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
1172
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1173
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1228
1174
|
}())
|
|
1229
1175
|
} else {
|
|
1230
1176
|
return .init()
|
|
@@ -1233,19 +1179,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1233
1179
|
}
|
|
1234
1180
|
@inline(__always)
|
|
1235
1181
|
set {
|
|
1236
|
-
self.__implementation.onInfoWindowLongPress = { () -> ((_ id: String
|
|
1237
|
-
if bridge.
|
|
1238
|
-
let __unwrapped = bridge.
|
|
1239
|
-
return { () -> (String
|
|
1240
|
-
let __wrappedFunction = bridge.
|
|
1241
|
-
return { (__id: String
|
|
1242
|
-
__wrappedFunction.call(
|
|
1243
|
-
if let __unwrappedValue = __id {
|
|
1244
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1245
|
-
} else {
|
|
1246
|
-
return .init()
|
|
1247
|
-
}
|
|
1248
|
-
}())
|
|
1182
|
+
self.__implementation.onInfoWindowLongPress = { () -> ((_ id: String) -> Void)? in
|
|
1183
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
1184
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
1185
|
+
return { () -> (String) -> Void in
|
|
1186
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1187
|
+
return { (__id: String) -> Void in
|
|
1188
|
+
__wrappedFunction.call(std.string(__id))
|
|
1249
1189
|
}
|
|
1250
1190
|
}()
|
|
1251
1191
|
} else {
|
|
@@ -1416,6 +1356,28 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1416
1356
|
}
|
|
1417
1357
|
|
|
1418
1358
|
// Methods
|
|
1359
|
+
@inline(__always)
|
|
1360
|
+
public final func showMarkerInfoWindow(id: std.string) -> bridge.Result_void_ {
|
|
1361
|
+
do {
|
|
1362
|
+
try self.__implementation.showMarkerInfoWindow(id: String(id))
|
|
1363
|
+
return bridge.create_Result_void_()
|
|
1364
|
+
} catch (let __error) {
|
|
1365
|
+
let __exceptionPtr = __error.toCpp()
|
|
1366
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
@inline(__always)
|
|
1371
|
+
public final func hideMarkerInfoWindow(id: std.string) -> bridge.Result_void_ {
|
|
1372
|
+
do {
|
|
1373
|
+
try self.__implementation.hideMarkerInfoWindow(id: String(id))
|
|
1374
|
+
return bridge.create_Result_void_()
|
|
1375
|
+
} catch (let __error) {
|
|
1376
|
+
let __exceptionPtr = __error.toCpp()
|
|
1377
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1419
1381
|
@inline(__always)
|
|
1420
1382
|
public final func setCamera(camera: RNCamera, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
|
|
1421
1383
|
do {
|
|
@@ -18,7 +18,7 @@ public extension RNMapUiSettings {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNMapUiSettings`.
|
|
20
20
|
*/
|
|
21
|
-
init(allGesturesEnabled: Bool?, compassEnabled: Bool?, indoorLevelPickerEnabled: Bool?, mapToolbarEnabled: Bool?, myLocationButtonEnabled: Bool?, rotateEnabled: Bool?, scrollEnabled: Bool?, scrollDuringRotateOrZoomEnabled: Bool?, tiltEnabled: Bool?, zoomControlsEnabled: Bool?, zoomGesturesEnabled: Bool?) {
|
|
21
|
+
init(allGesturesEnabled: Bool?, compassEnabled: Bool?, indoorLevelPickerEnabled: Bool?, mapToolbarEnabled: Bool?, myLocationButtonEnabled: Bool?, rotateEnabled: Bool?, scrollEnabled: Bool?, scrollDuringRotateOrZoomEnabled: Bool?, tiltEnabled: Bool?, zoomControlsEnabled: Bool?, zoomGesturesEnabled: Bool?, consumeOnMarkerPress: Bool?, consumeOnMyLocationButtonPress: Bool?) {
|
|
22
22
|
self.init({ () -> bridge.std__optional_bool_ in
|
|
23
23
|
if let __unwrappedValue = allGesturesEnabled {
|
|
24
24
|
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
@@ -85,6 +85,18 @@ public extension RNMapUiSettings {
|
|
|
85
85
|
} else {
|
|
86
86
|
return .init()
|
|
87
87
|
}
|
|
88
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
89
|
+
if let __unwrappedValue = consumeOnMarkerPress {
|
|
90
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
91
|
+
} else {
|
|
92
|
+
return .init()
|
|
93
|
+
}
|
|
94
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
95
|
+
if let __unwrappedValue = consumeOnMyLocationButtonPress {
|
|
96
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
97
|
+
} else {
|
|
98
|
+
return .init()
|
|
99
|
+
}
|
|
88
100
|
}())
|
|
89
101
|
}
|
|
90
102
|
|
|
@@ -351,4 +363,52 @@ public extension RNMapUiSettings {
|
|
|
351
363
|
}()
|
|
352
364
|
}
|
|
353
365
|
}
|
|
366
|
+
|
|
367
|
+
var consumeOnMarkerPress: Bool? {
|
|
368
|
+
@inline(__always)
|
|
369
|
+
get {
|
|
370
|
+
return { () -> Bool? in
|
|
371
|
+
if bridge.has_value_std__optional_bool_(self.__consumeOnMarkerPress) {
|
|
372
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__consumeOnMarkerPress)
|
|
373
|
+
return __unwrapped
|
|
374
|
+
} else {
|
|
375
|
+
return nil
|
|
376
|
+
}
|
|
377
|
+
}()
|
|
378
|
+
}
|
|
379
|
+
@inline(__always)
|
|
380
|
+
set {
|
|
381
|
+
self.__consumeOnMarkerPress = { () -> bridge.std__optional_bool_ in
|
|
382
|
+
if let __unwrappedValue = newValue {
|
|
383
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
384
|
+
} else {
|
|
385
|
+
return .init()
|
|
386
|
+
}
|
|
387
|
+
}()
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
var consumeOnMyLocationButtonPress: Bool? {
|
|
392
|
+
@inline(__always)
|
|
393
|
+
get {
|
|
394
|
+
return { () -> Bool? in
|
|
395
|
+
if bridge.has_value_std__optional_bool_(self.__consumeOnMyLocationButtonPress) {
|
|
396
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__consumeOnMyLocationButtonPress)
|
|
397
|
+
return __unwrapped
|
|
398
|
+
} else {
|
|
399
|
+
return nil
|
|
400
|
+
}
|
|
401
|
+
}()
|
|
402
|
+
}
|
|
403
|
+
@inline(__always)
|
|
404
|
+
set {
|
|
405
|
+
self.__consumeOnMyLocationButtonPress = { () -> bridge.std__optional_bool_ in
|
|
406
|
+
if let __unwrappedValue = newValue {
|
|
407
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
408
|
+
} else {
|
|
409
|
+
return .init()
|
|
410
|
+
}
|
|
411
|
+
}()
|
|
412
|
+
}
|
|
413
|
+
}
|
|
354
414
|
}
|
|
@@ -18,7 +18,7 @@ public extension RNMarker {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNMarker`.
|
|
20
20
|
*/
|
|
21
|
-
init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?) {
|
|
21
|
+
init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?, infoWindowIconSvg: RNMarkerSvg?) {
|
|
22
22
|
self.init(std.string(id), { () -> bridge.std__optional_double_ in
|
|
23
23
|
if let __unwrappedValue = zIndex {
|
|
24
24
|
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
@@ -85,6 +85,12 @@ public extension RNMarker {
|
|
|
85
85
|
} else {
|
|
86
86
|
return .init()
|
|
87
87
|
}
|
|
88
|
+
}(), { () -> bridge.std__optional_RNMarkerSvg_ in
|
|
89
|
+
if let __unwrappedValue = infoWindowIconSvg {
|
|
90
|
+
return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
|
|
91
|
+
} else {
|
|
92
|
+
return .init()
|
|
93
|
+
}
|
|
88
94
|
}())
|
|
89
95
|
}
|
|
90
96
|
|
|
@@ -331,4 +337,21 @@ public extension RNMarker {
|
|
|
331
337
|
}()
|
|
332
338
|
}
|
|
333
339
|
}
|
|
340
|
+
|
|
341
|
+
var infoWindowIconSvg: RNMarkerSvg? {
|
|
342
|
+
@inline(__always)
|
|
343
|
+
get {
|
|
344
|
+
return self.__infoWindowIconSvg.value
|
|
345
|
+
}
|
|
346
|
+
@inline(__always)
|
|
347
|
+
set {
|
|
348
|
+
self.__infoWindowIconSvg = { () -> bridge.std__optional_RNMarkerSvg_ in
|
|
349
|
+
if let __unwrappedValue = newValue {
|
|
350
|
+
return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
|
|
351
|
+
} else {
|
|
352
|
+
return .init()
|
|
353
|
+
}
|
|
354
|
+
}()
|
|
355
|
+
}
|
|
356
|
+
}
|
|
334
357
|
}
|
|
@@ -102,6 +102,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
102
102
|
prototype.registerHybridSetter("onCameraChange", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChange);
|
|
103
103
|
prototype.registerHybridGetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::getOnCameraChangeComplete);
|
|
104
104
|
prototype.registerHybridSetter("onCameraChangeComplete", &HybridRNGoogleMapsPlusViewSpec::setOnCameraChangeComplete);
|
|
105
|
+
prototype.registerHybridMethod("showMarkerInfoWindow", &HybridRNGoogleMapsPlusViewSpec::showMarkerInfoWindow);
|
|
106
|
+
prototype.registerHybridMethod("hideMarkerInfoWindow", &HybridRNGoogleMapsPlusViewSpec::hideMarkerInfoWindow);
|
|
105
107
|
prototype.registerHybridMethod("setCamera", &HybridRNGoogleMapsPlusViewSpec::setCamera);
|
|
106
108
|
prototype.registerHybridMethod("setCameraToCoordinates", &HybridRNGoogleMapsPlusViewSpec::setCameraToCoordinates);
|
|
107
109
|
prototype.registerHybridMethod("setCameraBounds", &HybridRNGoogleMapsPlusViewSpec::setCameraBounds);
|