react-native-google-maps-plus 1.0.2 → 1.0.3-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -11
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +239 -112
- package/android/src/main/java/com/rngooglemapsplus/MapCircle.kt +29 -0
- package/android/src/main/java/com/rngooglemapsplus/MapMarker.kt +6 -5
- package/android/src/main/java/com/rngooglemapsplus/MapPolygon.kt +3 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolyline.kt +3 -1
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +115 -88
- package/ios/Color.swift +20 -20
- package/ios/GoogleMapViewImpl.swift +194 -139
- package/ios/MapCircle.swift +43 -0
- package/ios/MapMarker.swift +10 -17
- package/ios/MapPolygon.swift +9 -6
- package/ios/MapPolyline.swift +9 -7
- package/ios/PermissionHandler.swift +1 -1
- package/ios/RNGoogleMapsPlusModule.swift +1 -1
- package/ios/RNGoogleMapsPlusView.swift +148 -105
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +17 -12
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +21 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +173 -69
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +32 -22
- package/nitrogen/generated/android/c++/JRNCircle.hpp +84 -0
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +66 -0
- package/nitrogen/generated/android/c++/JRNMapType.hpp +68 -0
- package/nitrogen/generated/android/c++/JRNMarker.hpp +4 -4
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +8 -4
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +8 -4
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +24 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +65 -11
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapType.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +4 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +4 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +7 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +188 -45
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +85 -37
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +41 -16
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +16 -11
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +296 -45
- package/nitrogen/generated/ios/swift/RNCircle.swift +198 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +107 -0
- package/nitrogen/generated/ios/swift/RNMapType.swift +52 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +17 -5
- package/nitrogen/generated/ios/swift/RNPolygon.swift +40 -5
- package/nitrogen/generated/ios/swift/RNPolyline.swift +40 -5
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +12 -2
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +45 -26
- package/nitrogen/generated/shared/c++/RNCircle.hpp +98 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +78 -0
- package/nitrogen/generated/shared/c++/RNMapType.hpp +88 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -6
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -6
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +10 -6
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +92 -32
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +21 -13
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +6 -1
- package/package.json +5 -5
- package/src/RNGoogleMapsPlusView.nitro.ts +19 -11
- package/src/types.ts +24 -3
|
@@ -71,61 +71,71 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
71
71
|
// 2. Update each prop individually
|
|
72
72
|
swiftPart.beforeUpdate();
|
|
73
73
|
|
|
74
|
-
//
|
|
74
|
+
// initialProps: optional
|
|
75
|
+
if (newViewProps.initialProps.isDirty) {
|
|
76
|
+
swiftPart.setInitialProps(newViewProps.initialProps.value);
|
|
77
|
+
newViewProps.initialProps.isDirty = false;
|
|
78
|
+
}
|
|
79
|
+
// buildingEnabled: optional
|
|
75
80
|
if (newViewProps.buildingEnabled.isDirty) {
|
|
76
81
|
swiftPart.setBuildingEnabled(newViewProps.buildingEnabled.value);
|
|
77
82
|
newViewProps.buildingEnabled.isDirty = false;
|
|
78
83
|
}
|
|
79
|
-
// trafficEnabled:
|
|
84
|
+
// trafficEnabled: optional
|
|
80
85
|
if (newViewProps.trafficEnabled.isDirty) {
|
|
81
86
|
swiftPart.setTrafficEnabled(newViewProps.trafficEnabled.value);
|
|
82
87
|
newViewProps.trafficEnabled.isDirty = false;
|
|
83
88
|
}
|
|
84
|
-
// customMapStyle:
|
|
89
|
+
// customMapStyle: optional
|
|
85
90
|
if (newViewProps.customMapStyle.isDirty) {
|
|
86
91
|
swiftPart.setCustomMapStyle(newViewProps.customMapStyle.value);
|
|
87
92
|
newViewProps.customMapStyle.isDirty = false;
|
|
88
93
|
}
|
|
89
|
-
//
|
|
90
|
-
if (newViewProps.initialCamera.isDirty) {
|
|
91
|
-
swiftPart.setInitialCamera(newViewProps.initialCamera.value);
|
|
92
|
-
newViewProps.initialCamera.isDirty = false;
|
|
93
|
-
}
|
|
94
|
-
// userInterfaceStyle: enum
|
|
94
|
+
// userInterfaceStyle: optional
|
|
95
95
|
if (newViewProps.userInterfaceStyle.isDirty) {
|
|
96
|
-
swiftPart.setUserInterfaceStyle(
|
|
96
|
+
swiftPart.setUserInterfaceStyle(newViewProps.userInterfaceStyle.value);
|
|
97
97
|
newViewProps.userInterfaceStyle.isDirty = false;
|
|
98
98
|
}
|
|
99
|
-
// minZoomLevel:
|
|
99
|
+
// minZoomLevel: optional
|
|
100
100
|
if (newViewProps.minZoomLevel.isDirty) {
|
|
101
101
|
swiftPart.setMinZoomLevel(newViewProps.minZoomLevel.value);
|
|
102
102
|
newViewProps.minZoomLevel.isDirty = false;
|
|
103
103
|
}
|
|
104
|
-
// maxZoomLevel:
|
|
104
|
+
// maxZoomLevel: optional
|
|
105
105
|
if (newViewProps.maxZoomLevel.isDirty) {
|
|
106
106
|
swiftPart.setMaxZoomLevel(newViewProps.maxZoomLevel.value);
|
|
107
107
|
newViewProps.maxZoomLevel.isDirty = false;
|
|
108
108
|
}
|
|
109
|
-
// mapPadding:
|
|
109
|
+
// mapPadding: optional
|
|
110
110
|
if (newViewProps.mapPadding.isDirty) {
|
|
111
111
|
swiftPart.setMapPadding(newViewProps.mapPadding.value);
|
|
112
112
|
newViewProps.mapPadding.isDirty = false;
|
|
113
113
|
}
|
|
114
|
-
//
|
|
114
|
+
// mapType: optional
|
|
115
|
+
if (newViewProps.mapType.isDirty) {
|
|
116
|
+
swiftPart.setMapType(newViewProps.mapType.value);
|
|
117
|
+
newViewProps.mapType.isDirty = false;
|
|
118
|
+
}
|
|
119
|
+
// markers: optional
|
|
115
120
|
if (newViewProps.markers.isDirty) {
|
|
116
121
|
swiftPart.setMarkers(newViewProps.markers.value);
|
|
117
122
|
newViewProps.markers.isDirty = false;
|
|
118
123
|
}
|
|
119
|
-
// polygons:
|
|
124
|
+
// polygons: optional
|
|
120
125
|
if (newViewProps.polygons.isDirty) {
|
|
121
126
|
swiftPart.setPolygons(newViewProps.polygons.value);
|
|
122
127
|
newViewProps.polygons.isDirty = false;
|
|
123
128
|
}
|
|
124
|
-
// polylines:
|
|
129
|
+
// polylines: optional
|
|
125
130
|
if (newViewProps.polylines.isDirty) {
|
|
126
131
|
swiftPart.setPolylines(newViewProps.polylines.value);
|
|
127
132
|
newViewProps.polylines.isDirty = false;
|
|
128
133
|
}
|
|
134
|
+
// circles: optional
|
|
135
|
+
if (newViewProps.circles.isDirty) {
|
|
136
|
+
swiftPart.setCircles(newViewProps.circles.value);
|
|
137
|
+
newViewProps.circles.isDirty = false;
|
|
138
|
+
}
|
|
129
139
|
// onMapError: optional
|
|
130
140
|
if (newViewProps.onMapError.isDirty) {
|
|
131
141
|
swiftPart.setOnMapError(newViewProps.onMapError.value);
|
|
@@ -156,6 +166,21 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
156
166
|
swiftPart.setOnMarkerPress(newViewProps.onMarkerPress.value);
|
|
157
167
|
newViewProps.onMarkerPress.isDirty = false;
|
|
158
168
|
}
|
|
169
|
+
// onPolylinePress: optional
|
|
170
|
+
if (newViewProps.onPolylinePress.isDirty) {
|
|
171
|
+
swiftPart.setOnPolylinePress(newViewProps.onPolylinePress.value);
|
|
172
|
+
newViewProps.onPolylinePress.isDirty = false;
|
|
173
|
+
}
|
|
174
|
+
// onPolygonPress: optional
|
|
175
|
+
if (newViewProps.onPolygonPress.isDirty) {
|
|
176
|
+
swiftPart.setOnPolygonPress(newViewProps.onPolygonPress.value);
|
|
177
|
+
newViewProps.onPolygonPress.isDirty = false;
|
|
178
|
+
}
|
|
179
|
+
// onCirclePress: optional
|
|
180
|
+
if (newViewProps.onCirclePress.isDirty) {
|
|
181
|
+
swiftPart.setOnCirclePress(newViewProps.onCirclePress.value);
|
|
182
|
+
newViewProps.onCirclePress.isDirty = false;
|
|
183
|
+
}
|
|
159
184
|
// onCameraChangeStart: optional
|
|
160
185
|
if (newViewProps.onCameraChangeStart.isDirty) {
|
|
161
186
|
swiftPart.setOnCameraChangeStart(newViewProps.onCameraChangeStart.value);
|
|
@@ -11,23 +11,28 @@ import NitroModules
|
|
|
11
11
|
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
12
12
|
public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
|
|
13
13
|
// Properties
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var userInterfaceStyle: RNUserInterfaceStyle { get set }
|
|
19
|
-
var minZoomLevel: Double { get set }
|
|
20
|
-
var maxZoomLevel: Double { get set }
|
|
21
|
-
var mapPadding: RNMapPadding { get set }
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
14
|
+
var initialProps: RNInitialProps? { get set }
|
|
15
|
+
var buildingEnabled: Bool? { get set }
|
|
16
|
+
var trafficEnabled: Bool? { get set }
|
|
17
|
+
var customMapStyle: String? { get set }
|
|
18
|
+
var userInterfaceStyle: RNUserInterfaceStyle? { get set }
|
|
19
|
+
var minZoomLevel: Double? { get set }
|
|
20
|
+
var maxZoomLevel: Double? { get set }
|
|
21
|
+
var mapPadding: RNMapPadding? { get set }
|
|
22
|
+
var mapType: RNMapType? { get set }
|
|
23
|
+
var markers: [RNMarker]? { get set }
|
|
24
|
+
var polygons: [RNPolygon]? { get set }
|
|
25
|
+
var polylines: [RNPolyline]? { get set }
|
|
26
|
+
var circles: [RNCircle]? { get set }
|
|
25
27
|
var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
|
|
26
28
|
var onMapReady: ((_ ready: Bool) -> Void)? { get set }
|
|
27
29
|
var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }
|
|
28
30
|
var onLocationError: ((_ error: RNLocationErrorCode) -> Void)? { get set }
|
|
29
31
|
var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
|
|
30
32
|
var onMarkerPress: ((_ id: String) -> Void)? { get set }
|
|
33
|
+
var onPolylinePress: ((_ id: String) -> Void)? { get set }
|
|
34
|
+
var onPolygonPress: ((_ id: String) -> Void)? { get set }
|
|
35
|
+
var onCirclePress: ((_ id: String) -> Void)? { get set }
|
|
31
36
|
var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
32
37
|
var onCameraChange: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
33
38
|
var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
@@ -106,142 +106,297 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// Properties
|
|
109
|
-
public final var
|
|
109
|
+
public final var initialProps: bridge.std__optional_RNInitialProps_ {
|
|
110
110
|
@inline(__always)
|
|
111
111
|
get {
|
|
112
|
-
return
|
|
112
|
+
return { () -> bridge.std__optional_RNInitialProps_ in
|
|
113
|
+
if let __unwrappedValue = self.__implementation.initialProps {
|
|
114
|
+
return bridge.create_std__optional_RNInitialProps_(__unwrappedValue)
|
|
115
|
+
} else {
|
|
116
|
+
return .init()
|
|
117
|
+
}
|
|
118
|
+
}()
|
|
113
119
|
}
|
|
114
120
|
@inline(__always)
|
|
115
121
|
set {
|
|
116
|
-
self.__implementation.
|
|
122
|
+
self.__implementation.initialProps = { () -> RNInitialProps? in
|
|
123
|
+
if bridge.has_value_std__optional_RNInitialProps_(newValue) {
|
|
124
|
+
let __unwrapped = bridge.get_std__optional_RNInitialProps_(newValue)
|
|
125
|
+
return __unwrapped
|
|
126
|
+
} else {
|
|
127
|
+
return nil
|
|
128
|
+
}
|
|
129
|
+
}()
|
|
117
130
|
}
|
|
118
131
|
}
|
|
119
132
|
|
|
120
|
-
public final var
|
|
133
|
+
public final var buildingEnabled: bridge.std__optional_bool_ {
|
|
121
134
|
@inline(__always)
|
|
122
135
|
get {
|
|
123
|
-
return
|
|
136
|
+
return { () -> bridge.std__optional_bool_ in
|
|
137
|
+
if let __unwrappedValue = self.__implementation.buildingEnabled {
|
|
138
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
139
|
+
} else {
|
|
140
|
+
return .init()
|
|
141
|
+
}
|
|
142
|
+
}()
|
|
124
143
|
}
|
|
125
144
|
@inline(__always)
|
|
126
145
|
set {
|
|
127
|
-
self.__implementation.
|
|
146
|
+
self.__implementation.buildingEnabled = newValue.value
|
|
128
147
|
}
|
|
129
148
|
}
|
|
130
149
|
|
|
131
|
-
public final var
|
|
150
|
+
public final var trafficEnabled: bridge.std__optional_bool_ {
|
|
132
151
|
@inline(__always)
|
|
133
152
|
get {
|
|
134
|
-
return
|
|
153
|
+
return { () -> bridge.std__optional_bool_ in
|
|
154
|
+
if let __unwrappedValue = self.__implementation.trafficEnabled {
|
|
155
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
156
|
+
} else {
|
|
157
|
+
return .init()
|
|
158
|
+
}
|
|
159
|
+
}()
|
|
135
160
|
}
|
|
136
161
|
@inline(__always)
|
|
137
162
|
set {
|
|
138
|
-
self.__implementation.
|
|
163
|
+
self.__implementation.trafficEnabled = newValue.value
|
|
139
164
|
}
|
|
140
165
|
}
|
|
141
166
|
|
|
142
|
-
public final var
|
|
167
|
+
public final var customMapStyle: bridge.std__optional_std__string_ {
|
|
143
168
|
@inline(__always)
|
|
144
169
|
get {
|
|
145
|
-
return
|
|
170
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
171
|
+
if let __unwrappedValue = self.__implementation.customMapStyle {
|
|
172
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
173
|
+
} else {
|
|
174
|
+
return .init()
|
|
175
|
+
}
|
|
176
|
+
}()
|
|
146
177
|
}
|
|
147
178
|
@inline(__always)
|
|
148
179
|
set {
|
|
149
|
-
self.__implementation.
|
|
180
|
+
self.__implementation.customMapStyle = { () -> String? in
|
|
181
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
182
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
183
|
+
return String(__unwrapped)
|
|
184
|
+
} else {
|
|
185
|
+
return nil
|
|
186
|
+
}
|
|
187
|
+
}()
|
|
150
188
|
}
|
|
151
189
|
}
|
|
152
190
|
|
|
153
|
-
public final var userInterfaceStyle:
|
|
191
|
+
public final var userInterfaceStyle: bridge.std__optional_RNUserInterfaceStyle_ {
|
|
154
192
|
@inline(__always)
|
|
155
193
|
get {
|
|
156
|
-
return
|
|
194
|
+
return { () -> bridge.std__optional_RNUserInterfaceStyle_ in
|
|
195
|
+
if let __unwrappedValue = self.__implementation.userInterfaceStyle {
|
|
196
|
+
return bridge.create_std__optional_RNUserInterfaceStyle_(__unwrappedValue)
|
|
197
|
+
} else {
|
|
198
|
+
return .init()
|
|
199
|
+
}
|
|
200
|
+
}()
|
|
157
201
|
}
|
|
158
202
|
@inline(__always)
|
|
159
203
|
set {
|
|
160
|
-
self.__implementation.userInterfaceStyle =
|
|
204
|
+
self.__implementation.userInterfaceStyle = newValue.value
|
|
161
205
|
}
|
|
162
206
|
}
|
|
163
207
|
|
|
164
|
-
public final var minZoomLevel:
|
|
208
|
+
public final var minZoomLevel: bridge.std__optional_double_ {
|
|
165
209
|
@inline(__always)
|
|
166
210
|
get {
|
|
167
|
-
return
|
|
211
|
+
return { () -> bridge.std__optional_double_ in
|
|
212
|
+
if let __unwrappedValue = self.__implementation.minZoomLevel {
|
|
213
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
214
|
+
} else {
|
|
215
|
+
return .init()
|
|
216
|
+
}
|
|
217
|
+
}()
|
|
168
218
|
}
|
|
169
219
|
@inline(__always)
|
|
170
220
|
set {
|
|
171
|
-
self.__implementation.minZoomLevel = newValue
|
|
221
|
+
self.__implementation.minZoomLevel = newValue.value
|
|
172
222
|
}
|
|
173
223
|
}
|
|
174
224
|
|
|
175
|
-
public final var maxZoomLevel:
|
|
225
|
+
public final var maxZoomLevel: bridge.std__optional_double_ {
|
|
176
226
|
@inline(__always)
|
|
177
227
|
get {
|
|
178
|
-
return
|
|
228
|
+
return { () -> bridge.std__optional_double_ in
|
|
229
|
+
if let __unwrappedValue = self.__implementation.maxZoomLevel {
|
|
230
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
231
|
+
} else {
|
|
232
|
+
return .init()
|
|
233
|
+
}
|
|
234
|
+
}()
|
|
235
|
+
}
|
|
236
|
+
@inline(__always)
|
|
237
|
+
set {
|
|
238
|
+
self.__implementation.maxZoomLevel = newValue.value
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
public final var mapPadding: bridge.std__optional_RNMapPadding_ {
|
|
243
|
+
@inline(__always)
|
|
244
|
+
get {
|
|
245
|
+
return { () -> bridge.std__optional_RNMapPadding_ in
|
|
246
|
+
if let __unwrappedValue = self.__implementation.mapPadding {
|
|
247
|
+
return bridge.create_std__optional_RNMapPadding_(__unwrappedValue)
|
|
248
|
+
} else {
|
|
249
|
+
return .init()
|
|
250
|
+
}
|
|
251
|
+
}()
|
|
179
252
|
}
|
|
180
253
|
@inline(__always)
|
|
181
254
|
set {
|
|
182
|
-
self.__implementation.
|
|
255
|
+
self.__implementation.mapPadding = { () -> RNMapPadding? in
|
|
256
|
+
if bridge.has_value_std__optional_RNMapPadding_(newValue) {
|
|
257
|
+
let __unwrapped = bridge.get_std__optional_RNMapPadding_(newValue)
|
|
258
|
+
return __unwrapped
|
|
259
|
+
} else {
|
|
260
|
+
return nil
|
|
261
|
+
}
|
|
262
|
+
}()
|
|
183
263
|
}
|
|
184
264
|
}
|
|
185
265
|
|
|
186
|
-
public final var
|
|
266
|
+
public final var mapType: bridge.std__optional_RNMapType_ {
|
|
187
267
|
@inline(__always)
|
|
188
268
|
get {
|
|
189
|
-
return
|
|
269
|
+
return { () -> bridge.std__optional_RNMapType_ in
|
|
270
|
+
if let __unwrappedValue = self.__implementation.mapType {
|
|
271
|
+
return bridge.create_std__optional_RNMapType_(__unwrappedValue)
|
|
272
|
+
} else {
|
|
273
|
+
return .init()
|
|
274
|
+
}
|
|
275
|
+
}()
|
|
190
276
|
}
|
|
191
277
|
@inline(__always)
|
|
192
278
|
set {
|
|
193
|
-
self.__implementation.
|
|
279
|
+
self.__implementation.mapType = newValue.value
|
|
194
280
|
}
|
|
195
281
|
}
|
|
196
282
|
|
|
197
|
-
public final var markers: bridge.
|
|
283
|
+
public final var markers: bridge.std__optional_std__vector_RNMarker__ {
|
|
198
284
|
@inline(__always)
|
|
199
285
|
get {
|
|
200
|
-
return { () -> bridge.
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
286
|
+
return { () -> bridge.std__optional_std__vector_RNMarker__ in
|
|
287
|
+
if let __unwrappedValue = self.__implementation.markers {
|
|
288
|
+
return bridge.create_std__optional_std__vector_RNMarker__({ () -> bridge.std__vector_RNMarker_ in
|
|
289
|
+
var __vector = bridge.create_std__vector_RNMarker_(__unwrappedValue.count)
|
|
290
|
+
for __item in __unwrappedValue {
|
|
291
|
+
__vector.push_back(__item)
|
|
292
|
+
}
|
|
293
|
+
return __vector
|
|
294
|
+
}())
|
|
295
|
+
} else {
|
|
296
|
+
return .init()
|
|
204
297
|
}
|
|
205
|
-
return __vector
|
|
206
298
|
}()
|
|
207
299
|
}
|
|
208
300
|
@inline(__always)
|
|
209
301
|
set {
|
|
210
|
-
self.__implementation.markers =
|
|
302
|
+
self.__implementation.markers = { () -> [RNMarker]? in
|
|
303
|
+
if bridge.has_value_std__optional_std__vector_RNMarker__(newValue) {
|
|
304
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNMarker__(newValue)
|
|
305
|
+
return __unwrapped.map({ __item in __item })
|
|
306
|
+
} else {
|
|
307
|
+
return nil
|
|
308
|
+
}
|
|
309
|
+
}()
|
|
211
310
|
}
|
|
212
311
|
}
|
|
213
312
|
|
|
214
|
-
public final var polygons: bridge.
|
|
313
|
+
public final var polygons: bridge.std__optional_std__vector_RNPolygon__ {
|
|
215
314
|
@inline(__always)
|
|
216
315
|
get {
|
|
217
|
-
return { () -> bridge.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
316
|
+
return { () -> bridge.std__optional_std__vector_RNPolygon__ in
|
|
317
|
+
if let __unwrappedValue = self.__implementation.polygons {
|
|
318
|
+
return bridge.create_std__optional_std__vector_RNPolygon__({ () -> bridge.std__vector_RNPolygon_ in
|
|
319
|
+
var __vector = bridge.create_std__vector_RNPolygon_(__unwrappedValue.count)
|
|
320
|
+
for __item in __unwrappedValue {
|
|
321
|
+
__vector.push_back(__item)
|
|
322
|
+
}
|
|
323
|
+
return __vector
|
|
324
|
+
}())
|
|
325
|
+
} else {
|
|
326
|
+
return .init()
|
|
221
327
|
}
|
|
222
|
-
return __vector
|
|
223
328
|
}()
|
|
224
329
|
}
|
|
225
330
|
@inline(__always)
|
|
226
331
|
set {
|
|
227
|
-
self.__implementation.polygons =
|
|
332
|
+
self.__implementation.polygons = { () -> [RNPolygon]? in
|
|
333
|
+
if bridge.has_value_std__optional_std__vector_RNPolygon__(newValue) {
|
|
334
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNPolygon__(newValue)
|
|
335
|
+
return __unwrapped.map({ __item in __item })
|
|
336
|
+
} else {
|
|
337
|
+
return nil
|
|
338
|
+
}
|
|
339
|
+
}()
|
|
228
340
|
}
|
|
229
341
|
}
|
|
230
342
|
|
|
231
|
-
public final var polylines: bridge.
|
|
343
|
+
public final var polylines: bridge.std__optional_std__vector_RNPolyline__ {
|
|
232
344
|
@inline(__always)
|
|
233
345
|
get {
|
|
234
|
-
return { () -> bridge.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
346
|
+
return { () -> bridge.std__optional_std__vector_RNPolyline__ in
|
|
347
|
+
if let __unwrappedValue = self.__implementation.polylines {
|
|
348
|
+
return bridge.create_std__optional_std__vector_RNPolyline__({ () -> bridge.std__vector_RNPolyline_ in
|
|
349
|
+
var __vector = bridge.create_std__vector_RNPolyline_(__unwrappedValue.count)
|
|
350
|
+
for __item in __unwrappedValue {
|
|
351
|
+
__vector.push_back(__item)
|
|
352
|
+
}
|
|
353
|
+
return __vector
|
|
354
|
+
}())
|
|
355
|
+
} else {
|
|
356
|
+
return .init()
|
|
238
357
|
}
|
|
239
|
-
return __vector
|
|
240
358
|
}()
|
|
241
359
|
}
|
|
242
360
|
@inline(__always)
|
|
243
361
|
set {
|
|
244
|
-
self.__implementation.polylines =
|
|
362
|
+
self.__implementation.polylines = { () -> [RNPolyline]? in
|
|
363
|
+
if bridge.has_value_std__optional_std__vector_RNPolyline__(newValue) {
|
|
364
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNPolyline__(newValue)
|
|
365
|
+
return __unwrapped.map({ __item in __item })
|
|
366
|
+
} else {
|
|
367
|
+
return nil
|
|
368
|
+
}
|
|
369
|
+
}()
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
public final var circles: bridge.std__optional_std__vector_RNCircle__ {
|
|
374
|
+
@inline(__always)
|
|
375
|
+
get {
|
|
376
|
+
return { () -> bridge.std__optional_std__vector_RNCircle__ in
|
|
377
|
+
if let __unwrappedValue = self.__implementation.circles {
|
|
378
|
+
return bridge.create_std__optional_std__vector_RNCircle__({ () -> bridge.std__vector_RNCircle_ in
|
|
379
|
+
var __vector = bridge.create_std__vector_RNCircle_(__unwrappedValue.count)
|
|
380
|
+
for __item in __unwrappedValue {
|
|
381
|
+
__vector.push_back(__item)
|
|
382
|
+
}
|
|
383
|
+
return __vector
|
|
384
|
+
}())
|
|
385
|
+
} else {
|
|
386
|
+
return .init()
|
|
387
|
+
}
|
|
388
|
+
}()
|
|
389
|
+
}
|
|
390
|
+
@inline(__always)
|
|
391
|
+
set {
|
|
392
|
+
self.__implementation.circles = { () -> [RNCircle]? in
|
|
393
|
+
if bridge.has_value_std__optional_std__vector_RNCircle__(newValue) {
|
|
394
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNCircle__(newValue)
|
|
395
|
+
return __unwrapped.map({ __item in __item })
|
|
396
|
+
} else {
|
|
397
|
+
return nil
|
|
398
|
+
}
|
|
399
|
+
}()
|
|
245
400
|
}
|
|
246
401
|
}
|
|
247
402
|
|
|
@@ -437,6 +592,102 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
437
592
|
}
|
|
438
593
|
}
|
|
439
594
|
|
|
595
|
+
public final var onPolylinePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
596
|
+
@inline(__always)
|
|
597
|
+
get {
|
|
598
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
599
|
+
if let __unwrappedValue = self.__implementation.onPolylinePress {
|
|
600
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
601
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
602
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
603
|
+
}())
|
|
604
|
+
} else {
|
|
605
|
+
return .init()
|
|
606
|
+
}
|
|
607
|
+
}()
|
|
608
|
+
}
|
|
609
|
+
@inline(__always)
|
|
610
|
+
set {
|
|
611
|
+
self.__implementation.onPolylinePress = { () -> ((_ id: String) -> Void)? in
|
|
612
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
613
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
614
|
+
return { () -> (String) -> Void in
|
|
615
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
616
|
+
return { (__id: String) -> Void in
|
|
617
|
+
__wrappedFunction.call(std.string(__id))
|
|
618
|
+
}
|
|
619
|
+
}()
|
|
620
|
+
} else {
|
|
621
|
+
return nil
|
|
622
|
+
}
|
|
623
|
+
}()
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
public final var onPolygonPress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
628
|
+
@inline(__always)
|
|
629
|
+
get {
|
|
630
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
631
|
+
if let __unwrappedValue = self.__implementation.onPolygonPress {
|
|
632
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
633
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
634
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
635
|
+
}())
|
|
636
|
+
} else {
|
|
637
|
+
return .init()
|
|
638
|
+
}
|
|
639
|
+
}()
|
|
640
|
+
}
|
|
641
|
+
@inline(__always)
|
|
642
|
+
set {
|
|
643
|
+
self.__implementation.onPolygonPress = { () -> ((_ id: String) -> Void)? in
|
|
644
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
645
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
646
|
+
return { () -> (String) -> Void in
|
|
647
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
648
|
+
return { (__id: String) -> Void in
|
|
649
|
+
__wrappedFunction.call(std.string(__id))
|
|
650
|
+
}
|
|
651
|
+
}()
|
|
652
|
+
} else {
|
|
653
|
+
return nil
|
|
654
|
+
}
|
|
655
|
+
}()
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
public final var onCirclePress: bridge.std__optional_std__function_void_const_std__string_____id______ {
|
|
660
|
+
@inline(__always)
|
|
661
|
+
get {
|
|
662
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____id______ in
|
|
663
|
+
if let __unwrappedValue = self.__implementation.onCirclePress {
|
|
664
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____id______({ () -> bridge.Func_void_std__string in
|
|
665
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
666
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
667
|
+
}())
|
|
668
|
+
} else {
|
|
669
|
+
return .init()
|
|
670
|
+
}
|
|
671
|
+
}()
|
|
672
|
+
}
|
|
673
|
+
@inline(__always)
|
|
674
|
+
set {
|
|
675
|
+
self.__implementation.onCirclePress = { () -> ((_ id: String) -> Void)? in
|
|
676
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____id______(newValue) {
|
|
677
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____id______(newValue)
|
|
678
|
+
return { () -> (String) -> Void in
|
|
679
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
680
|
+
return { (__id: String) -> Void in
|
|
681
|
+
__wrappedFunction.call(std.string(__id))
|
|
682
|
+
}
|
|
683
|
+
}()
|
|
684
|
+
} else {
|
|
685
|
+
return nil
|
|
686
|
+
}
|
|
687
|
+
}()
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
440
691
|
public final var onCameraChangeStart: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______ {
|
|
441
692
|
@inline(__always)
|
|
442
693
|
get {
|