@lugg/maps 0.2.0-alpha.9 → 1.0.0-beta.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.
Files changed (184) hide show
  1. package/README.md +21 -20
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/luggmaps/LuggCalloutView.kt +74 -0
  4. package/android/src/main/java/com/luggmaps/LuggCalloutViewManager.kt +38 -0
  5. package/android/src/main/java/com/luggmaps/LuggMapView.kt +290 -0
  6. package/android/src/main/java/com/luggmaps/{LuggGoogleMapViewManager.kt → LuggMapViewManager.kt} +99 -36
  7. package/android/src/main/java/com/luggmaps/LuggMapWrapperView.kt +11 -14
  8. package/android/src/main/java/com/luggmaps/LuggMarkerView.kt +187 -21
  9. package/android/src/main/java/com/luggmaps/LuggMarkerViewManager.kt +28 -0
  10. package/android/src/main/java/com/luggmaps/LuggPackage.kt +8 -4
  11. package/android/src/main/java/com/luggmaps/LuggPolygonView.kt +85 -0
  12. package/android/src/main/java/com/luggmaps/LuggPolygonViewManager.kt +100 -0
  13. package/android/src/main/java/com/luggmaps/LuggPolylineView.kt +16 -0
  14. package/android/src/main/java/com/luggmaps/LuggPolylineViewManager.kt +22 -0
  15. package/android/src/main/java/com/luggmaps/core/GoogleMapProvider.kt +874 -0
  16. package/android/src/main/java/com/luggmaps/core/MapProviderDelegate.kt +60 -0
  17. package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +89 -24
  18. package/android/src/main/java/com/luggmaps/events/LongPressEvent.kt +29 -0
  19. package/android/src/main/java/com/luggmaps/events/MarkerDragEvent.kt +41 -0
  20. package/android/src/main/java/com/luggmaps/events/MarkerPressEvent.kt +34 -0
  21. package/android/src/main/java/com/luggmaps/events/PolygonPressEvent.kt +12 -0
  22. package/android/src/main/java/com/luggmaps/events/PressEvent.kt +29 -0
  23. package/ios/LuggCalloutView.h +23 -0
  24. package/ios/LuggCalloutView.mm +145 -0
  25. package/ios/LuggMapView.h +9 -0
  26. package/ios/LuggMapView.mm +343 -0
  27. package/ios/LuggMarkerView.h +15 -0
  28. package/ios/LuggMarkerView.mm +136 -2
  29. package/ios/LuggPolygonView.h +31 -0
  30. package/ios/LuggPolygonView.mm +151 -0
  31. package/ios/LuggPolylineView.h +4 -0
  32. package/ios/LuggPolylineView.mm +23 -0
  33. package/ios/core/AppleMapProvider.h +15 -0
  34. package/ios/core/AppleMapProvider.mm +1173 -0
  35. package/ios/core/GMSPolylineAnimator.h +3 -0
  36. package/ios/core/GMSPolylineAnimator.m +101 -15
  37. package/ios/core/GoogleMapProvider.h +13 -0
  38. package/ios/core/GoogleMapProvider.mm +798 -0
  39. package/ios/core/LuggAnnotationView.h +12 -0
  40. package/ios/core/LuggAnnotationView.mm +55 -0
  41. package/ios/core/MKPolylineAnimator.h +4 -0
  42. package/ios/core/MKPolylineAnimator.m +167 -42
  43. package/ios/core/MapProviderDelegate.h +84 -0
  44. package/ios/core/PolylineAnimatorBase.h +24 -1
  45. package/ios/core/PolylineAnimatorBase.m +82 -19
  46. package/ios/events/LongPressEvent.h +29 -0
  47. package/ios/events/MarkerDragEvent.h +69 -0
  48. package/ios/events/MarkerPressEvent.h +29 -0
  49. package/ios/events/PolygonPressEvent.h +20 -0
  50. package/ios/events/PressEvent.h +29 -0
  51. package/ios/extensions/MKMapView+Zoom.h +2 -0
  52. package/ios/extensions/MKMapView+Zoom.m +14 -4
  53. package/lib/module/MapProvider.js +2 -4
  54. package/lib/module/MapProvider.js.map +1 -1
  55. package/lib/module/MapProvider.web.js +14 -7
  56. package/lib/module/MapProvider.web.js.map +1 -1
  57. package/lib/module/MapView.js +33 -16
  58. package/lib/module/MapView.js.map +1 -1
  59. package/lib/module/MapView.web.js +296 -181
  60. package/lib/module/MapView.web.js.map +1 -1
  61. package/lib/module/components/GeoJson.js +159 -0
  62. package/lib/module/components/GeoJson.js.map +1 -0
  63. package/lib/module/components/GeoJson.types.js +4 -0
  64. package/lib/module/components/GeoJson.types.js.map +1 -0
  65. package/lib/module/components/Marker.js +49 -8
  66. package/lib/module/components/Marker.js.map +1 -1
  67. package/lib/module/components/Marker.types.js +4 -0
  68. package/lib/module/components/Marker.types.js.map +1 -0
  69. package/lib/module/components/Marker.web.js +159 -24
  70. package/lib/module/components/Marker.web.js.map +1 -1
  71. package/lib/module/components/Polygon.js +46 -0
  72. package/lib/module/components/Polygon.js.map +1 -0
  73. package/lib/module/components/Polygon.types.js +4 -0
  74. package/lib/module/components/Polygon.types.js.map +1 -0
  75. package/lib/module/components/Polygon.web.js +87 -0
  76. package/lib/module/components/Polygon.web.js.map +1 -0
  77. package/lib/module/components/Polyline.js +17 -4
  78. package/lib/module/components/Polyline.js.map +1 -1
  79. package/lib/module/components/Polyline.types.js +4 -0
  80. package/lib/module/components/Polyline.types.js.map +1 -0
  81. package/lib/module/components/Polyline.web.js +108 -31
  82. package/lib/module/components/Polyline.web.js.map +1 -1
  83. package/lib/module/components/index.js +4 -2
  84. package/lib/module/components/index.js.map +1 -1
  85. package/lib/module/components/index.web.js +2 -0
  86. package/lib/module/components/index.web.js.map +1 -1
  87. package/lib/module/fabric/LuggCalloutViewNativeComponent.ts +20 -0
  88. package/lib/module/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +43 -7
  89. package/lib/module/fabric/LuggMarkerViewNativeComponent.ts +49 -1
  90. package/lib/module/fabric/LuggPolygonViewNativeComponent.ts +25 -0
  91. package/lib/module/fabric/LuggPolylineViewNativeComponent.ts +8 -0
  92. package/lib/module/index.js +4 -1
  93. package/lib/module/index.js.map +1 -1
  94. package/lib/module/index.web.js +4 -1
  95. package/lib/module/index.web.js.map +1 -1
  96. package/lib/typescript/src/MapProvider.d.ts +1 -1
  97. package/lib/typescript/src/MapProvider.d.ts.map +1 -1
  98. package/lib/typescript/src/MapProvider.web.d.ts +23 -1
  99. package/lib/typescript/src/MapProvider.web.d.ts.map +1 -1
  100. package/lib/typescript/src/MapView.d.ts +4 -4
  101. package/lib/typescript/src/MapView.d.ts.map +1 -1
  102. package/lib/typescript/src/MapView.types.d.ts +35 -9
  103. package/lib/typescript/src/MapView.types.d.ts.map +1 -1
  104. package/lib/typescript/src/MapView.web.d.ts +2 -11
  105. package/lib/typescript/src/MapView.web.d.ts.map +1 -1
  106. package/lib/typescript/src/components/GeoJson.d.ts +4 -0
  107. package/lib/typescript/src/components/GeoJson.d.ts.map +1 -0
  108. package/lib/typescript/src/components/GeoJson.types.d.ts +89 -0
  109. package/lib/typescript/src/components/GeoJson.types.d.ts.map +1 -0
  110. package/lib/typescript/src/components/Marker.d.ts +6 -33
  111. package/lib/typescript/src/components/Marker.d.ts.map +1 -1
  112. package/lib/typescript/src/components/Marker.types.d.ts +100 -0
  113. package/lib/typescript/src/components/Marker.types.d.ts.map +1 -0
  114. package/lib/typescript/src/components/Marker.web.d.ts +2 -5
  115. package/lib/typescript/src/components/Marker.web.d.ts.map +1 -1
  116. package/lib/typescript/src/components/Polygon.d.ts +10 -0
  117. package/lib/typescript/src/components/Polygon.d.ts.map +1 -0
  118. package/lib/typescript/src/components/Polygon.types.d.ts +33 -0
  119. package/lib/typescript/src/components/Polygon.types.d.ts.map +1 -0
  120. package/lib/typescript/src/components/Polygon.web.d.ts +3 -0
  121. package/lib/typescript/src/components/Polygon.web.d.ts.map +1 -0
  122. package/lib/typescript/src/components/Polyline.d.ts +6 -21
  123. package/lib/typescript/src/components/Polyline.d.ts.map +1 -1
  124. package/lib/typescript/src/components/Polyline.types.d.ts +53 -0
  125. package/lib/typescript/src/components/Polyline.types.d.ts.map +1 -0
  126. package/lib/typescript/src/components/Polyline.web.d.ts +2 -5
  127. package/lib/typescript/src/components/Polyline.web.d.ts.map +1 -1
  128. package/lib/typescript/src/components/index.d.ts +8 -2
  129. package/lib/typescript/src/components/index.d.ts.map +1 -1
  130. package/lib/typescript/src/components/index.web.d.ts +6 -2
  131. package/lib/typescript/src/components/index.web.d.ts.map +1 -1
  132. package/lib/typescript/src/fabric/LuggCalloutViewNativeComponent.d.ts +13 -0
  133. package/lib/typescript/src/fabric/LuggCalloutViewNativeComponent.d.ts.map +1 -0
  134. package/lib/typescript/src/fabric/{LuggGoogleMapViewNativeComponent.d.ts → LuggMapViewNativeComponent.d.ts} +30 -4
  135. package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts.map +1 -0
  136. package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts +45 -1
  137. package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -1
  138. package/lib/typescript/src/fabric/LuggPolygonViewNativeComponent.d.ts +18 -0
  139. package/lib/typescript/src/fabric/LuggPolygonViewNativeComponent.d.ts.map +1 -0
  140. package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts +7 -0
  141. package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts.map +1 -1
  142. package/lib/typescript/src/index.d.ts +11 -3
  143. package/lib/typescript/src/index.d.ts.map +1 -1
  144. package/lib/typescript/src/index.web.d.ts +9 -1
  145. package/lib/typescript/src/index.web.d.ts.map +1 -1
  146. package/lib/typescript/src/types.d.ts +11 -0
  147. package/lib/typescript/src/types.d.ts.map +1 -1
  148. package/package.json +11 -9
  149. package/src/MapProvider.tsx +1 -3
  150. package/src/MapProvider.web.tsx +22 -3
  151. package/src/MapView.tsx +32 -26
  152. package/src/MapView.types.ts +43 -9
  153. package/src/MapView.web.tsx +368 -210
  154. package/src/components/GeoJson.tsx +221 -0
  155. package/src/components/GeoJson.types.ts +118 -0
  156. package/src/components/Marker.tsx +75 -38
  157. package/src/components/Marker.types.ts +102 -0
  158. package/src/components/Marker.web.tsx +197 -19
  159. package/src/components/Polygon.tsx +52 -0
  160. package/src/components/Polygon.types.ts +33 -0
  161. package/src/components/Polygon.web.tsx +104 -0
  162. package/src/components/Polyline.tsx +23 -22
  163. package/src/components/Polyline.types.ts +55 -0
  164. package/src/components/Polyline.web.tsx +151 -37
  165. package/src/components/index.ts +17 -2
  166. package/src/components/index.web.ts +6 -2
  167. package/src/fabric/LuggCalloutViewNativeComponent.ts +20 -0
  168. package/src/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +43 -7
  169. package/src/fabric/LuggMarkerViewNativeComponent.ts +49 -1
  170. package/src/fabric/LuggPolygonViewNativeComponent.ts +25 -0
  171. package/src/fabric/LuggPolylineViewNativeComponent.ts +8 -0
  172. package/src/index.ts +30 -1
  173. package/src/index.web.ts +16 -1
  174. package/src/types.ts +13 -0
  175. package/android/src/main/java/com/luggmaps/LuggGoogleMapView.kt +0 -511
  176. package/ios/LuggAppleMapView.h +0 -16
  177. package/ios/LuggAppleMapView.mm +0 -592
  178. package/ios/LuggGoogleMapView.h +0 -13
  179. package/ios/LuggGoogleMapView.mm +0 -455
  180. package/lib/module/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
  181. package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts +0 -54
  182. package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts.map +0 -1
  183. package/lib/typescript/src/fabric/LuggGoogleMapViewNativeComponent.d.ts.map +0 -1
  184. package/src/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
