react-native-maps 1.21.0-alpha.114 → 1.21.0-alpha.116

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 (144) hide show
  1. package/android/src/generated/RCTAppDependencyProvider.h +25 -0
  2. package/android/src/generated/RCTAppDependencyProvider.mm +55 -0
  3. package/android/src/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  4. package/android/src/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  5. package/android/src/generated/RCTThirdPartyComponentsProvider.h +16 -0
  6. package/android/src/generated/RCTThirdPartyComponentsProvider.mm +26 -0
  7. package/android/src/generated/ReactAppDependencyProvider.podspec +34 -0
  8. package/android/src/generated/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +63 -0
  9. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +35 -0
  10. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +17 -0
  11. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +49 -0
  12. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +23 -0
  13. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +49 -0
  14. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +23 -0
  15. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +206 -0
  16. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +73 -0
  17. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +104 -0
  18. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +39 -0
  19. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +46 -0
  20. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +23 -0
  21. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +58 -0
  22. package/android/src/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +26 -0
  23. package/android/src/generated/jni/CMakeLists.txt +36 -0
  24. package/android/src/generated/jni/RNMapsSpecs-generated.cpp +68 -0
  25. package/android/src/generated/jni/RNMapsSpecs.h +31 -0
  26. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
  27. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +31 -0
  28. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +977 -0
  29. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +846 -0
  30. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/Props.cpp +193 -0
  31. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/Props.h +1223 -0
  32. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +74 -0
  33. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +268 -0
  34. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +24 -0
  35. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +109 -0
  36. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/States.cpp +16 -0
  37. package/android/src/generated/jni/react/renderer/components/RNMapsSpecs/States.h +113 -0
  38. package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +0 -12
  39. package/ios/generated/ReactAppDependencyProvider.podspec +1 -1
  40. package/package.json +16 -18
  41. package/src/AnimatedRegion.ts +169 -0
  42. package/src/Geojson.tsx +541 -0
  43. package/src/MapCallout.tsx +77 -0
  44. package/src/MapCalloutSubview.tsx +64 -0
  45. package/src/MapCircle.tsx +162 -0
  46. package/src/MapHeatmap.tsx +125 -0
  47. package/src/MapLocalTile.tsx +60 -0
  48. package/src/MapMarker.tsx +531 -0
  49. package/src/MapMarkerNativeComponent.ts +51 -0
  50. package/src/MapOverlay.tsx +156 -0
  51. package/src/MapPolygon.tsx +188 -0
  52. package/src/MapPolygon.types.ts +25 -0
  53. package/src/MapPolyline.tsx +215 -0
  54. package/src/MapUrlTile.tsx +169 -0
  55. package/src/MapView.tsx +1223 -0
  56. package/src/MapView.types.ts +212 -0
  57. package/src/MapView.web.ts +2 -0
  58. package/src/MapViewNativeComponent.ts +86 -0
  59. package/src/MapWMSTile.tsx +148 -0
  60. package/src/ProviderConstants.ts +2 -0
  61. package/src/createFabricMap.tsx +253 -0
  62. package/src/decorateMapComponent.ts +219 -0
  63. package/src/fixImageProp.ts +17 -0
  64. package/src/index.ts +52 -0
  65. package/src/sharedTypes.ts +101 -0
  66. package/src/specs/NativeAirMapsModule.ts +36 -0
  67. package/src/specs/NativeComponentCallout.ts +63 -0
  68. package/src/specs/NativeComponentCircle.ts +93 -0
  69. package/src/specs/NativeComponentGoogleMapView.ts +913 -0
  70. package/src/specs/NativeComponentGooglePolygon.ts +94 -0
  71. package/src/specs/NativeComponentMapView.ts +1091 -0
  72. package/src/specs/NativeComponentMarker.ts +326 -0
  73. package/src/specs/NativeComponentOverlay.ts +89 -0
  74. package/src/specs/NativeComponentPolyline.ts +124 -0
  75. package/lib/AnimatedRegion.d.ts +0 -19
  76. package/lib/AnimatedRegion.js +0 -134
  77. package/lib/Geojson.d.ts +0 -204
  78. package/lib/Geojson.js +0 -166
  79. package/lib/MapCallout.d.ts +0 -40
  80. package/lib/MapCallout.js +0 -51
  81. package/lib/MapCalloutSubview.d.ts +0 -34
  82. package/lib/MapCalloutSubview.js +0 -48
  83. package/lib/MapCircle.d.ts +0 -117
  84. package/lib/MapCircle.js +0 -53
  85. package/lib/MapHeatmap.d.ts +0 -78
  86. package/lib/MapHeatmap.js +0 -59
  87. package/lib/MapLocalTile.d.ts +0 -35
  88. package/lib/MapLocalTile.js +0 -44
  89. package/lib/MapMarker.d.ts +0 -322
  90. package/lib/MapMarker.js +0 -158
  91. package/lib/MapMarkerNativeComponent.d.ts +0 -15
  92. package/lib/MapMarkerNativeComponent.js +0 -15
  93. package/lib/MapOverlay.d.ts +0 -88
  94. package/lib/MapOverlay.js +0 -65
  95. package/lib/MapPolygon.d.ts +0 -140
  96. package/lib/MapPolygon.js +0 -53
  97. package/lib/MapPolygon.types.d.ts +0 -18
  98. package/lib/MapPolygon.types.js +0 -2
  99. package/lib/MapPolyline.d.ts +0 -156
  100. package/lib/MapPolyline.js +0 -53
  101. package/lib/MapUrlTile.d.ts +0 -134
  102. package/lib/MapUrlTile.js +0 -44
  103. package/lib/MapView.d.ts +0 -703
  104. package/lib/MapView.js +0 -428
  105. package/lib/MapView.types.d.ts +0 -161
  106. package/lib/MapView.types.js +0 -2
  107. package/lib/MapView.web.d.ts +0 -1
  108. package/lib/MapView.web.js +0 -9
  109. package/lib/MapViewNativeComponent.d.ts +0 -18
  110. package/lib/MapViewNativeComponent.js +0 -19
  111. package/lib/MapWMSTile.d.ts +0 -116
  112. package/lib/MapWMSTile.js +0 -44
  113. package/lib/ProviderConstants.d.ts +0 -2
  114. package/lib/ProviderConstants.js +0 -5
  115. package/lib/createFabricMap.d.ts +0 -24
  116. package/lib/createFabricMap.js +0 -188
  117. package/lib/decorateMapComponent.d.ts +0 -36
  118. package/lib/decorateMapComponent.js +0 -120
  119. package/lib/fixImageProp.d.ts +0 -4
  120. package/lib/fixImageProp.js +0 -16
  121. package/lib/index.d.ts +0 -38
  122. package/lib/index.js +0 -81
  123. package/lib/sharedTypes.d.ts +0 -81
  124. package/lib/sharedTypes.js +0 -2
  125. package/lib/sharedTypesInternal.js +0 -2
  126. package/lib/specs/NativeAirMapsModule.d.ts +0 -31
  127. package/lib/specs/NativeAirMapsModule.js +0 -4
  128. package/lib/specs/NativeComponentCallout.d.ts +0 -46
  129. package/lib/specs/NativeComponentCallout.js +0 -9
  130. package/lib/specs/NativeComponentCircle.d.ts +0 -74
  131. package/lib/specs/NativeComponentCircle.js +0 -7
  132. package/lib/specs/NativeComponentGoogleMapView.d.ts +0 -710
  133. package/lib/specs/NativeComponentGoogleMapView.js +0 -22
  134. package/lib/specs/NativeComponentGooglePolygon.d.ts +0 -75
  135. package/lib/specs/NativeComponentGooglePolygon.js +0 -7
  136. package/lib/specs/NativeComponentMapView.d.ts +0 -842
  137. package/lib/specs/NativeComponentMapView.js +0 -20
  138. package/lib/specs/NativeComponentMarker.d.ts +0 -258
  139. package/lib/specs/NativeComponentMarker.js +0 -19
  140. package/lib/specs/NativeComponentOverlay.d.ts +0 -67
  141. package/lib/specs/NativeComponentOverlay.js +0 -7
  142. package/lib/specs/NativeComponentPolyline.d.ts +0 -101
  143. package/lib/specs/NativeComponentPolyline.js +0 -7
  144. /package/{lib/sharedTypesInternal.d.ts → src/sharedTypesInternal.ts} +0 -0
