react-native-maps 1.21.0-alpha.92 → 1.21.0-alpha.93

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.
Files changed (67) hide show
  1. package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +4 -1
  2. package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +4 -2
  3. package/ios/AirMaps/RNMapsAirModule.h +1 -1
  4. package/ios/AirMaps/RNMapsMapView.mm +4 -1
  5. package/ios/AirMaps/RNMapsMarkerView.mm +4 -1
  6. package/package.json +1 -2
  7. package/android/generated/RCTAppDependencyProvider.h +0 -25
  8. package/android/generated/RCTAppDependencyProvider.mm +0 -55
  9. package/android/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  10. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  11. package/android/generated/RCTThirdPartyComponentsProvider.h +0 -16
  12. package/android/generated/RCTThirdPartyComponentsProvider.mm +0 -26
  13. package/android/generated/ReactAppDependencyProvider.podspec +0 -34
  14. package/android/generated/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +0 -63
  15. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +0 -35
  16. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +0 -18
  17. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +0 -49
  18. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +0 -24
  19. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +0 -49
  20. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +0 -24
  21. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +0 -206
  22. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +0 -74
  23. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +0 -104
  24. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +0 -40
  25. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +0 -46
  26. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +0 -24
  27. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +0 -58
  28. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +0 -27
  29. package/android/generated/jni/CMakeLists.txt +0 -36
  30. package/android/generated/jni/RNMapsSpecs-generated.cpp +0 -68
  31. package/android/generated/jni/RNMapsSpecs.h +0 -31
  32. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +0 -29
  33. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +0 -31
  34. package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +0 -984
  35. package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +0 -853
  36. package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.cpp +0 -193
  37. package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.h +0 -1223
  38. package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +0 -74
  39. package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +0 -268
  40. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +0 -24
  41. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +0 -109
  42. package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.cpp +0 -16
  43. package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.h +0 -113
  44. package/ios/generated/RCTAppDependencyProvider.h +0 -25
  45. package/ios/generated/RCTAppDependencyProvider.mm +0 -55
  46. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  47. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  48. package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
  49. package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -26
  50. package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +0 -29
  51. package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +0 -31
  52. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +0 -984
  53. package/ios/generated/RNMapsSpecs/EventEmitters.h +0 -853
  54. package/ios/generated/RNMapsSpecs/Props.cpp +0 -193
  55. package/ios/generated/RNMapsSpecs/Props.h +0 -1223
  56. package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +0 -603
  57. package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +0 -92
  58. package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +0 -137
  59. package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +0 -24
  60. package/ios/generated/RNMapsSpecs/ShadowNodes.h +0 -109
  61. package/ios/generated/RNMapsSpecs/States.cpp +0 -16
  62. package/ios/generated/RNMapsSpecs/States.h +0 -113
  63. package/ios/generated/RNMapsSpecsJSI-generated.cpp +0 -74
  64. package/ios/generated/RNMapsSpecsJSI.h +0 -268
  65. package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
  66. package/ios/generated/module.modulemap +0 -4
  67. package/ios/generated/react-native-maps-generated-umbrella.h +0 -14
