react-native-maps 1.26.11 → 1.26.12

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 (43) hide show
  1. package/dist/plugin/src/android.d.ts +4 -0
  2. package/dist/plugin/src/index.d.ts +4 -0
  3. package/dist/plugin/src/ios.d.ts +15 -0
  4. package/dist/plugin/src/types.d.ts +4 -0
  5. package/dist/src/AnimatedRegion.d.ts +19 -0
  6. package/dist/src/Geojson.d.ts +204 -0
  7. package/dist/src/MapCallout.d.ts +40 -0
  8. package/dist/src/MapCalloutSubview.d.ts +34 -0
  9. package/dist/src/MapCircle.d.ts +117 -0
  10. package/dist/src/MapHeatmap.d.ts +78 -0
  11. package/dist/src/MapLocalTile.d.ts +35 -0
  12. package/dist/src/MapMarker.d.ts +322 -0
  13. package/dist/src/MapMarkerNativeComponent.d.ts +14 -0
  14. package/dist/src/MapOverlay.d.ts +88 -0
  15. package/dist/src/MapPolygon.d.ts +140 -0
  16. package/dist/src/MapPolygon.types.d.ts +18 -0
  17. package/dist/src/MapPolyline.d.ts +156 -0
  18. package/dist/src/MapUrlTile.d.ts +134 -0
  19. package/dist/src/MapView.d.ts +723 -0
  20. package/dist/src/MapView.types.d.ts +160 -0
  21. package/dist/src/MapView.web.d.ts +1 -0
  22. package/dist/src/MapViewNativeComponent.d.ts +17 -0
  23. package/dist/src/MapWMSTile.d.ts +116 -0
  24. package/dist/src/ProviderConstants.d.ts +2 -0
  25. package/dist/src/createFabricMap.d.ts +25 -0
  26. package/dist/src/decorateMapComponent.d.ts +35 -0
  27. package/dist/src/fixImageProp.d.ts +4 -0
  28. package/dist/src/index.d.ts +38 -0
  29. package/dist/src/sharedTypes.d.ts +87 -0
  30. package/dist/src/sharedTypesInternal.d.ts +1 -0
  31. package/dist/src/specs/NativeAirMapsModule.d.ts +31 -0
  32. package/dist/src/specs/NativeComponentCallout.d.ts +46 -0
  33. package/dist/src/specs/NativeComponentCircle.d.ts +74 -0
  34. package/dist/src/specs/NativeComponentGoogleMapView.d.ts +709 -0
  35. package/dist/src/specs/NativeComponentGooglePolygon.d.ts +83 -0
  36. package/dist/src/specs/NativeComponentMapView.d.ts +897 -0
  37. package/dist/src/specs/NativeComponentMarker.d.ts +278 -0
  38. package/dist/src/specs/NativeComponentOverlay.d.ts +76 -0
  39. package/dist/src/specs/NativeComponentPolyline.d.ts +101 -0
  40. package/dist/src/specs/NativeComponentUrlTile.d.ts +109 -0
  41. package/dist/src/specs/NativeComponentWMSTile.d.ts +91 -0
  42. package/dist/tsconfig.build.tsbuildinfo +1 -0
  43. package/package.json +4 -1
@@ -0,0 +1,83 @@
1
+ import type { HostComponent, ViewProps, ColorValue } from 'react-native';
2
+ import type { Double, BubblingEventHandler, Float, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ export type LatLng = Readonly<{
4
+ latitude: Double;
5
+ longitude: Double;
6
+ }>;
7
+ export type PolygonPressEventHandler = BubblingEventHandler<Readonly<{
8
+ action?: string;
9
+ id: string;
10
+ coordinate: {
11
+ latitude: Double;
12
+ longitude: Double;
13
+ };
14
+ position?: {
15
+ x: Double;
16
+ y: Double;
17
+ };
18
+ }>>;
19
+ export interface PolygonFabricNativeProps extends ViewProps {
20
+ /**
21
+ * An array of coordinates to describe the polygon
22
+ *
23
+ * @platform iOS: Supported
24
+ * @platform Android: Supported
25
+ */
26
+ coordinates: ReadonlyArray<LatLng>;
27
+ /**
28
+ * The fill color to use for the path.
29
+ *
30
+ * @default `#000`, `rgba(r,g,b,0.5)`
31
+ * @platform iOS: Supported
32
+ * @platform Android: Supported
33
+ */
34
+ fillColor?: ColorValue;
35
+ /**
36
+ * The stroke color to use for the path.
37
+ *
38
+ * @default `#000`, `rgba(r,g,b,0.5)`
39
+ * @platform iOS: Supported
40
+ * @platform Android: Supported
41
+ */
42
+ strokeColor?: ColorValue;
43
+ /**
44
+ * The stroke width to use for the path.
45
+ *
46
+ * @default 1
47
+ * @platform iOS: Supported
48
+ * @platform Android: Supported
49
+ */
50
+ strokeWidth?: WithDefault<Float, 1.0>;
51
+ /**
52
+ * Boolean to indicate whether to draw each segment of the line as a geodesic as opposed to straight lines on the Mercator projection.
53
+ * A geodesic is the shortest path between two points on the Earth's surface.
54
+ * The geodesic curve is constructed assuming the Earth is a sphere.
55
+ *
56
+ * @platform iOS: Google Maps only
57
+ * @platform Android: Supported
58
+ */
59
+ geodesic?: boolean;
60
+ /**
61
+ * A 2d array of coordinates to describe holes of the polygon where each hole has at least 3 points.
62
+ *
63
+ * @platform iOS: Supported
64
+ * @platform Android: Supported
65
+ */
66
+ holes?: ReadonlyArray<ReadonlyArray<LatLng>>;
67
+ /**
68
+ * Boolean to allow a polygon to be tappable and use the onPress function.
69
+ *
70
+ * @platform iOS: Google Maps only
71
+ * @platform Android: Supported
72
+ */
73
+ tappable?: boolean;
74
+ /**
75
+ * Callback that is called when user taps on the map.
76
+ *
77
+ * @platform iOS: Supported
78
+ * @platform Android: Supported
79
+ */
80
+ onPress?: PolygonPressEventHandler;
81
+ }
82
+ declare const _default: HostComponent<PolygonFabricNativeProps>;
83
+ export default _default;