react-native-google-maps-plus 1.7.0 → 1.8.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/build.gradle +1 -1
- package/android/gradle.properties +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +2 -3
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +51 -54
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +6 -23
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +12 -39
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +3 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineCapTypeExtension.kt +14 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineJoinTypeExtension.kt +12 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapCircleExtension.kt +7 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +54 -17
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +31 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +6 -1
- package/ios/MapCircleBuilder.swift +2 -3
- package/ios/MapMarkerBuilder.swift +53 -50
- package/ios/MapPolygonBuilder.swift +6 -41
- package/ios/MapPolylineBuilder.swift +2 -10
- package/ios/RNGoogleMapsPlusView.swift +4 -1
- package/ios/extensions/RNCircle+Extension.swift +14 -5
- package/ios/extensions/RNLatLng+Extension.swift +11 -0
- package/ios/extensions/RNLineCapType+Extension.swift +10 -0
- package/ios/extensions/RNLineJoinType+Extension.swift +11 -0
- package/ios/extensions/RNMarker+Extension.swift +43 -12
- package/ios/extensions/RNPolygon+Extension.swift.swift +50 -21
- package/ios/extensions/RNPolyline+Extension.swift.swift +15 -26
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/types.d.ts +1 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +7 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +1 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +2 -5
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +31 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +1 -31
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +6 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +1 -5
- package/package.json +1 -1
- package/src/types.ts +1 -1
|
@@ -46,8 +46,6 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
46
46
|
jni::local_ref<JRNLatLng> coordinate = this->getFieldValue(fieldCoordinate);
|
|
47
47
|
static const auto fieldAnchor = clazz->getField<JRNPosition>("anchor");
|
|
48
48
|
jni::local_ref<JRNPosition> anchor = this->getFieldValue(fieldAnchor);
|
|
49
|
-
static const auto fieldShowInfoWindow = clazz->getField<jni::JBoolean>("showInfoWindow");
|
|
50
|
-
jni::local_ref<jni::JBoolean> showInfoWindow = this->getFieldValue(fieldShowInfoWindow);
|
|
51
49
|
static const auto fieldTitle = clazz->getField<jni::JString>("title");
|
|
52
50
|
jni::local_ref<jni::JString> title = this->getFieldValue(fieldTitle);
|
|
53
51
|
static const auto fieldSnippet = clazz->getField<jni::JString>("snippet");
|
|
@@ -71,7 +69,6 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
71
69
|
zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
|
|
72
70
|
coordinate->toCpp(),
|
|
73
71
|
anchor != nullptr ? std::make_optional(anchor->toCpp()) : std::nullopt,
|
|
74
|
-
showInfoWindow != nullptr ? std::make_optional(static_cast<bool>(showInfoWindow->value())) : std::nullopt,
|
|
75
72
|
title != nullptr ? std::make_optional(title->toStdString()) : std::nullopt,
|
|
76
73
|
snippet != nullptr ? std::make_optional(snippet->toStdString()) : std::nullopt,
|
|
77
74
|
opacity != nullptr ? std::make_optional(opacity->value()) : std::nullopt,
|
|
@@ -90,7 +87,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
90
87
|
*/
|
|
91
88
|
[[maybe_unused]]
|
|
92
89
|
static jni::local_ref<JRNMarker::javaobject> fromCpp(const RNMarker& value) {
|
|
93
|
-
using JSignature = JRNMarker(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNLatLng>, jni::alias_ref<JRNPosition>, jni::alias_ref<jni::
|
|
90
|
+
using JSignature = JRNMarker(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNLatLng>, jni::alias_ref<JRNPosition>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNPosition>, jni::alias_ref<JRNMarkerSvg>, jni::alias_ref<JRNMarkerSvg>);
|
|
94
91
|
static const auto clazz = javaClassStatic();
|
|
95
92
|
static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
|
|
96
93
|
return create(
|
|
@@ -99,7 +96,6 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
99
96
|
value.zIndex.has_value() ? jni::JDouble::valueOf(value.zIndex.value()) : nullptr,
|
|
100
97
|
JRNLatLng::fromCpp(value.coordinate),
|
|
101
98
|
value.anchor.has_value() ? JRNPosition::fromCpp(value.anchor.value()) : nullptr,
|
|
102
|
-
value.showInfoWindow.has_value() ? jni::JBoolean::valueOf(value.showInfoWindow.value()) : nullptr,
|
|
103
99
|
value.title.has_value() ? jni::make_jstring(value.title.value()) : nullptr,
|
|
104
100
|
value.snippet.has_value() ? jni::make_jstring(value.snippet.value()) : nullptr,
|
|
105
101
|
value.opacity.has_value() ? jni::JDouble::valueOf(value.opacity.value()) : nullptr,
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt
CHANGED
|
@@ -26,7 +26,10 @@ data class RNInitialProps(
|
|
|
26
26
|
val liteMode: Boolean?,
|
|
27
27
|
@DoNotStrip
|
|
28
28
|
@Keep
|
|
29
|
-
val camera: RNCamera
|
|
29
|
+
val camera: RNCamera?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val backgroundColor: String?
|
|
30
33
|
) {
|
|
31
34
|
private companion object {
|
|
32
35
|
/**
|
|
@@ -36,8 +39,8 @@ data class RNInitialProps(
|
|
|
36
39
|
@Keep
|
|
37
40
|
@Suppress("unused")
|
|
38
41
|
@JvmStatic
|
|
39
|
-
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera: RNCamera?): RNInitialProps {
|
|
40
|
-
return RNInitialProps(mapId, liteMode, camera)
|
|
42
|
+
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera: RNCamera?, backgroundColor: String?): RNInitialProps {
|
|
43
|
+
return RNInitialProps(mapId, liteMode, camera, backgroundColor)
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
}
|
|
@@ -32,9 +32,6 @@ data class RNMarker(
|
|
|
32
32
|
val anchor: RNPosition?,
|
|
33
33
|
@DoNotStrip
|
|
34
34
|
@Keep
|
|
35
|
-
val showInfoWindow: Boolean?,
|
|
36
|
-
@DoNotStrip
|
|
37
|
-
@Keep
|
|
38
35
|
val title: String?,
|
|
39
36
|
@DoNotStrip
|
|
40
37
|
@Keep
|
|
@@ -69,8 +66,8 @@ data class RNMarker(
|
|
|
69
66
|
@Keep
|
|
70
67
|
@Suppress("unused")
|
|
71
68
|
@JvmStatic
|
|
72
|
-
private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?,
|
|
73
|
-
return RNMarker(id, zIndex, coordinate, anchor,
|
|
69
|
+
private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, title: String?, snippet: String?, opacity: Double?, flat: Boolean?, draggable: Boolean?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?, infoWindowIconSvg: RNMarkerSvg?): RNMarker {
|
|
70
|
+
return RNMarker(id, zIndex, coordinate, anchor, title, snippet, opacity, flat, draggable, rotation, infoWindowAnchor, iconSvg, infoWindowIconSvg)
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
}
|
|
@@ -18,7 +18,7 @@ public extension RNInitialProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNInitialProps`.
|
|
20
20
|
*/
|
|
21
|
-
init(mapId: String?, liteMode: Bool?, camera: RNCamera?) {
|
|
21
|
+
init(mapId: String?, liteMode: Bool?, camera: RNCamera?, backgroundColor: String?) {
|
|
22
22
|
self.init({ () -> bridge.std__optional_std__string_ in
|
|
23
23
|
if let __unwrappedValue = mapId {
|
|
24
24
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
@@ -37,6 +37,12 @@ public extension RNInitialProps {
|
|
|
37
37
|
} else {
|
|
38
38
|
return .init()
|
|
39
39
|
}
|
|
40
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
41
|
+
if let __unwrappedValue = backgroundColor {
|
|
42
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
43
|
+
} else {
|
|
44
|
+
return .init()
|
|
45
|
+
}
|
|
40
46
|
}())
|
|
41
47
|
}
|
|
42
48
|
|
|
@@ -104,4 +110,28 @@ public extension RNInitialProps {
|
|
|
104
110
|
}()
|
|
105
111
|
}
|
|
106
112
|
}
|
|
113
|
+
|
|
114
|
+
var backgroundColor: String? {
|
|
115
|
+
@inline(__always)
|
|
116
|
+
get {
|
|
117
|
+
return { () -> String? in
|
|
118
|
+
if bridge.has_value_std__optional_std__string_(self.__backgroundColor) {
|
|
119
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__backgroundColor)
|
|
120
|
+
return String(__unwrapped)
|
|
121
|
+
} else {
|
|
122
|
+
return nil
|
|
123
|
+
}
|
|
124
|
+
}()
|
|
125
|
+
}
|
|
126
|
+
@inline(__always)
|
|
127
|
+
set {
|
|
128
|
+
self.__backgroundColor = { () -> bridge.std__optional_std__string_ in
|
|
129
|
+
if let __unwrappedValue = newValue {
|
|
130
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
131
|
+
} else {
|
|
132
|
+
return .init()
|
|
133
|
+
}
|
|
134
|
+
}()
|
|
135
|
+
}
|
|
136
|
+
}
|
|
107
137
|
}
|
|
@@ -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?,
|
|
21
|
+
init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, 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)
|
|
@@ -31,12 +31,6 @@ public extension RNMarker {
|
|
|
31
31
|
} else {
|
|
32
32
|
return .init()
|
|
33
33
|
}
|
|
34
|
-
}(), { () -> bridge.std__optional_bool_ in
|
|
35
|
-
if let __unwrappedValue = showInfoWindow {
|
|
36
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
37
|
-
} else {
|
|
38
|
-
return .init()
|
|
39
|
-
}
|
|
40
34
|
}(), { () -> bridge.std__optional_std__string_ in
|
|
41
35
|
if let __unwrappedValue = title {
|
|
42
36
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
@@ -150,30 +144,6 @@ public extension RNMarker {
|
|
|
150
144
|
}
|
|
151
145
|
}
|
|
152
146
|
|
|
153
|
-
var showInfoWindow: Bool? {
|
|
154
|
-
@inline(__always)
|
|
155
|
-
get {
|
|
156
|
-
return { () -> Bool? in
|
|
157
|
-
if bridge.has_value_std__optional_bool_(self.__showInfoWindow) {
|
|
158
|
-
let __unwrapped = bridge.get_std__optional_bool_(self.__showInfoWindow)
|
|
159
|
-
return __unwrapped
|
|
160
|
-
} else {
|
|
161
|
-
return nil
|
|
162
|
-
}
|
|
163
|
-
}()
|
|
164
|
-
}
|
|
165
|
-
@inline(__always)
|
|
166
|
-
set {
|
|
167
|
-
self.__showInfoWindow = { () -> bridge.std__optional_bool_ in
|
|
168
|
-
if let __unwrappedValue = newValue {
|
|
169
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
170
|
-
} else {
|
|
171
|
-
return .init()
|
|
172
|
-
}
|
|
173
|
-
}()
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
147
|
var title: String? {
|
|
178
148
|
@inline(__always)
|
|
179
149
|
get {
|
|
@@ -40,10 +40,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
40
40
|
std::optional<std::string> mapId SWIFT_PRIVATE;
|
|
41
41
|
std::optional<bool> liteMode SWIFT_PRIVATE;
|
|
42
42
|
std::optional<RNCamera> camera SWIFT_PRIVATE;
|
|
43
|
+
std::optional<std::string> backgroundColor SWIFT_PRIVATE;
|
|
43
44
|
|
|
44
45
|
public:
|
|
45
46
|
RNInitialProps() = default;
|
|
46
|
-
explicit RNInitialProps(std::optional<std::string> mapId, std::optional<bool> liteMode, std::optional<RNCamera> camera): mapId(mapId), liteMode(liteMode), camera(camera) {}
|
|
47
|
+
explicit RNInitialProps(std::optional<std::string> mapId, std::optional<bool> liteMode, std::optional<RNCamera> camera, std::optional<std::string> backgroundColor): mapId(mapId), liteMode(liteMode), camera(camera), backgroundColor(backgroundColor) {}
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -58,7 +59,8 @@ namespace margelo::nitro {
|
|
|
58
59
|
return margelo::nitro::rngooglemapsplus::RNInitialProps(
|
|
59
60
|
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "mapId")),
|
|
60
61
|
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "liteMode")),
|
|
61
|
-
JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::fromJSI(runtime, obj.getProperty(runtime, "camera"))
|
|
62
|
+
JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::fromJSI(runtime, obj.getProperty(runtime, "camera")),
|
|
63
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "backgroundColor"))
|
|
62
64
|
);
|
|
63
65
|
}
|
|
64
66
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNInitialProps& arg) {
|
|
@@ -66,6 +68,7 @@ namespace margelo::nitro {
|
|
|
66
68
|
obj.setProperty(runtime, "mapId", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.mapId));
|
|
67
69
|
obj.setProperty(runtime, "liteMode", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.liteMode));
|
|
68
70
|
obj.setProperty(runtime, "camera", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::toJSI(runtime, arg.camera));
|
|
71
|
+
obj.setProperty(runtime, "backgroundColor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.backgroundColor));
|
|
69
72
|
return obj;
|
|
70
73
|
}
|
|
71
74
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -79,6 +82,7 @@ namespace margelo::nitro {
|
|
|
79
82
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "mapId"))) return false;
|
|
80
83
|
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "liteMode"))) return false;
|
|
81
84
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::canConvert(runtime, obj.getProperty(runtime, "camera"))) return false;
|
|
85
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "backgroundColor"))) return false;
|
|
82
86
|
return true;
|
|
83
87
|
}
|
|
84
88
|
};
|
|
@@ -47,7 +47,6 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
47
47
|
std::optional<double> zIndex SWIFT_PRIVATE;
|
|
48
48
|
RNLatLng coordinate SWIFT_PRIVATE;
|
|
49
49
|
std::optional<RNPosition> anchor SWIFT_PRIVATE;
|
|
50
|
-
std::optional<bool> showInfoWindow SWIFT_PRIVATE;
|
|
51
50
|
std::optional<std::string> title SWIFT_PRIVATE;
|
|
52
51
|
std::optional<std::string> snippet SWIFT_PRIVATE;
|
|
53
52
|
std::optional<double> opacity SWIFT_PRIVATE;
|
|
@@ -60,7 +59,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
60
59
|
|
|
61
60
|
public:
|
|
62
61
|
RNMarker() = default;
|
|
63
|
-
explicit RNMarker(std::string id, std::optional<double> zIndex, RNLatLng coordinate, std::optional<RNPosition> anchor, std::optional<
|
|
62
|
+
explicit RNMarker(std::string id, std::optional<double> zIndex, RNLatLng coordinate, std::optional<RNPosition> anchor, std::optional<std::string> title, std::optional<std::string> snippet, std::optional<double> opacity, std::optional<bool> flat, std::optional<bool> draggable, std::optional<double> rotation, std::optional<RNPosition> infoWindowAnchor, std::optional<RNMarkerSvg> iconSvg, std::optional<RNMarkerSvg> infoWindowIconSvg): id(id), zIndex(zIndex), coordinate(coordinate), anchor(anchor), title(title), snippet(snippet), opacity(opacity), flat(flat), draggable(draggable), rotation(rotation), infoWindowAnchor(infoWindowAnchor), iconSvg(iconSvg), infoWindowIconSvg(infoWindowIconSvg) {}
|
|
64
63
|
};
|
|
65
64
|
|
|
66
65
|
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -77,7 +76,6 @@ namespace margelo::nitro {
|
|
|
77
76
|
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "zIndex")),
|
|
78
77
|
JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "coordinate")),
|
|
79
78
|
JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
|
|
80
|
-
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "showInfoWindow")),
|
|
81
79
|
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "title")),
|
|
82
80
|
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "snippet")),
|
|
83
81
|
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "opacity")),
|
|
@@ -95,7 +93,6 @@ namespace margelo::nitro {
|
|
|
95
93
|
obj.setProperty(runtime, "zIndex", JSIConverter<std::optional<double>>::toJSI(runtime, arg.zIndex));
|
|
96
94
|
obj.setProperty(runtime, "coordinate", JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::toJSI(runtime, arg.coordinate));
|
|
97
95
|
obj.setProperty(runtime, "anchor", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::toJSI(runtime, arg.anchor));
|
|
98
|
-
obj.setProperty(runtime, "showInfoWindow", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.showInfoWindow));
|
|
99
96
|
obj.setProperty(runtime, "title", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.title));
|
|
100
97
|
obj.setProperty(runtime, "snippet", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.snippet));
|
|
101
98
|
obj.setProperty(runtime, "opacity", JSIConverter<std::optional<double>>::toJSI(runtime, arg.opacity));
|
|
@@ -119,7 +116,6 @@ namespace margelo::nitro {
|
|
|
119
116
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
|
|
120
117
|
if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "coordinate"))) return false;
|
|
121
118
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
|
|
122
|
-
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "showInfoWindow"))) return false;
|
|
123
119
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "title"))) return false;
|
|
124
120
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "snippet"))) return false;
|
|
125
121
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "opacity"))) return false;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type RNInitialProps = {
|
|
|
7
7
|
mapId?: string;
|
|
8
8
|
liteMode?: boolean;
|
|
9
9
|
camera?: RNCamera;
|
|
10
|
+
backgroundColor?: string;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export type RNMapUiSettings = {
|
|
@@ -162,7 +163,6 @@ export type RNMarker = {
|
|
|
162
163
|
zIndex?: number;
|
|
163
164
|
coordinate: RNLatLng;
|
|
164
165
|
anchor?: RNPosition;
|
|
165
|
-
showInfoWindow?: boolean;
|
|
166
166
|
title?: string;
|
|
167
167
|
snippet?: string;
|
|
168
168
|
opacity?: number;
|