@@ -1,984 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include "EventEmitters.h"
12
-
13
-
14
- namespace facebook::react {
15
-
16
- void RNMapsCalloutEventEmitter::onPress(OnPress $event) const {
17
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
18
- auto $payload = jsi::Object(runtime);
19
- $payload.setProperty(runtime, "action", $event.action);
20
- $payload.setProperty(runtime, "id", $event.id);
21
- {
22
- auto coordinate = jsi::Object(runtime);
23
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
24
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
25
- $payload.setProperty(runtime, "coordinate", coordinate);
26
- }
27
- {
28
- auto position = jsi::Object(runtime);
29
- position.setProperty(runtime, "x", $event.position.x);
30
- position.setProperty(runtime, "y", $event.position.y);
31
- $payload.setProperty(runtime, "position", position);
32
- }
33
- return $payload;
34
- });
35
- }
36
-
37
-
38
- void RNMapsCircleEventEmitter::onPress(OnPress $event) const {
39
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
40
- auto $payload = jsi::Object(runtime);
41
- $payload.setProperty(runtime, "action", $event.action);
42
- $payload.setProperty(runtime, "id", $event.id);
43
- {
44
- auto coordinate = jsi::Object(runtime);
45
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
46
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
47
- $payload.setProperty(runtime, "coordinate", coordinate);
48
- }
49
- {
50
- auto position = jsi::Object(runtime);
51
- position.setProperty(runtime, "x", $event.position.x);
52
- position.setProperty(runtime, "y", $event.position.y);
53
- $payload.setProperty(runtime, "position", position);
54
- }
55
- return $payload;
56
- });
57
- }
58
-
59
-
60
- void RNMapsGoogleMapViewEventEmitter::onIndoorBuildingFocused(OnIndoorBuildingFocused $event) const {
61
- dispatchEvent("indoorBuildingFocused", [$event=std::move($event)](jsi::Runtime &runtime) {
62
- auto $payload = jsi::Object(runtime);
63
- {
64
- auto indoorBuilding = jsi::Object(runtime);
65
- indoorBuilding.setProperty(runtime, "underground", $event.indoorBuilding.underground);
66
- indoorBuilding.setProperty(runtime, "activeLevelIndex", $event.indoorBuilding.activeLevelIndex);
67
- $payload.setProperty(runtime, "indoorBuilding", indoorBuilding);
68
- }
69
- return $payload;
70
- });
71
- }
72
-
73
-
74
- void RNMapsGoogleMapViewEventEmitter::onIndoorLevelActivated(OnIndoorLevelActivated $event) const {
75
- dispatchEvent("indoorLevelActivated", [$event=std::move($event)](jsi::Runtime &runtime) {
76
- auto $payload = jsi::Object(runtime);
77
- {
78
- auto indoorLevel = jsi::Object(runtime);
79
- indoorLevel.setProperty(runtime, "activeLevelIndex", $event.indoorLevel.activeLevelIndex);
80
- indoorLevel.setProperty(runtime, "name", $event.indoorLevel.name);
81
- indoorLevel.setProperty(runtime, "shortName", $event.indoorLevel.shortName);
82
- $payload.setProperty(runtime, "indoorLevel", indoorLevel);
83
- }
84
- return $payload;
85
- });
86
- }
87
-
88
-
89
- void RNMapsGoogleMapViewEventEmitter::onKmlReady(OnKmlReady $event) const {
90
- dispatchEvent("kmlReady", [](jsi::Runtime &runtime) {
91
- auto $payload = jsi::Object(runtime);
92
-
93
- return $payload;
94
- });
95
- }
96
-
97
-
98
- void RNMapsGoogleMapViewEventEmitter::onLongPress(OnLongPress $event) const {
99
- dispatchEvent("longPress", [$event=std::move($event)](jsi::Runtime &runtime) {
100
- auto $payload = jsi::Object(runtime);
101
- {
102
- auto coordinate = jsi::Object(runtime);
103
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
104
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
105
- $payload.setProperty(runtime, "coordinate", coordinate);
106
- }
107
- {
108
- auto position = jsi::Object(runtime);
109
- position.setProperty(runtime, "x", $event.position.x);
110
- position.setProperty(runtime, "y", $event.position.y);
111
- $payload.setProperty(runtime, "position", position);
112
- }
113
- $payload.setProperty(runtime, "action", $event.action);
114
- return $payload;
115
- });
116
- }
117
-
118
-
119
- void RNMapsGoogleMapViewEventEmitter::onMapLoaded(OnMapLoaded $event) const {
120
- dispatchEvent("mapLoaded", [](jsi::Runtime &runtime) {
121
- auto $payload = jsi::Object(runtime);
122
-
123
- return $payload;
124
- });
125
- }
126
-
127
-
128
- void RNMapsGoogleMapViewEventEmitter::onMapReady(OnMapReady $event) const {
129
- dispatchEvent("mapReady", [](jsi::Runtime &runtime) {
130
- auto $payload = jsi::Object(runtime);
131
-
132
- return $payload;
133
- });
134
- }
135
-
136
-
137
- void RNMapsGoogleMapViewEventEmitter::onMarkerDeselect(OnMarkerDeselect $event) const {
138
- dispatchEvent("markerDeselect", [$event=std::move($event)](jsi::Runtime &runtime) {
139
- auto $payload = jsi::Object(runtime);
140
- $payload.setProperty(runtime, "action", $event.action);
141
- $payload.setProperty(runtime, "id", $event.id);
142
- {
143
- auto coordinate = jsi::Object(runtime);
144
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
145
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
146
- $payload.setProperty(runtime, "coordinate", coordinate);
147
- }
148
- return $payload;
149
- });
150
- }
151
-
152
-
153
- void RNMapsGoogleMapViewEventEmitter::onMarkerDrag(OnMarkerDrag $event) const {
154
- dispatchEvent("markerDrag", [$event=std::move($event)](jsi::Runtime &runtime) {
155
- auto $payload = jsi::Object(runtime);
156
- {
157
- auto coordinate = jsi::Object(runtime);
158
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
159
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
160
- $payload.setProperty(runtime, "coordinate", coordinate);
161
- }
162
- {
163
- auto position = jsi::Object(runtime);
164
- position.setProperty(runtime, "x", $event.position.x);
165
- position.setProperty(runtime, "y", $event.position.y);
166
- $payload.setProperty(runtime, "position", position);
167
- }
168
- $payload.setProperty(runtime, "id", $event.id);
169
- return $payload;
170
- });
171
- }
172
-
173
-
174
- void RNMapsGoogleMapViewEventEmitter::onMarkerDragEnd(OnMarkerDragEnd $event) const {
175
- dispatchEvent("markerDragEnd", [$event=std::move($event)](jsi::Runtime &runtime) {
176
- auto $payload = jsi::Object(runtime);
177
- {
178
- auto coordinate = jsi::Object(runtime);
179
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
180
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
181
- $payload.setProperty(runtime, "coordinate", coordinate);
182
- }
183
- $payload.setProperty(runtime, "id", $event.id);
184
- {
185
- auto position = jsi::Object(runtime);
186
- position.setProperty(runtime, "x", $event.position.x);
187
- position.setProperty(runtime, "y", $event.position.y);
188
- $payload.setProperty(runtime, "position", position);
189
- }
190
- return $payload;
191
- });
192
- }
193
-
194
-
195
- void RNMapsGoogleMapViewEventEmitter::onMarkerDragStart(OnMarkerDragStart $event) const {
196
- dispatchEvent("markerDragStart", [$event=std::move($event)](jsi::Runtime &runtime) {
197
- auto $payload = jsi::Object(runtime);
198
- {
199
- auto coordinate = jsi::Object(runtime);
200
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
201
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
202
- $payload.setProperty(runtime, "coordinate", coordinate);
203
- }
204
- $payload.setProperty(runtime, "id", $event.id);
205
- {
206
- auto position = jsi::Object(runtime);
207
- position.setProperty(runtime, "x", $event.position.x);
208
- position.setProperty(runtime, "y", $event.position.y);
209
- $payload.setProperty(runtime, "position", position);
210
- }
211
- return $payload;
212
- });
213
- }
214
-
215
-
216
- void RNMapsGoogleMapViewEventEmitter::onMarkerPress(OnMarkerPress $event) const {
217
- dispatchEvent("markerPress", [$event=std::move($event)](jsi::Runtime &runtime) {
218
- auto $payload = jsi::Object(runtime);
219
- $payload.setProperty(runtime, "action", $event.action);
220
- $payload.setProperty(runtime, "id", $event.id);
221
- {
222
- auto coordinate = jsi::Object(runtime);
223
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
224
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
225
- $payload.setProperty(runtime, "coordinate", coordinate);
226
- }
227
- {
228
- auto position = jsi::Object(runtime);
229
- position.setProperty(runtime, "x", $event.position.x);
230
- position.setProperty(runtime, "y", $event.position.y);
231
- $payload.setProperty(runtime, "position", position);
232
- }
233
- return $payload;
234
- });
235
- }
236
-
237
-
238
- void RNMapsGoogleMapViewEventEmitter::onMarkerSelect(OnMarkerSelect $event) const {
239
- dispatchEvent("markerSelect", [$event=std::move($event)](jsi::Runtime &runtime) {
240
- auto $payload = jsi::Object(runtime);
241
- $payload.setProperty(runtime, "action", $event.action);
242
- $payload.setProperty(runtime, "id", $event.id);
243
- {
244
- auto coordinate = jsi::Object(runtime);
245
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
246
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
247
- $payload.setProperty(runtime, "coordinate", coordinate);
248
- }
249
- return $payload;
250
- });
251
- }
252
-
253
-
254
- void RNMapsGoogleMapViewEventEmitter::onPanDrag(OnPanDrag $event) const {
255
- dispatchEvent("panDrag", [$event=std::move($event)](jsi::Runtime &runtime) {
256
- auto $payload = jsi::Object(runtime);
257
- {
258
- auto coordinate = jsi::Object(runtime);
259
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
260
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
261
- $payload.setProperty(runtime, "coordinate", coordinate);
262
- }
263
- {
264
- auto position = jsi::Object(runtime);
265
- position.setProperty(runtime, "x", $event.position.x);
266
- position.setProperty(runtime, "y", $event.position.y);
267
- $payload.setProperty(runtime, "position", position);
268
- }
269
- return $payload;
270
- });
271
- }
272
-
273
-
274
- void RNMapsGoogleMapViewEventEmitter::onPoiClick(OnPoiClick $event) const {
275
- dispatchEvent("poiClick", [$event=std::move($event)](jsi::Runtime &runtime) {
276
- auto $payload = jsi::Object(runtime);
277
- $payload.setProperty(runtime, "placeId", $event.placeId);
278
- $payload.setProperty(runtime, "name", $event.name);
279
- {
280
- auto coordinate = jsi::Object(runtime);
281
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
282
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
283
- $payload.setProperty(runtime, "coordinate", coordinate);
284
- }
285
- {
286
- auto position = jsi::Object(runtime);
287
- position.setProperty(runtime, "x", $event.position.x);
288
- position.setProperty(runtime, "y", $event.position.y);
289
- $payload.setProperty(runtime, "position", position);
290
- }
291
- return $payload;
292
- });
293
- }
294
-
295
-
296
- void RNMapsGoogleMapViewEventEmitter::onPress(OnPress $event) const {
297
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
298
- auto $payload = jsi::Object(runtime);
299
- {
300
- auto coordinate = jsi::Object(runtime);
301
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
302
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
303
- $payload.setProperty(runtime, "coordinate", coordinate);
304
- }
305
- {
306
- auto position = jsi::Object(runtime);
307
- position.setProperty(runtime, "x", $event.position.x);
308
- position.setProperty(runtime, "y", $event.position.y);
309
- $payload.setProperty(runtime, "position", position);
310
- }
311
- $payload.setProperty(runtime, "action", $event.action);
312
- return $payload;
313
- });
314
- }
315
-
316
-
317
- void RNMapsGoogleMapViewEventEmitter::onRegionChangeStart(OnRegionChangeStart $event) const {
318
- dispatchEvent("regionChangeStart", [$event=std::move($event)](jsi::Runtime &runtime) {
319
- auto $payload = jsi::Object(runtime);
320
- {
321
- auto region = jsi::Object(runtime);
322
- region.setProperty(runtime, "latitude", $event.region.latitude);
323
- region.setProperty(runtime, "longitude", $event.region.longitude);
324
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
325
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
326
- $payload.setProperty(runtime, "region", region);
327
- }
328
- $payload.setProperty(runtime, "continuous", $event.continuous);
329
- return $payload;
330
- });
331
- }
332
-
333
-
334
- void RNMapsGoogleMapViewEventEmitter::onRegionChange(OnRegionChange $event) const {
335
- dispatchEvent("regionChange", [$event=std::move($event)](jsi::Runtime &runtime) {
336
- auto $payload = jsi::Object(runtime);
337
- {
338
- auto region = jsi::Object(runtime);
339
- region.setProperty(runtime, "latitude", $event.region.latitude);
340
- region.setProperty(runtime, "longitude", $event.region.longitude);
341
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
342
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
343
- $payload.setProperty(runtime, "region", region);
344
- }
345
- $payload.setProperty(runtime, "continuous", $event.continuous);
346
- return $payload;
347
- });
348
- }
349
-
350
-
351
- void RNMapsGoogleMapViewEventEmitter::onRegionChangeComplete(OnRegionChangeComplete $event) const {
352
- dispatchEvent("regionChangeComplete", [$event=std::move($event)](jsi::Runtime &runtime) {
353
- auto $payload = jsi::Object(runtime);
354
- {
355
- auto region = jsi::Object(runtime);
356
- region.setProperty(runtime, "latitude", $event.region.latitude);
357
- region.setProperty(runtime, "longitude", $event.region.longitude);
358
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
359
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
360
- $payload.setProperty(runtime, "region", region);
361
- }
362
- $payload.setProperty(runtime, "continuous", $event.continuous);
363
- return $payload;
364
- });
365
- }
366
-
367
-
368
- void RNMapsGoogleMapViewEventEmitter::onUserLocationChange(OnUserLocationChange $event) const {
369
- dispatchEvent("userLocationChange", [$event=std::move($event)](jsi::Runtime &runtime) {
370
- auto $payload = jsi::Object(runtime);
371
- {
372
- auto coordinate = jsi::Object(runtime);
373
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
374
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
375
- coordinate.setProperty(runtime, "altitude", $event.coordinate.altitude);
376
- coordinate.setProperty(runtime, "timestamp", $event.coordinate.timestamp);
377
- coordinate.setProperty(runtime, "accuracy", $event.coordinate.accuracy);
378
- coordinate.setProperty(runtime, "speed", $event.coordinate.speed);
379
- coordinate.setProperty(runtime, "heading", $event.coordinate.heading);
380
- coordinate.setProperty(runtime, "altitudeAccuracy", $event.coordinate.altitudeAccuracy);
381
- coordinate.setProperty(runtime, "isFromMockProvider", $event.coordinate.isFromMockProvider);
382
- $payload.setProperty(runtime, "coordinate", coordinate);
383
- }
384
- {
385
- auto error = jsi::Object(runtime);
386
- error.setProperty(runtime, "message", $event.error.message);
387
- $payload.setProperty(runtime, "error", error);
388
- }
389
- return $payload;
390
- });
391
- }
392
-
393
-
394
- void RNMapsGooglePolygonEventEmitter::onPress(OnPress $event) const {
395
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
396
- auto $payload = jsi::Object(runtime);
397
- $payload.setProperty(runtime, "action", $event.action);
398
- $payload.setProperty(runtime, "id", $event.id);
399
- {
400
- auto coordinate = jsi::Object(runtime);
401
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
402
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
403
- $payload.setProperty(runtime, "coordinate", coordinate);
404
- }
405
- {
406
- auto position = jsi::Object(runtime);
407
- position.setProperty(runtime, "x", $event.position.x);
408
- position.setProperty(runtime, "y", $event.position.y);
409
- $payload.setProperty(runtime, "position", position);
410
- }
411
- return $payload;
412
- });
413
- }
414
-
415
-
416
- void RNMapsMapViewEventEmitter::onCalloutPress(OnCalloutPress $event) const {
417
- dispatchEvent("calloutPress", [$event=std::move($event)](jsi::Runtime &runtime) {
418
- auto $payload = jsi::Object(runtime);
419
- $payload.setProperty(runtime, "action", $event.action);
420
- {
421
- auto frame = jsi::Object(runtime);
422
- frame.setProperty(runtime, "x", $event.frame.x);
423
- frame.setProperty(runtime, "y", $event.frame.y);
424
- frame.setProperty(runtime, "width", $event.frame.width);
425
- frame.setProperty(runtime, "height", $event.frame.height);
426
- $payload.setProperty(runtime, "frame", frame);
427
- }
428
- $payload.setProperty(runtime, "id", $event.id);
429
- {
430
- auto point = jsi::Object(runtime);
431
- point.setProperty(runtime, "x", $event.point.x);
432
- point.setProperty(runtime, "y", $event.point.y);
433
- $payload.setProperty(runtime, "point", point);
434
- }
435
- {
436
- auto coordinate = jsi::Object(runtime);
437
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
438
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
439
- $payload.setProperty(runtime, "coordinate", coordinate);
440
- }
441
- {
442
- auto position = jsi::Object(runtime);
443
- position.setProperty(runtime, "x", $event.position.x);
444
- position.setProperty(runtime, "y", $event.position.y);
445
- $payload.setProperty(runtime, "position", position);
446
- }
447
- return $payload;
448
- });
449
- }
450
-
451
-
452
- void RNMapsMapViewEventEmitter::onDoublePress(OnDoublePress $event) const {
453
- dispatchEvent("doublePress", [$event=std::move($event)](jsi::Runtime &runtime) {
454
- auto $payload = jsi::Object(runtime);
455
- {
456
- auto coordinate = jsi::Object(runtime);
457
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
458
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
459
- $payload.setProperty(runtime, "coordinate", coordinate);
460
- }
461
- {
462
- auto position = jsi::Object(runtime);
463
- position.setProperty(runtime, "x", $event.position.x);
464
- position.setProperty(runtime, "y", $event.position.y);
465
- $payload.setProperty(runtime, "position", position);
466
- }
467
- return $payload;
468
- });
469
- }
470
-
471
-
472
- void RNMapsMapViewEventEmitter::onIndoorBuildingFocused(OnIndoorBuildingFocused $event) const {
473
- dispatchEvent("indoorBuildingFocused", [$event=std::move($event)](jsi::Runtime &runtime) {
474
- auto $payload = jsi::Object(runtime);
475
- {
476
- auto IndoorBuilding = jsi::Object(runtime);
477
- IndoorBuilding.setProperty(runtime, "underground", $event.IndoorBuilding.underground);
478
- IndoorBuilding.setProperty(runtime, "activeLevelIndex", $event.IndoorBuilding.activeLevelIndex);
479
- $payload.setProperty(runtime, "IndoorBuilding", IndoorBuilding);
480
- }
481
- return $payload;
482
- });
483
- }
484
-
485
-
486
- void RNMapsMapViewEventEmitter::onIndoorLevelActivated(OnIndoorLevelActivated $event) const {
487
- dispatchEvent("indoorLevelActivated", [$event=std::move($event)](jsi::Runtime &runtime) {
488
- auto $payload = jsi::Object(runtime);
489
- {
490
- auto IndoorLevel = jsi::Object(runtime);
491
- IndoorLevel.setProperty(runtime, "activeLevelIndex", $event.IndoorLevel.activeLevelIndex);
492
- IndoorLevel.setProperty(runtime, "name", $event.IndoorLevel.name);
493
- IndoorLevel.setProperty(runtime, "shortName", $event.IndoorLevel.shortName);
494
- $payload.setProperty(runtime, "IndoorLevel", IndoorLevel);
495
- }
496
- return $payload;
497
- });
498
- }
499
-
500
-
501
- void RNMapsMapViewEventEmitter::onKmlReady(OnKmlReady $event) const {
502
- dispatchEvent("kmlReady", [](jsi::Runtime &runtime) {
503
- auto $payload = jsi::Object(runtime);
504
-
505
- return $payload;
506
- });
507
- }
508
-
509
-
510
- void RNMapsMapViewEventEmitter::onLongPress(OnLongPress $event) const {
511
- dispatchEvent("longPress", [$event=std::move($event)](jsi::Runtime &runtime) {
512
- auto $payload = jsi::Object(runtime);
513
- {
514
- auto coordinate = jsi::Object(runtime);
515
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
516
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
517
- $payload.setProperty(runtime, "coordinate", coordinate);
518
- }
519
- {
520
- auto position = jsi::Object(runtime);
521
- position.setProperty(runtime, "x", $event.position.x);
522
- position.setProperty(runtime, "y", $event.position.y);
523
- $payload.setProperty(runtime, "position", position);
524
- }
525
- $payload.setProperty(runtime, "action", $event.action);
526
- return $payload;
527
- });
528
- }
529
-
530
-
531
- void RNMapsMapViewEventEmitter::onMapLoaded(OnMapLoaded $event) const {
532
- dispatchEvent("mapLoaded", [](jsi::Runtime &runtime) {
533
- auto $payload = jsi::Object(runtime);
534
-
535
- return $payload;
536
- });
537
- }
538
-
539
-
540
- void RNMapsMapViewEventEmitter::onMapReady(OnMapReady $event) const {
541
- dispatchEvent("mapReady", [](jsi::Runtime &runtime) {
542
- auto $payload = jsi::Object(runtime);
543
-
544
- return $payload;
545
- });
546
- }
547
-
548
-
549
- void RNMapsMapViewEventEmitter::onMarkerDeselect(OnMarkerDeselect $event) const {
550
- dispatchEvent("markerDeselect", [$event=std::move($event)](jsi::Runtime &runtime) {
551
- auto $payload = jsi::Object(runtime);
552
- $payload.setProperty(runtime, "action", $event.action);
553
- $payload.setProperty(runtime, "id", $event.id);
554
- {
555
- auto coordinate = jsi::Object(runtime);
556
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
557
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
558
- $payload.setProperty(runtime, "coordinate", coordinate);
559
- }
560
- return $payload;
561
- });
562
- }
563
-
564
-
565
- void RNMapsMapViewEventEmitter::onMarkerDrag(OnMarkerDrag $event) const {
566
- dispatchEvent("markerDrag", [$event=std::move($event)](jsi::Runtime &runtime) {
567
- auto $payload = jsi::Object(runtime);
568
- {
569
- auto coordinate = jsi::Object(runtime);
570
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
571
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
572
- $payload.setProperty(runtime, "coordinate", coordinate);
573
- }
574
- {
575
- auto position = jsi::Object(runtime);
576
- position.setProperty(runtime, "x", $event.position.x);
577
- position.setProperty(runtime, "y", $event.position.y);
578
- $payload.setProperty(runtime, "position", position);
579
- }
580
- $payload.setProperty(runtime, "id", $event.id);
581
- return $payload;
582
- });
583
- }
584
-
585
-
586
- void RNMapsMapViewEventEmitter::onMarkerDragEnd(OnMarkerDragEnd $event) const {
587
- dispatchEvent("markerDragEnd", [$event=std::move($event)](jsi::Runtime &runtime) {
588
- auto $payload = jsi::Object(runtime);
589
- {
590
- auto coordinate = jsi::Object(runtime);
591
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
592
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
593
- $payload.setProperty(runtime, "coordinate", coordinate);
594
- }
595
- $payload.setProperty(runtime, "id", $event.id);
596
- {
597
- auto position = jsi::Object(runtime);
598
- position.setProperty(runtime, "x", $event.position.x);
599
- position.setProperty(runtime, "y", $event.position.y);
600
- $payload.setProperty(runtime, "position", position);
601
- }
602
- return $payload;
603
- });
604
- }
605
-
606
-
607
- void RNMapsMapViewEventEmitter::onMarkerDragStart(OnMarkerDragStart $event) const {
608
- dispatchEvent("markerDragStart", [$event=std::move($event)](jsi::Runtime &runtime) {
609
- auto $payload = jsi::Object(runtime);
610
- {
611
- auto coordinate = jsi::Object(runtime);
612
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
613
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
614
- $payload.setProperty(runtime, "coordinate", coordinate);
615
- }
616
- $payload.setProperty(runtime, "id", $event.id);
617
- {
618
- auto position = jsi::Object(runtime);
619
- position.setProperty(runtime, "x", $event.position.x);
620
- position.setProperty(runtime, "y", $event.position.y);
621
- $payload.setProperty(runtime, "position", position);
622
- }
623
- return $payload;
624
- });
625
- }
626
-
627
-
628
- void RNMapsMapViewEventEmitter::onMarkerPress(OnMarkerPress $event) const {
629
- dispatchEvent("markerPress", [$event=std::move($event)](jsi::Runtime &runtime) {
630
- auto $payload = jsi::Object(runtime);
631
- $payload.setProperty(runtime, "action", $event.action);
632
- $payload.setProperty(runtime, "id", $event.id);
633
- {
634
- auto coordinate = jsi::Object(runtime);
635
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
636
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
637
- $payload.setProperty(runtime, "coordinate", coordinate);
638
- }
639
- {
640
- auto position = jsi::Object(runtime);
641
- position.setProperty(runtime, "x", $event.position.x);
642
- position.setProperty(runtime, "y", $event.position.y);
643
- $payload.setProperty(runtime, "position", position);
644
- }
645
- return $payload;
646
- });
647
- }
648
-
649
-
650
- void RNMapsMapViewEventEmitter::onMarkerSelect(OnMarkerSelect $event) const {
651
- dispatchEvent("markerSelect", [$event=std::move($event)](jsi::Runtime &runtime) {
652
- auto $payload = jsi::Object(runtime);
653
- $payload.setProperty(runtime, "action", $event.action);
654
- $payload.setProperty(runtime, "id", $event.id);
655
- {
656
- auto coordinate = jsi::Object(runtime);
657
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
658
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
659
- $payload.setProperty(runtime, "coordinate", coordinate);
660
- }
661
- return $payload;
662
- });
663
- }
664
-
665
-
666
- void RNMapsMapViewEventEmitter::onPanDrag(OnPanDrag $event) const {
667
- dispatchEvent("panDrag", [$event=std::move($event)](jsi::Runtime &runtime) {
668
- auto $payload = jsi::Object(runtime);
669
- {
670
- auto coordinate = jsi::Object(runtime);
671
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
672
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
673
- $payload.setProperty(runtime, "coordinate", coordinate);
674
- }
675
- {
676
- auto position = jsi::Object(runtime);
677
- position.setProperty(runtime, "x", $event.position.x);
678
- position.setProperty(runtime, "y", $event.position.y);
679
- $payload.setProperty(runtime, "position", position);
680
- }
681
- return $payload;
682
- });
683
- }
684
-
685
-
686
- void RNMapsMapViewEventEmitter::onPoiClick(OnPoiClick $event) const {
687
- dispatchEvent("poiClick", [$event=std::move($event)](jsi::Runtime &runtime) {
688
- auto $payload = jsi::Object(runtime);
689
- $payload.setProperty(runtime, "placeId", $event.placeId);
690
- $payload.setProperty(runtime, "name", $event.name);
691
- {
692
- auto coordinate = jsi::Object(runtime);
693
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
694
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
695
- $payload.setProperty(runtime, "coordinate", coordinate);
696
- }
697
- {
698
- auto position = jsi::Object(runtime);
699
- position.setProperty(runtime, "x", $event.position.x);
700
- position.setProperty(runtime, "y", $event.position.y);
701
- $payload.setProperty(runtime, "position", position);
702
- }
703
- return $payload;
704
- });
705
- }
706
-
707
-
708
- void RNMapsMapViewEventEmitter::onPress(OnPress $event) const {
709
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
710
- auto $payload = jsi::Object(runtime);
711
- {
712
- auto coordinate = jsi::Object(runtime);
713
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
714
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
715
- $payload.setProperty(runtime, "coordinate", coordinate);
716
- }
717
- {
718
- auto position = jsi::Object(runtime);
719
- position.setProperty(runtime, "x", $event.position.x);
720
- position.setProperty(runtime, "y", $event.position.y);
721
- $payload.setProperty(runtime, "position", position);
722
- }
723
- $payload.setProperty(runtime, "action", $event.action);
724
- return $payload;
725
- });
726
- }
727
-
728
-
729
- void RNMapsMapViewEventEmitter::onRegionChangeStart(OnRegionChangeStart $event) const {
730
- dispatchEvent("regionChangeStart", [$event=std::move($event)](jsi::Runtime &runtime) {
731
- auto $payload = jsi::Object(runtime);
732
- {
733
- auto region = jsi::Object(runtime);
734
- region.setProperty(runtime, "latitude", $event.region.latitude);
735
- region.setProperty(runtime, "longitude", $event.region.longitude);
736
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
737
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
738
- $payload.setProperty(runtime, "region", region);
739
- }
740
- $payload.setProperty(runtime, "continuous", $event.continuous);
741
- return $payload;
742
- });
743
- }
744
-
745
-
746
- void RNMapsMapViewEventEmitter::onRegionChange(OnRegionChange $event) const {
747
- dispatchEvent("regionChange", [$event=std::move($event)](jsi::Runtime &runtime) {
748
- auto $payload = jsi::Object(runtime);
749
- {
750
- auto region = jsi::Object(runtime);
751
- region.setProperty(runtime, "latitude", $event.region.latitude);
752
- region.setProperty(runtime, "longitude", $event.region.longitude);
753
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
754
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
755
- $payload.setProperty(runtime, "region", region);
756
- }
757
- $payload.setProperty(runtime, "continuous", $event.continuous);
758
- return $payload;
759
- });
760
- }
761
-
762
-
763
- void RNMapsMapViewEventEmitter::onRegionChangeComplete(OnRegionChangeComplete $event) const {
764
- dispatchEvent("regionChangeComplete", [$event=std::move($event)](jsi::Runtime &runtime) {
765
- auto $payload = jsi::Object(runtime);
766
- {
767
- auto region = jsi::Object(runtime);
768
- region.setProperty(runtime, "latitude", $event.region.latitude);
769
- region.setProperty(runtime, "longitude", $event.region.longitude);
770
- region.setProperty(runtime, "latitudeDelta", $event.region.latitudeDelta);
771
- region.setProperty(runtime, "longitudeDelta", $event.region.longitudeDelta);
772
- $payload.setProperty(runtime, "region", region);
773
- }
774
- $payload.setProperty(runtime, "continuous", $event.continuous);
775
- return $payload;
776
- });
777
- }
778
-
779
-
780
- void RNMapsMapViewEventEmitter::onUserLocationChange(OnUserLocationChange $event) const {
781
- dispatchEvent("userLocationChange", [$event=std::move($event)](jsi::Runtime &runtime) {
782
- auto $payload = jsi::Object(runtime);
783
- {
784
- auto coordinate = jsi::Object(runtime);
785
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
786
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
787
- coordinate.setProperty(runtime, "altitude", $event.coordinate.altitude);
788
- coordinate.setProperty(runtime, "timestamp", $event.coordinate.timestamp);
789
- coordinate.setProperty(runtime, "accuracy", $event.coordinate.accuracy);
790
- coordinate.setProperty(runtime, "speed", $event.coordinate.speed);
791
- coordinate.setProperty(runtime, "heading", $event.coordinate.heading);
792
- coordinate.setProperty(runtime, "altitudeAccuracy", $event.coordinate.altitudeAccuracy);
793
- coordinate.setProperty(runtime, "isFromMockProvider", $event.coordinate.isFromMockProvider);
794
- $payload.setProperty(runtime, "coordinate", coordinate);
795
- }
796
- {
797
- auto error = jsi::Object(runtime);
798
- error.setProperty(runtime, "message", $event.error.message);
799
- $payload.setProperty(runtime, "error", error);
800
- }
801
- return $payload;
802
- });
803
- }
804
-
805
-
806
- void RNMapsMarkerEventEmitter::onCalloutPress(OnCalloutPress $event) const {
807
- dispatchEvent("calloutPress", [$event=std::move($event)](jsi::Runtime &runtime) {
808
- auto $payload = jsi::Object(runtime);
809
- $payload.setProperty(runtime, "action", $event.action);
810
- $payload.setProperty(runtime, "id", $event.id);
811
- {
812
- auto frame = jsi::Object(runtime);
813
- frame.setProperty(runtime, "x", $event.frame.x);
814
- frame.setProperty(runtime, "y", $event.frame.y);
815
- frame.setProperty(runtime, "width", $event.frame.width);
816
- frame.setProperty(runtime, "height", $event.frame.height);
817
- $payload.setProperty(runtime, "frame", frame);
818
- }
819
- {
820
- auto point = jsi::Object(runtime);
821
- point.setProperty(runtime, "x", $event.point.x);
822
- point.setProperty(runtime, "y", $event.point.y);
823
- $payload.setProperty(runtime, "point", point);
824
- }
825
- return $payload;
826
- });
827
- }
828
-
829
-
830
- void RNMapsMarkerEventEmitter::onDeselect(OnDeselect $event) const {
831
- dispatchEvent("deselect", [$event=std::move($event)](jsi::Runtime &runtime) {
832
- auto $payload = jsi::Object(runtime);
833
- $payload.setProperty(runtime, "action", $event.action);
834
- $payload.setProperty(runtime, "id", $event.id);
835
- {
836
- auto coordinate = jsi::Object(runtime);
837
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
838
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
839
- $payload.setProperty(runtime, "coordinate", coordinate);
840
- }
841
- {
842
- auto position = jsi::Object(runtime);
843
- position.setProperty(runtime, "x", $event.position.x);
844
- position.setProperty(runtime, "y", $event.position.y);
845
- $payload.setProperty(runtime, "position", position);
846
- }
847
- return $payload;
848
- });
849
- }
850
-
851
-
852
- void RNMapsMarkerEventEmitter::onDrag(OnDrag $event) const {
853
- dispatchEvent("drag", [$event=std::move($event)](jsi::Runtime &runtime) {
854
- auto $payload = jsi::Object(runtime);
855
- $payload.setProperty(runtime, "id", $event.id);
856
- {
857
- auto coordinate = jsi::Object(runtime);
858
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
859
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
860
- $payload.setProperty(runtime, "coordinate", coordinate);
861
- }
862
- return $payload;
863
- });
864
- }
865
-
866
-
867
- void RNMapsMarkerEventEmitter::onDragEnd(OnDragEnd $event) const {
868
- dispatchEvent("dragEnd", [$event=std::move($event)](jsi::Runtime &runtime) {
869
- auto $payload = jsi::Object(runtime);
870
- $payload.setProperty(runtime, "id", $event.id);
871
- {
872
- auto coordinate = jsi::Object(runtime);
873
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
874
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
875
- $payload.setProperty(runtime, "coordinate", coordinate);
876
- }
877
- return $payload;
878
- });
879
- }
880
-
881
-
882
- void RNMapsMarkerEventEmitter::onDragStart(OnDragStart $event) const {
883
- dispatchEvent("dragStart", [$event=std::move($event)](jsi::Runtime &runtime) {
884
- auto $payload = jsi::Object(runtime);
885
- $payload.setProperty(runtime, "id", $event.id);
886
- {
887
- auto coordinate = jsi::Object(runtime);
888
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
889
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
890
- $payload.setProperty(runtime, "coordinate", coordinate);
891
- }
892
- return $payload;
893
- });
894
- }
895
-
896
-
897
- void RNMapsMarkerEventEmitter::onPress(OnPress $event) const {
898
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
899
- auto $payload = jsi::Object(runtime);
900
- $payload.setProperty(runtime, "action", $event.action);
901
- $payload.setProperty(runtime, "id", $event.id);
902
- {
903
- auto coordinate = jsi::Object(runtime);
904
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
905
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
906
- $payload.setProperty(runtime, "coordinate", coordinate);
907
- }
908
- {
909
- auto position = jsi::Object(runtime);
910
- position.setProperty(runtime, "x", $event.position.x);
911
- position.setProperty(runtime, "y", $event.position.y);
912
- $payload.setProperty(runtime, "position", position);
913
- }
914
- return $payload;
915
- });
916
- }
917
-
918
-
919
- void RNMapsMarkerEventEmitter::onSelect(OnSelect $event) const {
920
- dispatchEvent("select", [$event=std::move($event)](jsi::Runtime &runtime) {
921
- auto $payload = jsi::Object(runtime);
922
- $payload.setProperty(runtime, "action", $event.action);
923
- $payload.setProperty(runtime, "id", $event.id);
924
- {
925
- auto coordinate = jsi::Object(runtime);
926
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
927
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
928
- $payload.setProperty(runtime, "coordinate", coordinate);
929
- }
930
- {
931
- auto position = jsi::Object(runtime);
932
- position.setProperty(runtime, "x", $event.position.x);
933
- position.setProperty(runtime, "y", $event.position.y);
934
- $payload.setProperty(runtime, "position", position);
935
- }
936
- return $payload;
937
- });
938
- }
939
-
940
-
941
- void RNMapsOverlayEventEmitter::onPress(OnPress $event) const {
942
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
943
- auto $payload = jsi::Object(runtime);
944
- $payload.setProperty(runtime, "action", $event.action);
945
- $payload.setProperty(runtime, "id", $event.id);
946
- {
947
- auto coordinate = jsi::Object(runtime);
948
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
949
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
950
- $payload.setProperty(runtime, "coordinate", coordinate);
951
- }
952
- {
953
- auto position = jsi::Object(runtime);
954
- position.setProperty(runtime, "x", $event.position.x);
955
- position.setProperty(runtime, "y", $event.position.y);
956
- $payload.setProperty(runtime, "position", position);
957
- }
958
- return $payload;
959
- });
960
- }
961
-
962
-
963
- void RNMapsPolylineEventEmitter::onPress(OnPress $event) const {
964
- dispatchEvent("press", [$event=std::move($event)](jsi::Runtime &runtime) {
965
- auto $payload = jsi::Object(runtime);
966
- $payload.setProperty(runtime, "action", $event.action);
967
- $payload.setProperty(runtime, "id", $event.id);
968
- {
969
- auto coordinate = jsi::Object(runtime);
970
- coordinate.setProperty(runtime, "latitude", $event.coordinate.latitude);
971
- coordinate.setProperty(runtime, "longitude", $event.coordinate.longitude);
972
- $payload.setProperty(runtime, "coordinate", coordinate);
973
- }
974
- {
975
- auto position = jsi::Object(runtime);
976
- position.setProperty(runtime, "x", $event.position.x);
977
- position.setProperty(runtime, "y", $event.position.y);
978
- $payload.setProperty(runtime, "position", position);
979
- }
980
- return $payload;
981
- });
982
- }
983
-
984
- } // namespace facebook::react