@@ -1 +1 @@
1
- {"version":3,"file":"MapProvider.web.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAgB,WAAW,CAAC,EAAE,MAAW,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAEtE"}
1
+ {"version":3,"file":"MapProvider.web.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,KAAK,oBAAoB,GAAG,MAAM,IAAI,CAAC;AAEvC,eAAO,MAAM,UAAU;SAChB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;gBACf,OAAO;gBACP,CAAC,UAAU,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;oBACzD,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI;mBAC/C,CAAC,MAAM,CAAC,EAAE,oBAAoB,KAAK,IAAI;EAOtD,CAAC;AAEH,eAAO,MAAM,aAAa;SAbnB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;gBACf,OAAO;gBACP,CAAC,UAAU,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;oBACzD,CAAC,QAAQ,EAAE,oBAAoB,KAAK,MAAM,IAAI;mBAC/C,CAAC,MAAM,CAAC,EAAE,oBAAoB,KAAK,IAAI;CASC,CAAC;AAE1D,eAAO,MAAM,WAAW,GAAI,sBAA2B,gBAAgB,4CAEtE,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions } from './MapView.types';
3
- import type { Coordinate } from './types';
2
+ import type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, SetEdgeInsetsOptions } from './MapView.types';
3
+ import type { Coordinate, EdgeInsets } from './types';
4
4
  export declare class MapView extends React.Component<MapViewProps> implements MapViewRef {
5
5
  static defaultProps: Partial<MapViewProps>;
6
6
  private nativeRef;
7
- private get nativeCommands();
8
- moveCamera(coordinate: Coordinate, options: MoveCameraOptions): void;
7
+ moveCamera(coordinate: Coordinate, options?: MoveCameraOptions): void;
9
8
  fitCoordinates(coordinates: Coordinate[], options?: FitCoordinatesOptions): void;
9
+ setEdgeInsets(edgeInsets: EdgeInsets, options?: SetEdgeInsetsOptions): void;
10
10
  render(): import("react/jsx-runtime").JSX.Element;
11
11
  }