@@ -1,842 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HostComponent, ViewProps, ColorValue } from 'react-native';
3
- import { Double, Int32, WithDefault, Float, DirectEventHandler, BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
4
- export type EdgePadding = Readonly<{
5
- top: Double;
6
- right: Double;
7
- bottom: Double;
8
- left: Double;
9
- }>;
10
- export type ActionType = 'callout-press' | 'press' | 'marker-press' | 'long-press' | 'marker-deselect' | 'marker-select';
11
- export type Frame = Readonly<{
12
- x: Double;
13
- y: Double;
14
- width: Double;
15
- height: Double;
16
- }>;
17
- export type ClickEvent = DirectEventHandler<Readonly<{
18
- coordinate: {
19
- latitude: Double;
20
- longitude: Double;
21
- };
22
- position: {
23
- x: Double;
24
- y: Double;
25
- };
26
- }>>;
27
- export type KmlMarker = {
28
- id: string;
29
- title: string;
30
- description: string;
31
- coordinate: {
32
- latitude: Double;
33
- longitude: Double;
34
- };
35
- position: {
36
- x: Double;
37
- y: Double;
38
- };
39
- };
40
- export type LongPressEventHandler = BubblingEventHandler<Readonly<{
41
- coordinate: {
42
- latitude: Double;
43
- longitude: Double;
44
- };
45
- position: {
46
- x: Double;
47
- y: Double;
48
- };
49
- action?: string;
50
- }>>;
51
- export type MarkerDeselectEventHandler = DirectEventHandler<Readonly<{
52
- action?: string;
53
- id: string;
54
- coordinate: {
55
- latitude: Double;
56
- longitude: Double;
57
- };
58
- }>>;
59
- export type MarkerSelectEventHandler = DirectEventHandler<Readonly<{
60
- action?: string;
61
- id: string;
62
- coordinate: {
63
- latitude: Double;
64
- longitude: Double;
65
- };
66
- }>>;
67
- export type CalloutPressEvent = DirectEventHandler<{
68
- action?: string;
69
- /**
70
- * @platform iOS
71
- */
72
- frame?: {
73
- x: Double;
74
- y: Double;
75
- width: Double;
76
- height: Double;
77
- };
78
- /**
79
- * @platform iOS
80
- */
81
- id?: string;
82
- /**
83
- * @platform iOS
84
- */
85
- point?: {
86
- x: Double;
87
- y: Double;
88
- };
89
- /**
90
- * @platform Android
91
- */
92
- coordinate?: {
93
- latitude: Double;
94
- longitude: Double;
95
- };
96
- /**
97
- * @platform Android
98
- */
99
- position?: {
100
- x: Double;
101
- y: Double;
102
- };
103
- }>;
104
- export type CalloutPressEventHandler = DirectEventHandler<CalloutPressEvent>;
105
- export type Camera = Readonly<{
106
- /**
107
- * Apple Maps
108
- */
109
- altitude?: Double;
110
- center: LatLng;
111
- heading: Double;
112
- pitch: Double;
113
- /**
114
- * Google Maps
115
- */
116
- zoom?: Float;
117
- }>;
118
- export type LatLng = Readonly<{
119
- latitude: Double;
120
- longitude: Double;
121
- }>;
122
- export type Point = Readonly<{
123
- x: Double;
124
- y: Double;
125
- }>;
126
- export type Region = Readonly<LatLng & {
127
- latitudeDelta: Double;
128
- longitudeDelta: Double;
129
- }>;
130
- export type IndoorLevel = Readonly<{
131
- index: Int32;
132
- name: string;
133
- shortName: string;
134
- }>;
135
- export type IndoorLevelActivatedEventHandler = DirectEventHandler<Readonly<{
136
- IndoorLevel: {
137
- activeLevelIndex: Int32;
138
- name: string;
139
- shortName: string;
140
- };
141
- }>>;
142
- export type IndoorBuilding = Readonly<{
143
- underground: boolean;
144
- activeLevelIndex: Int32;
145
- levels: ReadonlyArray<IndoorLevel>;
146
- }>;
147
- export type IndoorBuildingEventHandler = DirectEventHandler<Readonly<{
148
- IndoorBuilding: {
149
- underground: boolean;
150
- activeLevelIndex: Int32;
151
- };
152
- }>>;
153
- export type Details = Readonly<{
154
- isGesture?: boolean;
155
- }>;
156
- export type MarkerDragEventHandler = DirectEventHandler<Readonly<{
157
- coordinate: {
158
- latitude: Double;
159
- longitude: Double;
160
- };
161
- position: {
162
- x: Double;
163
- y: Double;
164
- };
165
- id?: string;
166
- }>>;
167
- export type MarkerDragStartEndEventHandler = DirectEventHandler<Readonly<{
168
- coordinate: {
169
- latitude: Double;
170
- longitude: Double;
171
- };
172
- id?: string;
173
- position?: {
174
- x: Double;
175
- y: Double;
176
- };
177
- }>>;
178
- export type MarkerPressEventHandler = DirectEventHandler<Readonly<{
179
- action?: string;
180
- id: string;
181
- coordinate: {
182
- latitude: Double;
183
- longitude: Double;
184
- };
185
- position?: {
186
- x: Double;
187
- y: Double;
188
- };
189
- }>>;
190
- export type PanDragEventHandler = DirectEventHandler<Readonly<{
191
- coordinate: {
192
- latitude: Double;
193
- longitude: Double;
194
- };
195
- position: {
196
- x: Double;
197
- y: Double;
198
- };
199
- }>>;
200
- export type PoiClickEventHandler = DirectEventHandler<Readonly<{
201
- placeId: string;
202
- name: string;
203
- coordinate: {
204
- latitude: Double;
205
- longitude: Double;
206
- };
207
- position?: {
208
- x: Double;
209
- y: Double;
210
- };
211
- }>>;
212
- export type MapPressEventHandler = BubblingEventHandler<Readonly<{
213
- coordinate: {
214
- latitude: Double;
215
- longitude: Double;
216
- };
217
- position: {
218
- x: Double;
219
- y: Double;
220
- };
221
- action?: string;
222
- }>>;
223
- export type RegionChangeEvent = Readonly<{
224
- region: {
225
- latitude: Double;
226
- longitude: Double;
227
- latitudeDelta: Double;
228
- longitudeDelta: Double;
229
- };
230
- continuous?: boolean;
231
- }>;
232
- export type UserLocationChangeEvent = Readonly<{
233
- coordinate?: {
234
- latitude: Double;
235
- longitude: Double;
236
- altitude: Double;
237
- timestamp: Double;
238
- accuracy: Float;
239
- speed: Float;
240
- heading: Float;
241
- /**
242
- * @platform iOS
243
- */
244
- altitudeAccuracy?: Float;
245
- /**
246
- * @platform Android
247
- */
248
- isFromMockProvider?: boolean;
249
- };
250
- /**
251
- * @platform iOS
252
- */
253
- error?: Readonly<{
254
- message: string;
255
- }>;
256
- }>;
257
- export type UserLocationChangeEventHandler = DirectEventHandler<UserLocationChangeEvent>;
258
- export type CameraZoomRange = Readonly<{
259
- minCenterCoordinateDistance?: Double;
260
- maxCenterCoordinateDistance?: Double;
261
- animated?: boolean;
262
- }>;
263
- export interface MapFabricNativeProps extends ViewProps {
264
- /**
265
- * If `true` map will be cached and displayed as an image instead of being interactable, for performance usage.
266
- *
267
- * @default false
268
- * @platform iOS: Apple Maps only
269
- * @platform Android: Supported
270
- */
271
- cacheEnabled?: boolean;
272
- /**
273
- * The camera view the map should display.
274
- *
275
- * Use the camera system, instead of the region system, if you need control over
276
- * the pitch or heading. Using this will ignore the `region` property.
277
- * @platform iOS: Supported
278
- * @platform Android: Supported
279
- */
280
- camera?: Camera;
281
- /**
282
- * If set, changes the position of the compass.
283
- *
284
- * @platform iOS: Apple Maps only
285
- * @platform Android: Not supported
286
- */
287
- compassOffset?: Point;
288
- /**
289
- * If `true` the map will focus on the user's location.
290
- * This only works if `showsUserLocation` is true and the user has shared their location.
291
- *
292
- * @default false
293
- * @platform iOS: Apple Maps only
294
- * @platform Android: Not supported
295
- */
296
- followsUserLocation?: boolean;
297
- /**
298
- * If `false` the map will not capture PoI clicks
299
- * This can improve click handling on the map for android
300
- *
301
- * @default true
302
- * @platform iOS: Not supported
303
- * @platform Android: supported
304
- */
305
- poiClickEnabled?: boolean;
306
- /**
307
- * The initial camera view the map should use. Use this prop instead of `camera`
308
- * only if you don't want to control the camera of the map besides the initial view.
309
- *
310
- * Use the camera system, instead of the region system, if you need control over
311
- * the pitch or heading.
312
- *
313
- * Changing this prop after the component has mounted will not result in a camera change.
314
- *
315
- * This is similar to the `initialValue` prop of a text input.
316
- *
317
- * @platform iOS: Supported
318
- * @platform Android: Supported
319
- */
320
- initialCamera?: Camera;
321
- /**
322
- * The initial region to be displayed by the map. Use this prop instead of `region`
323
- * only if you don't want to control the viewport of the map besides the initial region.
324
- *
325
- * Changing this prop after the component has mounted will not result in a region change.
326
- *
327
- * This is similar to the `initialValue` prop of a text input.
328
- *
329
- * @platform iOS: Supported
330
- * @platform Android: Supported
331
- */
332
- initialRegion?: Region;
333
- /**
334
- * The URL for KML file.
335
- *
336
- * @platform iOS: Google Maps only
337
- * @platform Android: Supported
338
- */
339
- kmlSrc?: string;
340
- /**
341
- * If set, changes the position of the "Legal" label link in Apple Maps.
342
- *
343
- * @platform iOS: Apple Maps only
344
- * @platform Android: Not supported
345
- */
346
- legalLabelInsets?: EdgePadding;
347
- /**
348
- * Enables lite mode on Android
349
- *
350
- * @platform iOS: Not supported
351
- * @platform Android: Supported
352
- */
353
- liteMode?: boolean;
354
- /**
355
- * https://developers.google.com/maps/documentation/get-map-id
356
- * google cloud mapId to enable cloud styling and more
357
- */
358
- googleMapId?: string;
359
- /**
360
- * https://developers.google.com/maps/documentation/android-sdk/renderer
361
- * google maps renderer
362
- * @default `LATEST`
363
- * @platform iOS: Not supported
364
- * @platform Android: Supported
365
- */
366
- googleRenderer?: WithDefault<'LATEST' | 'LEGACY', 'LATEST'>;
367
- /**
368
- * Sets loading background color.
369
- *
370
- * @default `#FFFFFF`
371
- * @platform iOS: Supported
372
- * @platform Android: Supported
373
- */
374
- loadingBackgroundColor?: ColorValue;
375
- /**
376
- * If `true` a loading indicator will show while the map is loading.
377
- *
378
- * @default false
379
- * @platform iOS: Apple Maps only
380
- * @platform Android: Supported
381
- */
382
- loadingEnabled?: boolean;
383
- /**
384
- * Sets loading indicator color.
385
- *
386
- * @default `#606060`
387
- * @platform iOS: Apple Maps only
388
- * @platform Android: Supported
389
- */
390
- loadingIndicatorColor?: ColorValue;
391
- /**
392
- * Adds custom padding to each side of the map. Useful when map elements/markers are obscured.
393
- *
394
- * @platform iOS: Supported
395
- * @platform Android: Supported
396
- */
397
- mapPadding?: EdgePadding;
398
- /**
399
- * The map type to be displayed
400
- *
401
- * @default `standard`
402
- * @platform iOS: hybrid | mutedStandard | satellite | standard | terrain | hybridFlyover | satelliteFlyover
403
- * @platform Android: hybrid | none | satellite | standard | terrain
404
- */
405
- mapType?: WithDefault<'hybrid' | 'mutedStandard' | 'none' | 'satellite' | 'standard' | 'terrain' | 'satelliteFlyover' | 'hybridFlyover', 'standard'>;
406
- /**
407
- * TODO: Add documentation
408
- *
409
- * @platform iOS: Apple Maps only
410
- * @platform Android: Not supported
411
- */
412
- maxDelta?: Double;
413
- /**
414
- * Maximum zoom value for the map, must be between 0 and 20
415
- *
416
- * @default 20
417
- * @platform iOS: Supported
418
- * @platform Android: Supported
419
- * @deprecated on Apple Maps, use `cameraZoomRange` instead
420
- */
421
- maxZoom?: Float;
422
- /**
423
- * TODO: Add documentation
424
- *
425
- * @platform iOS: Apple Maps only
426
- * @platform Android: Not supported
427
- */
428
- minDelta?: Double;
429
- /**
430
- * Minimum zoom value for the map, must be between 0 and 20
431
- *
432
- * @default 0
433
- * @platform iOS: Supported
434
- * @platform Android: Supported
435
- * @deprecated on Apple Maps, use `cameraZoomRange` instead
436
- */
437
- minZoom?: Float;
438
- /**
439
- * If `false` the map won't move to the marker when pressed.
440
- *
441
- * @default true
442
- * @platform iOS: Not supported
443
- * @platform Android: Supported
444
- */
445
- moveOnMarkerPress?: WithDefault<boolean, true>;
446
- /**
447
- * Callback that is called when a callout is tapped by the user.
448
- *
449
- * @platform iOS: Apple Maps only
450
- * @platform Android: Supported
451
- */
452
- onCalloutPress?: CalloutPressEventHandler;
453
- /**
454
- * Callback that is called when user double taps on the map.
455
- *
456
- * @platform iOS: Apple Maps only
457
- * @platform Android: Supported
458
- */
459
- onDoublePress?: ClickEvent;
460
- /**
461
- * Callback that is called when an indoor building is focused/unfocused
462
- *
463
- * @platform iOS: Google Maps only
464
- * @platform Android: Supported
465
- */
466
- onIndoorBuildingFocused?: IndoorBuildingEventHandler;
467
- /**
468
- * Callback that is called when a level on indoor building is activated
469
- *
470
- * @platform iOS: Google Maps only
471
- * @platform Android: Supported
472
- */
473
- onIndoorLevelActivated?: IndoorLevelActivatedEventHandler;
474
- /**
475
- * Callback that is called once the kml is fully loaded.
476
- *
477
- * @platform iOS: Google Maps only
478
- * @platform Android: Supported
479
- */
480
- onKmlReady?: DirectEventHandler<null>;
481
- /**
482
- * Callback that is called when user makes a "long press" somewhere on the map.
483
- *
484
- * @platform iOS: Supported
485
- * @platform Android: Supported
486
- */
487
- onLongPress?: LongPressEventHandler;
488
- /**
489
- * Callback that is called when the map has finished rendering all tiles.
490
- *
491
- * @platform iOS: Google Maps only
492
- * @platform Android: Supported
493
- */
494
- onMapLoaded?: DirectEventHandler<null>;
495
- /**
496
- * Callback that is called once the map is ready.
497
- *
498
- * Event is optional, as the first onMapReady callback is intercepted
499
- * on Android, and the event is not passed on.
500
- *
501
- * @platform iOS: Supported
502
- * @platform Android: Supported
503
- */
504
- onMapReady?: DirectEventHandler<null>;
505
- /**
506
- * Callback that is called when a marker on the map becomes deselected.
507
- * This will be called when the callout for that marker is about to be hidden.
508
- *
509
- * @platform iOS: Supported
510
- * @platform Android: Supported
511
- */
512
- onMarkerDeselect?: MarkerDeselectEventHandler;
513
- /**
514
- * Callback called continuously as a marker is dragged
515
- *
516
- * @platform iOS: Apple Maps only
517
- * @platform Android: Supported
518
- */
519
- onMarkerDrag?: MarkerDragEventHandler;
520
- /**
521
- * Callback that is called when a drag on a marker finishes.
522
- * This is usually the point you will want to setState on the marker's coordinate again
523
- *
524
- * @platform iOS: Apple Maps only
525
- * @platform Android: Supported
526
- */
527
- onMarkerDragEnd?: MarkerDragStartEndEventHandler;
528
- /**
529
- * Callback that is called when the user initiates a drag on a marker (if it is draggable)
530
- *
531
- * @platform iOS: Apple Maps only
532
- * @platform Android: Supported
533
- */
534
- onMarkerDragStart?: MarkerDragStartEndEventHandler;
535
- /**
536
- * Callback that is called when a marker on the map is tapped by the user.
537
- *
538
- * @platform iOS: Supported
539
- * @platform Android: Supported
540
- */
541
- onMarkerPress?: MarkerPressEventHandler;
542
- /**
543
- * Callback that is called when a marker on the map becomes selected.
544
- * This will be called when the callout for that marker is about to be shown.
545
- *
546
- * @platform iOS: Supported.
547
- * @platform Android: Supported
548
- */
549
- onMarkerSelect?: MarkerSelectEventHandler;
550
- /**
551
- * Callback that is called when user presses and drags the map.
552
- * **NOTE**: for iOS `scrollEnabled` should be set to false to trigger the event
553
- *
554
- * @platform iOS: Supported
555
- * @platform Android: Supported
556
- */
557
- onPanDrag?: PanDragEventHandler;
558
- handlePanDrag?: boolean;
559
- /**
560
- * Callback that is called when user click on a POI.
561
- *
562
- * @platform iOS: Google Maps only
563
- * @platform Android: Supported
564
- */
565
- onPoiClick?: PoiClickEventHandler;
566
- /**
567
- * Callback that is called when user taps on the map.
568
- *
569
- * @platform iOS: Supported
570
- * @platform Android: Supported
571
- */
572
- onPress?: MapPressEventHandler;
573
- /**
574
- * Callback that is called once before the region changes, such as when the user starts moving the map.
575
- * `isGesture` property indicates if the move was from the user (true) or an animation (false).
576
- * **Note**: `isGesture` is supported by Google Maps only.
577
- *
578
- * @platform iOS: Supported
579
- * @platform Android: Supported
580
- */
581
- onRegionChangeStart?: DirectEventHandler<RegionChangeEvent>;
582
- /**
583
- * Callback that is called continuously when the region changes, such as when a user is dragging the map.
584
- * `isGesture` property indicates if the move was from the user (true) or an animation (false).
585
- * **Note**: `isGesture` is supported by Google Maps only.
586
- *
587
- * @platform iOS: Supported
588
- * @platform Android: Supported
589
- */
590
- onRegionChange?: DirectEventHandler<RegionChangeEvent>;
591
- /**
592
- * Callback that is called once when the region changes, such as when the user is done moving the map.
593
- * `isGesture` property indicates if the move was from the user (true) or an animation (false).
594
- * **Note**: `isGesture` is supported by Google Maps only.
595
- *
596
- * @platform iOS: Supported
597
- * @platform Android: Supported
598
- */
599
- onRegionChangeComplete?: DirectEventHandler<RegionChangeEvent>;
600
- /**
601
- * Callback that is called when the underlying map figures our users current location
602
- * (coordinate also includes isFromMockProvider value for Android API 18 and above).
603
- * Make sure **showsUserLocation** is set to *true*.
604
- *
605
- * @platform iOS: Supported
606
- * @platform Android: Supported
607
- */
608
- onUserLocationChange?: UserLocationChangeEventHandler;
609
- /**
610
- * Indicates how/when to affect padding with safe area insets
611
- *
612
- * @platform iOS: Google Maps only
613
- * @platform Android: Not supported
614
- */
615
- paddingAdjustmentBehavior?: WithDefault<'always' | 'automatic' | 'never', 'never'>;
616
- /**
617
- * If `false` the user won't be able to adjust the camera’s pitch angle.
618
- *
619
- * @default true
620
- * @platform iOS: Google Maps only
621
- * @platform Android: Supported
622
- */
623
- pitchEnabled?: WithDefault<boolean, true>;
624
- /**
625
- * The region to be displayed by the map.
626
- * The region is defined by the center coordinates and the span of coordinates to display.
627
- *
628
- * @platform iOS: Supported
629
- * @platform Android: Supported
630
- */
631
- region?: Region;
632
- /**
633
- * If `false` the user won't be able to adjust the camera’s pitch angle.
634
- *
635
- * @default true
636
- * @platform iOS: Google Maps only
637
- * @platform Android: Supported
638
- */
639
- rotateEnabled?: WithDefault<boolean, true>;
640
- /**
641
- * If `false` the map will stay centered while rotating or zooming.
642
- *
643
- * @default true
644
- * @platform iOS: Google Maps only
645
- * @platform Android: Supported
646
- */
647
- scrollDuringRotateOrZoomEnabled?: WithDefault<boolean, true>;
648
- /**
649
- * If `false` the user won't be able to change the map region being displayed.
650
- *
651
- * @default true
652
- * @platform iOS: Supported
653
- * @platform Android: Supported
654
- */
655
- scrollEnabled?: WithDefault<boolean, true>;
656
- /**
657
- * A Boolean indicating whether the map displays extruded building information.
658
- *
659
- * @default true
660
- * @platform iOS: Not supported
661
- * @platform Android: Supported
662
- */
663
- showsBuildings?: WithDefault<boolean, true>;
664
- /**
665
- * If `false` compass won't be displayed on the map.
666
- *
667
- * @default true
668
- * @platform iOS: Supported
669
- * @platform Android: Supported
670
- */
671
- showsCompass?: WithDefault<boolean, true>;
672
- /**
673
- * A Boolean indicating whether indoor level picker should be enabled.
674
- *
675
- * @default false
676
- * @platform iOS: Google Maps only
677
- * @platform Android: Supported
678
- */
679
- showsIndoorLevelPicker?: boolean;
680
- /**
681
- * A Boolean indicating whether indoor maps should be enabled.
682
- *
683
- * @default true
684
- * @platform iOS: Google Maps only
685
- * @platform Android: Supported
686
- */
687
- showsIndoors?: WithDefault<boolean, true>;
688
- /**
689
- * If `false` hide the button to move map to the current user's location.
690
- *
691
- * @default true
692
- * @platform iOS: Google Maps only
693
- * @platform Android: Supported
694
- */
695
- showsMyLocationButton?: WithDefault<boolean, true>;
696
- /**
697
- * A Boolean indicating whether the map shows scale information.
698
- *
699
- * @default false
700
- * @platform iOS: Apple Maps only
701
- * @platform Android: Not supported
702
- */
703
- showsScale?: boolean;
704
- /**
705
- * If `true` the users location will be displayed on the map.
706
- *
707
- * This will cause iOS to ask for location permissions.
708
- * For iOS see: [DOCS](https://github.com/react-native-maps/react-native-maps/blob/master/docs/installation.md#set-the-usage-description-property)
709
- * @default false
710
- * @platform iOS: Supported
711
- * @platform Android: Supported
712
- */
713
- showsUserLocation?: boolean;
714
- /**
715
- * Sets the tint color of the map. (Changes the color of the position indicator)
716
- *
717
- * @default System Blue
718
- * @platform iOS: Apple Maps only
719
- * @platform Android: Not supported
720
- */
721
- tintColor?: ColorValue;
722
- /**
723
- * If `false` will hide 'Navigate' and 'Open in Maps' buttons on marker press
724
- *
725
- * @default true
726
- * @platform iOS: Not supported
727
- * @platform Android: Supported
728
- */
729
- toolbarEnabled?: WithDefault<boolean, true>;
730
- /**
731
- * Sets the map to the style selected.
732
- *
733
- * @default System setting
734
- * @platform iOS: Supported
735
- * @platform Android: Supported
736
- */
737
- userInterfaceStyle?: WithDefault<'system' | 'light' | 'dark', 'system'>;
738
- /**
739
- * The title of the annotation for current user location.
740
- *
741
- * This only works if `showsUserLocation` is true.
742
- *
743
- * @default `My Location`
744
- * @platform iOS: Apple Maps only
745
- * @platform Android: Not supported
746
- */
747
- userLocationAnnotationTitle?: string;
748
- /**
749
- * If `true` clicking user location will show the default callout for userLocation annotation.
750
- *
751
- * @default false
752
- * @platform iOS: Apple Maps only
753
- * @platform Android: Not supported
754
- */
755
- userLocationCalloutEnabled?: boolean;
756
- /**
757
- * Fastest interval the application will actively acquire locations.
758
- *
759
- * See [Google APIs documentation](https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest.html)
760
- *
761
- * @default 5000
762
- * @platform iOS: Not supported
763
- * @platform Android: Supported
764
- */
765
- userLocationFastestInterval?: WithDefault<Int32, 5000>;
766
- /**
767
- * Set power priority of user location tracking.
768
- *
769
- * See [Google APIs documentation](https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest.html)
770
- *
771
- * @default `high`
772
- * @platform iOS: Not supported
773
- * @platform Android: Supported
774
- */
775
- userLocationPriority?: WithDefault<'balanced' | 'high' | 'low' | 'passive', 'high'>;
776
- /**
777
- * Interval of user location updates in milliseconds.
778
- *
779
- * See [Google APIs documentation](https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest.html)
780
- *
781
- * @default 5000
782
- * @platform iOS: Not supported
783
- * @platform Android: Supported
784
- */
785
- userLocationUpdateInterval?: WithDefault<Int32, 5000>;
786
- /**
787
- * If `false` the zoom control at the bottom right of the map won't be visible.
788
- *
789
- * @default true
790
- * @platform iOS: Not supported
791
- * @platform Android: Supported
792
- */
793
- zoomControlEnabled?: WithDefault<boolean, true>;
794
- /**
795
- * If `false` the user won't be able to pinch/zoom the map.
796
- *
797
- * TODO: Why is the Android reactprop defaultvalue set to false?
798
- *
799
- * @default true
800
- * @platform iOS: Supported
801
- * @platform Android: Supported
802
- */
803
- zoomEnabled?: WithDefault<boolean, true>;
804
- /**
805
- * A Boolean value indicating whether the map displays traffic information.
806
- *
807
- * @default false
808
- * @platform iOS: Google Maps only
809
- * @platform Android: Supported
810
- */
811
- showsTraffic?: boolean;
812
- /**
813
- * If `false` the user won't be able to double tap to zoom the map.
814
- * **Note:** But it will greatly decrease delay of tap gesture recognition.
815
- *
816
- * @default true
817
- * @platform iOS: Google Maps only
818
- * @platform Android: Not supported
819
- */
820
- zoomTapEnabled?: WithDefault<boolean, true>;
821
- /**
822
- * Map camera distance limits. `minCenterCoordinateDistance` for minimum distance, `maxCenterCoordinateDistance` for maximum.
823
- * `animated` for animated zoom changes.
824
- * Takes precedence if conflicting with `minZoomLevel`, `maxZoomLevel`.
825
- *
826
- * @platform iOS: 13.0+
827
- * @platform Android: Not supported
828
- */
829
- cameraZoomRange?: CameraZoomRange;
830
- }
831
- export interface NativeCommands {
832
- animateToRegion: (viewRef: React.ElementRef<React.ComponentType>, regionJSON: string, duration: Int32) => void;
833
- setCamera: (viewRef: React.ElementRef<React.ComponentType>, cameraJSON: string) => void;
834
- animateCamera: (viewRef: React.ElementRef<React.ComponentType>, cameraJSON: string, duration: Int32) => void;
835
- fitToElements: (viewRef: React.ElementRef<React.ComponentType>, edgePaddingJSON: string, animated: boolean) => void;
836
- fitToSuppliedMarkers: (viewRef: React.ElementRef<React.ComponentType>, markersJSON: string, edgePaddingJSON: string, animated: boolean) => void;
837
- fitToCoordinates: (viewRef: React.ElementRef<React.ComponentType>, coordinatesJSON: string, edgePaddingJSON: string, animated: boolean) => void;
838
- setIndoorActiveLevelIndex: (viewRef: React.ElementRef<React.ComponentType>, activeLevelIndex: Int32) => void;
839
- }
840
- export declare const Commands: NativeCommands;
841
- declare const _default: HostComponent<MapFabricNativeProps>;
842
- export default _default;