12
12
  //# sourceMappingURL=MapView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,qBAAa,OACX,SAAQ,KAAK,CAAC,SAAS,CAAC,YAAY,CACpC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAOxC;IAEF,OAAO,CAAC,SAAS,CAA0B;IAE3C,OAAO,KAAK,cAAc,GAIzB;IAED,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB;IAc7D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAyBzE,MAAM;CAkDP"}
1
+ {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../src/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,OACX,SAAQ,KAAK,CAAC,SAAS,CAAC,YAAY,CACpC,YAAW,UAAU;IAErB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAQxC;IAEF,OAAO,CAAC,SAAS,CAA0B;IAE3C,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAc9D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAyBzE,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,oBAAoB;IASpE,MAAM;CAsDP"}
@@ -1,28 +1,33 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { NativeSyntheticEvent, ViewProps } from 'react-native';
3
- import type { MapProvider, Coordinate, EdgeInsets } from './types';
3
+ import type { MapProvider, Coordinate, EdgeInsets, MapTheme, PressEventPayload } from './types';
4
4
  /**
5
5
  * Options for moving the camera
6
- * @default duration -1
7
6
  */
8
7
  export interface MoveCameraOptions {
9
- zoom: number;
8
+ zoom?: number;
10
9
  duration?: number;
11
10
  }
12
11
  /**
13
12
  * Options for fitting coordinates in view
14
- * @default duration -1
15
13
  */
16
14
  export interface FitCoordinatesOptions {
17
15
  padding?: EdgeInsets;
18
16
  duration?: number;
19
17
  }
18
+ /**
19
+ * Options for setting edge insets
20
+ */
21
+ export interface SetEdgeInsetsOptions {
22
+ duration?: number;
23
+ }
20
24
  /**
21
25
  * MapView ref methods
22
26
  */
23
27
  export interface MapViewRef {
24
- moveCamera(coordinate: Coordinate, options: MoveCameraOptions): void;
28
+ moveCamera(coordinate: Coordinate, options?: MoveCameraOptions): void;
25
29
  fitCoordinates(coordinates: Coordinate[], options?: FitCoordinatesOptions): void;
30
+ setEdgeInsets(edgeInsets: EdgeInsets, options?: SetEdgeInsetsOptions): void;
26
31
  }
27
32
  /**
28
33
  * Camera event payload
@@ -32,6 +37,8 @@ export interface CameraEventPayload {
32
37
  zoom: number;
33
38
  gesture: boolean;
34
39
  }
40
+ export type MapCameraEvent = NativeSyntheticEvent<CameraEventPayload>;
41
+ export type MapPressEvent = NativeSyntheticEvent<PressEventPayload>;
35
42
  /**
36
43
  * MapView component props
37
44
  */
@@ -83,23 +90,42 @@ export interface MapViewProps extends ViewProps {
83
90
  */
84
91
  pitchEnabled?: boolean;
85
92
  /**
86
- * Map content padding
93
+ * Map content edge insets
87
94
  */
88
- padding?: EdgeInsets;
95
+ edgeInsets?: EdgeInsets;
89
96
  /**
90
97
  * Show current user location on the map.
91
98
  * Requires location permission to be granted, otherwise silently ignored.
92
99
  * @default false
93
100
  */
94
101
  userLocationEnabled?: boolean;
102
+ /**
103
+ * Show native my-location button when userLocationEnabled is true (Android only).
104
+ * @default false
105
+ * @platform android
106
+ */
107
+ userLocationButtonEnabled?: boolean;
108
+ /**
109
+ * Map color theme
110
+ * @default 'system'
111
+ */
112
+ theme?: MapTheme;
113
+ /**
114
+ * Called when the map is pressed
115
+ */
116
+ onPress?: (event: MapPressEvent) => void;
117
+ /**
118
+ * Called when the map is long pressed
119
+ */
120
+ onLongPress?: (event: MapPressEvent) => void;
95
121
  /**
96
122
  * Called when camera moves
97
123
  */
98
- onCameraMove?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
124
+ onCameraMove?: (event: MapCameraEvent) => void;
99
125
  /**
100
126
  * Called when camera stops moving
101
127
  */
102
- onCameraIdle?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
128
+ onCameraIdle?: (event: MapCameraEvent) => void;
103
129
  /**
104
130
  * Called when map is loaded and ready
105
131
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.types.d.ts","sourceRoot":"","sources":["../../../src/MapView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,CAA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esOptions } from './MapView.types';
3
- import type { Coordinate } from './types';
4
- export declare class MapView extends Component<MapViewProps> implements MapViewRef {
5
- static defaultProps: Partial<MapViewProps>;
6
- private mapInstance;
7
- private handleMapReady;
8
- moveCamera(coordinate: Coordinate, options: MoveCameraOptions): void;
9
- fitCoordinates(coordinates: Coordinate[], options?: FitCoordinatesOptions): void;
10
- render(): import("react/jsx-runtime").JSX.Element;
11
- }
1
+ import type { MapViewProps, MapViewRef } from './MapView.types';
2
+ export declare const MapView: import("react").ForwardRefExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>;
12
3
  //# sourceMappingURL=MapView.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAQV,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EAEtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmJ1C,qBAAa,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAE,YAAW,UAAU;IACxE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAQxC;IAEF,OAAO,CAAC,WAAW,CAAgC;IAEnD,OAAO,CAAC,cAAc,CAEpB;IAEF,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB;IAgB7D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IA0BzE,MAAM;CAoFP"}
1
+ {"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAoEzB,eAAO,MAAM,OAAO,qGAsXlB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { GeoJsonProps } from './GeoJson.types';
2
+ export type { GeoJsonProps } from './GeoJson.types';
3
+ export declare const GeoJson: (props: GeoJsonProps) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=GeoJson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeoJson.d.ts","sourceRoot":"","sources":["../../../../src/components/GeoJson.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAwLpD,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAmB1C,CAAC"}
@@ -0,0 +1,89 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { MarkerProps } from './Marker.types';
3
+ import type { PolygonProps } from './Polygon.types';
4
+ import type { PolylineProps } from './Polyline.types';
5
+ /**
6
+ * GeoJSON types per RFC 7946
7
+ * Note: GeoJSON positions use [longitude, latitude] order
8
+ */
9
+ export type Position = [longitude: number, latitude: number] | [longitude: number, latitude: number, altitude: number];
10
+ export interface Point {
11
+ type: 'Point';
12
+ coordinates: Position;
13
+ }
14
+ export interface MultiPoint {
15
+ type: 'MultiPoint';
16
+ coordinates: Position[];
17
+ }
18
+ export interface LineString {
19
+ type: 'LineString';
20
+ coordinates: Position[];
21
+ }
22
+ export interface MultiLineString {
23
+ type: 'MultiLineString';
24
+ coordinates: Position[][];
25
+ }
26
+ export interface Polygon {
27
+ type: 'Polygon';
28
+ coordinates: Position[][];
29
+ }
30
+ export interface MultiPolygon {
31
+ type: 'MultiPolygon';
32
+ coordinates: Position[][][];
33
+ }
34
+ export interface GeometryCollection {
35
+ type: 'GeometryCollection';
36
+ geometries: Geometry[];
37
+ }
38
+ export type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection;
39
+ export interface FeatureProperties {
40
+ 'title'?: string;
41
+ 'description'?: string;
42
+ 'fill'?: string;
43
+ 'fill-opacity'?: number;
44
+ 'stroke'?: string;
45
+ 'stroke-width'?: number;
46
+ 'stroke-opacity'?: number;
47
+ [key: string]: unknown;
48
+ }
49
+ export interface Feature<G extends Geometry = Geometry> {
50
+ type: 'Feature';
51
+ id?: string | number;
52
+ geometry: G;
53
+ properties: FeatureProperties | null;
54
+ }
55
+ export interface FeatureCollection<G extends Geometry = Geometry> {
56
+ type: 'FeatureCollection';
57
+ features: Feature<G>[];
58
+ }
59
+ export type GeoJSON = Geometry | Feature | FeatureCollection;
60
+ export interface GeoJsonProps {
61
+ /**
62
+ * GeoJSON data to render.
63
+ * Accepts a `FeatureCollection`, `Feature`, or bare `Geometry`.
64
+ */
65
+ geojson: GeoJSON;
66
+ /**
67
+ * Z-index for all rendered features.
68
+ */
69
+ zIndex?: number;
70
+ /**
71
+ * Custom render function for `Point`/`MultiPoint` features.
72
+ * @param props - Default `MarkerProps` derived from the geometry.
73
+ * @param feature - The source GeoJSON `Feature`.
74
+ */
75
+ renderMarker?: (props: MarkerProps, feature: Feature) => ReactElement | null;
76
+ /**
77
+ * Custom render function for `LineString`/`MultiLineString` features.
78
+ * @param props - Default `PolylineProps` derived from the geometry.
79
+ * @param feature - The source GeoJSON `Feature`.
80
+ */
81
+ renderPolyline?: (props: PolylineProps, feature: Feature) => ReactElement | null;
82
+ /**
83
+ * Custom render function for `Polygon`/`MultiPolygon` features.
84
+ * @param props - Default `PolygonProps` derived from the geometry.
85
+ * @param feature - The source GeoJSON `Feature`.
86
+ */
87
+ renderPolygon?: (props: PolygonProps, feature: Feature) => ReactElement | null;
88
+ }
89
+ //# sourceMappingURL=GeoJson.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeoJson.types.d.ts","sourceRoot":"","sources":["../../../../src/components/GeoJson.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,E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from 'react';
3
- import type { Coordinate, Point } from '../types';
4
- export interface MarkerProps {
5
- /**
6
- * Name used for debugging purposes
7
- */
8
- name?: string;
9
- /**
10
- * Marker position
11
- */
12
- coordinate: Coordinate;
13
- /**
14
- * Callout title
15
- */
16
- title?: string;
17
- /**
18
- * Callout description
19
- */
20
- description?: string;
21
- /**
22
- * Anchor point for custom marker views
23
- */
24
- anchor?: Point;
25
- /**
26
- * Z-index for marker ordering. Higher values render on top.
27
- */
28
- zIndex?: number;
29
- /**
30
- * Custom marker view
31
- */
32
- children?: ReactNode;
33
- }
34
- export declare class Marker extends React.Component<MarkerProps> {
2
+ import type { MarkerProps } from './Marker.types';
3
+ export type { CalloutOptions, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
4
+ export declare class Marker extends React.PureComponent<MarkerProps> {
5
+ private getStyle;
6
+ private _cachedZIndex;
7
+ private _cachedStyle;
35
8
  render(): import("react/jsx-runtime").JSX.Element;
36
9
  }
37
10
  //# sourceMappingURL=Marker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;IACtD,MAAM;CAiBP"}
1
+ {"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAI9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,qBAAa,MAAO,SAAQ,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC;IAC1D,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,MAAM;CA2DP"}
@@ -0,0 +1,100 @@
1
+ import type { ComponentType, ReactElement, ReactNode } from 'react';
2
+ import type { NativeSyntheticEvent } from 'react-native';
3
+ import type { Coordinate, Point, PressEventPayload } from '../types';
4
+ export type MarkerPressEvent = NativeSyntheticEvent<PressEventPayload>;
5
+ export type MarkerDragEvent = NativeSyntheticEvent<PressEventPayload>;
6
+ export interface CalloutOptions {
7
+ /**
8
+ * Whether to wrap the callout in the native platform bubble.
9
+ * Set to `false` to render custom content directly without the native callout chrome.
10
+ *
11
+ * @default true
12
+ */
13
+ bubbled?: boolean;
14
+ /**
15
+ * Anchor point for the callout relative to the marker position.
16
+ * `{x: 0.5, y: 1}` places the bottom-center of the callout at the marker.
17
+ *
18
+ * @note Not supported on web.
19
+ * @default {x: 0.5, y: 1}
20
+ */
21
+ anchor?: Point;
22
+ }
23
+ export interface MarkerProps {
24
+ /**
25
+ * Name used for debugging purposes
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Marker position
30
+ */
31
+ coordinate: Coordinate;
32
+ /**
33
+ * Callout title
34
+ */
35
+ title?: string;
36
+ /**
37
+ * Callout description
38
+ */
39
+ description?: string;
40
+ /**
41
+ * Anchor point for custom marker views
42
+ */
43
+ anchor?: Point;
44
+ /**
45
+ * Z-index for marker ordering. Higher values render on top.
46
+ */
47
+ zIndex?: number;
48
+ /**
49
+ * Rotation angle in degrees clockwise from north.
50
+ * @default 0
51
+ */
52
+ rotate?: number;
53
+ /**
54
+ * Scale factor for the marker.
55
+ * @default 1
56
+ */
57
+ scale?: number;
58
+ /**
59
+ * Rasterize custom marker view to bitmap for better performance.
60
+ * Set to false if you need live view updates (e.g., animations).
61
+ * @platform ios, android
62
+ * @default true
63
+ */
64
+ rasterize?: boolean;
65
+ /**
66
+ * Whether the marker can be dragged by the user.
67
+ * @default false
68
+ */
69
+ draggable?: boolean;
70
+ /**
71
+ * Called when the marker is pressed
72
+ */
73
+ onPress?: (event: MarkerPressEvent) => void;
74
+ /**
75
+ * Called when marker drag starts
76
+ */
77
+ onDragStart?: (event: MarkerDragEvent) => void;
78
+ /**
79
+ * Called continuously as the marker is dragged
80
+ */
81
+ onDragChange?: (event: MarkerDragEvent) => void;
82
+ /**
83
+ * Called when marker drag ends
84
+ */
85
+ onDragEnd?: (event: MarkerDragEvent) => void;
86
+ /**
87
+ * Callout content displayed when marker is tapped.
88
+ * Pass a `ReactElement` for inline content or a `ComponentType` to be instantiated.
89
+ */
90
+ callout?: ComponentType<unknown> | ReactElement;
91
+ /**
92
+ * Callout configuration options.
93
+ */
94
+ calloutOptions?: CalloutOptions;
95
+ /**
96
+ * Custom marker view
97
+ */
98
+ children?: ReactNode;
99
+ }
100
+ //# sourceMappingURL=Marker.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marker.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,E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IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
@@ -1,6 +1,3 @@
1
- import React from 'react';
2
- import type { MarkerProps } from './Marker';
3
- export declare class Marker extends React.Component<MarkerProps> {
4
- render(): import("react/jsx-runtime").JSX.Element;
5
- }
1
+ import type { MarkerProps } from './Marker.types';
2
+ export declare const Marker: ({ coordinate, title, description, anchor, zIndex, rotate, scale, draggable, onPress, onDragStart, onDragChange, onDragEnd, callout, calloutOptions, children, }: MarkerProps) => import("react/jsx-runtime").JSX.Element;
6
3
  //# sourceMappingURL=Marker.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Marker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ5C,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;IACtD,MAAM;CAoBP"}
1
+ {"version":3,"file":"Marker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.web.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA+ClD,eAAO,MAAM,MAAM,GAAI,iKAgBpB,WAAW,4CAqIb,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { PolygonProps } from './Polygon.types';
3
+ export type { PolygonProps } from './Polygon.types';
4
+ export declare class Polygon extends React.PureComponent<PolygonProps> {
5
+ private _cachedZIndex;
6
+ private _cachedStyle;
7
+ private getStyle;
8
+ render(): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ //# sourceMappingURL=Polygon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polygon.d.ts","sourceRoot":"","sources":["../../../../src/components/Polygon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,qBAAa,OAAQ,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;IAC5D,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,OAAO,CAAC,QAAQ;IAShB,MAAM;CAwBP"}
@@ -0,0 +1,33 @@
1
+ import type { ColorValue } from 'react-native';
2
+ import type { Coordinate } from '../types';
3
+ export interface PolygonProps {
4
+ /**
5
+ * Array of coordinates forming the polygon boundary
6
+ */
7
+ coordinates: Coordinate[];
8
+ /**
9
+ * Array of coordinate arrays representing interior holes
10
+ */
11
+ holes?: Coordinate[][];
12
+ /**
13
+ * Stroke (outline) color
14
+ */
15
+ strokeColor?: ColorValue;
16
+ /**
17
+ * Stroke width in points
18
+ */
19
+ strokeWidth?: number;
20
+ /**
21
+ * Fill color of the polygon
22
+ */
23
+ fillColor?: ColorValue;
24
+ /**
25
+ * Z-index for layering
26
+ */
27
+ zIndex?: number;
28
+ /**
29
+ * Called when the polygon is tapped
30
+ */
31
+ onPress?: () => void;
32
+ }
33
+ //# sourceMappingURL=Polygon.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polygon.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Polygon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ import type { PolygonProps } from './Polygon.types';
2
+ export declare const Polygon: ({ coordinates, holes, strokeColor, strokeWidth, fillColor, zIndex, onPress, }: PolygonProps) => null;
3
+ //# sourceMappingURL=Polygon.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polygon.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polygon.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,OAAO,GAAI,+EAQrB,YAAY,SA2Fd,CAAC"}
@@ -1,25 +1,10 @@
1
1
  import React from 'react';
2
- import type { ColorValue } from 'react-native';
3
- import type { Coordinate } from '../types';
4
- export interface PolylineProps {
5
- /**
6
- * Array of coordinates forming the polyline
7
- */
8
- coordinates: Coordinate[];
9
- /**
10
- * Gradient colors along the polyline
11
- */
12
- strokeColors?: ColorValue[];
13
- /**
14
- * Line width in points
15
- */
16
- strokeWidth?: number;
17
- /**
18
- * Animate the polyline with a snake effect
19
- */
20
- animated?: boolean;
21
- }
22
- export declare class Polyline extends React.Component<PolylineProps> {
2
+ import type { PolylineProps } from './Polyline.types';
3
+ export type { PolylineProps, PolylineEasing, PolylineAnimatedOptions, } from './Polyline.types';
4
+ export declare class Polyline extends React.PureComponent<PolylineProps> {
5
+ private getStyle;
6
+ private _cachedZIndex;
7
+ private _cachedStyle;
23
8
  render(): import("react/jsx-runtime").JSX.Element;
24
9
  }
25
10
  //# sourceMappingURL=Polyline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC1D,MAAM;CAkBP"}
1
+ {"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EACV,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAE1B,qBAAa,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IAC9D,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,YAAY,CAAM;IAE1B,MAAM;CAqBP"}
@@ -0,0 +1,53 @@
1
+ import type { ColorValue } from 'react-native';
2
+ import type { Coordinate } from '../types';
3
+ export type PolylineEasing = 'linear' | 'easeIn' | 'easeOut' | 'easeInOut';
4
+ export interface PolylineAnimatedOptions {
5
+ /**
6
+ * Animation duration in milliseconds
7
+ * @default 2150
8
+ */
9
+ duration?: number;
10
+ /**
11
+ * Easing function for the animation
12
+ * @default 'linear'
13
+ */
14
+ easing?: PolylineEasing;
15
+ /**
16
+ * Portion of the line visible as trail (0-1)
17
+ * 1.0 = full snake effect, 0.2 = short worm
18
+ * @default 1.0
19
+ */
20
+ trailLength?: number;
21
+ /**
22
+ * Delay before animation starts in milliseconds
23
+ * @default 0
24
+ */
25
+ delay?: number;
26
+ }
27
+ export interface PolylineProps {
28
+ /**
29
+ * Array of coordinates forming the polyline
30
+ */
31
+ coordinates: Coordinate[];
32
+ /**
33
+ * Gradient colors along the polyline
34
+ */
35
+ strokeColors?: ColorValue[];
36
+ /**
37
+ * Line width in points
38
+ */
39
+ strokeWidth?: number;
40
+ /**
41
+ * Animate the polyline with a snake effect
42
+ */
43
+ animated?: boolean;
44
+ /**
45
+ * Animation configuration options
46
+ */
47
+ animatedOptions?: PolylineAnimatedOptions;
48
+ /**
49
+ * Z-index for layering polylines
50
+ */
51
+ zIndex?: number;
52
+ }
53
+ //# sourceMappingURL=Polyline.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Polyline.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;AAE3E,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,6 +1,3 @@
1
- import { Component } from 'react';
2
- import type { PolylineProps } from './Polyline';
3
- export declare class Polyline extends Component<PolylineProps> {
4
- render(): import("react/jsx-runtime").JSX.Element;
5
- }
1
+ import type { PolylineProps } from './Polyline.types';
2
+ export declare const Polyline: ({ coordinates, strokeColors, strokeWidth, animated, animatedOptions, zIndex, }: PolylineProps) => null;
6
3
  //# sourceMappingURL=Polyline.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Polyline.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAgMhD,qBAAa,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IACpD,MAAM;CAGP"}
1
+ {"version":3,"file":"Polyline.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Polyline.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAmDtE,eAAO,MAAM,QAAQ,GAAI,gFAOtB,aAAa,SAmQf,CAAC"}
@@ -1,3 +1,9 @@
1
- export * from './Marker';
2
- export * from './Polyline';
1
+ export { Marker } from './Marker';
2
+ export type { CalloutOptions, MarkerProps, MarkerPressEvent, MarkerDragEvent, } from './Marker.types';
3
+ export { Polygon } from './Polygon';
4
+ export type { PolygonProps } from './Polygon.types';
5
+ export { Polyline } from './Polyline';
6
+ export type { PolylineProps, PolylineEasing, PolylineAnimatedOptions, } from './Polyline.types';
7
+ export { GeoJson } from './GeoJson';
8
+ export type { GeoJsonProps } from './GeoJson.types';
3
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,cAAc,EACd,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}