@lugg/maps 0.2.0-alpha.0 → 0.2.0-alpha.10

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 (152) hide show
  1. package/README.md +17 -4
  2. package/android/src/main/java/com/luggmaps/{LuggMapsGoogleMapView.kt → LuggGoogleMapView.kt} +111 -36
  3. package/android/src/main/java/com/luggmaps/{LuggMapsGoogleMapViewManager.kt → LuggGoogleMapViewManager.kt} +66 -39
  4. package/android/src/main/java/com/luggmaps/{LuggMapsWrapperView.kt → LuggMapWrapperView.kt} +1 -1
  5. package/android/src/main/java/com/luggmaps/LuggMapWrapperViewManager.kt +25 -0
  6. package/android/src/main/java/com/luggmaps/{LuggMapsMarkerView.kt → LuggMarkerView.kt} +13 -7
  7. package/android/src/main/java/com/luggmaps/{LuggMapsMarkerViewManager.kt → LuggMarkerViewManager.kt} +23 -17
  8. package/android/src/main/java/com/luggmaps/{LuggMapsPackage.kt → LuggPackage.kt} +2 -2
  9. package/android/src/main/java/com/luggmaps/{LuggMapsPolylineView.kt → LuggPolylineView.kt} +11 -4
  10. package/android/src/main/java/com/luggmaps/{LuggMapsPolylineViewManager.kt → LuggPolylineViewManager.kt} +22 -16
  11. package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +89 -43
  12. package/android/src/main/java/com/luggmaps/events/CameraIdleEvent.kt +10 -2
  13. package/android/src/main/java/com/luggmaps/events/CameraMoveEvent.kt +6 -5
  14. package/android/src/main/java/com/luggmaps/events/ReadyEvent.kt +12 -0
  15. package/android/src/main/java/com/luggmaps/extensions/ViewExtensions.kt +14 -0
  16. package/ios/{LuggMapsAppleMapView.h → LuggAppleMapView.h} +2 -2
  17. package/ios/{LuggMapsAppleMapView.mm → LuggAppleMapView.mm} +140 -71
  18. package/ios/{LuggMapsGoogleMapView.h → LuggGoogleMapView.h} +1 -1
  19. package/ios/{LuggMapsGoogleMapView.mm → LuggGoogleMapView.mm} +82 -64
  20. package/ios/{LuggMapsWrapperView.h → LuggMapWrapperView.h} +1 -1
  21. package/ios/{LuggMapsWrapperView.mm → LuggMapWrapperView.mm} +7 -7
  22. package/ios/{LuggMapsMarkerView.h → LuggMarkerView.h} +8 -6
  23. package/ios/{LuggMapsMarkerView.mm → LuggMarkerView.mm} +21 -8
  24. package/ios/{LuggMapsPolylineView.h → LuggPolylineView.h} +6 -5
  25. package/ios/{LuggMapsPolylineView.mm → LuggPolylineView.mm} +14 -9
  26. package/ios/core/GMSPolylineAnimator.m +85 -36
  27. package/ios/core/MKPolylineAnimator.m +63 -32
  28. package/ios/events/CameraIdleEvent.h +6 -1
  29. package/ios/events/CameraMoveEvent.h +6 -3
  30. package/ios/events/ReadyEvent.h +20 -0
  31. package/lib/module/MapProvider.js +13 -0
  32. package/lib/module/MapProvider.js.map +1 -0
  33. package/lib/module/MapProvider.types.js +4 -0
  34. package/lib/module/MapProvider.types.js.map +1 -0
  35. package/lib/module/MapProvider.web.js +14 -0
  36. package/lib/module/MapProvider.web.js.map +1 -0
  37. package/lib/module/MapView.js +21 -7
  38. package/lib/module/MapView.js.map +1 -1
  39. package/lib/module/MapView.web.js +266 -0
  40. package/lib/module/MapView.web.js.map +1 -0
  41. package/lib/module/{Marker.js → components/Marker.js} +6 -3
  42. package/lib/module/components/Marker.js.map +1 -0
  43. package/lib/module/components/Marker.web.js +34 -0
  44. package/lib/module/components/Marker.web.js.map +1 -0
  45. package/lib/module/{Polyline.js → components/Polyline.js} +7 -4
  46. package/lib/module/components/Polyline.js.map +1 -0
  47. package/lib/module/components/Polyline.web.js +177 -0
  48. package/lib/module/components/Polyline.web.js.map +1 -0
  49. package/lib/module/components/index.js +5 -0
  50. package/lib/module/components/index.js.map +1 -0
  51. package/lib/module/components/index.web.js +5 -0
  52. package/lib/module/components/index.web.js.map +1 -0
  53. package/{src/fabric/LuggMapsAppleMapViewNativeComponent.ts → lib/module/fabric/LuggAppleMapViewNativeComponent.ts} +13 -3
  54. package/lib/module/fabric/{LuggMapsGoogleMapViewNativeComponent.ts → LuggGoogleMapViewNativeComponent.ts} +13 -3
  55. package/{src/fabric/LuggMapsWrapperViewNativeComponent.ts → lib/module/fabric/LuggMapWrapperViewNativeComponent.ts} +1 -1
  56. package/lib/module/fabric/{LuggMapsMarkerViewNativeComponent.ts → LuggMarkerViewNativeComponent.ts} +1 -1
  57. package/{src/fabric/LuggMapsPolylineViewNativeComponent.ts → lib/module/fabric/LuggPolylineViewNativeComponent.ts} +1 -1
  58. package/lib/module/index.js +3 -3
  59. package/lib/module/index.js.map +1 -1
  60. package/lib/module/index.web.js +6 -0
  61. package/lib/module/index.web.js.map +1 -0
  62. package/lib/typescript/plugin/src/withLuggMapsAndroid.d.ts +6 -0
  63. package/lib/typescript/plugin/src/withLuggMapsAndroid.d.ts.map +1 -0
  64. package/lib/typescript/plugin/src/withLuggMapsIOS.d.ts +6 -0
  65. package/lib/typescript/plugin/src/withLuggMapsIOS.d.ts.map +1 -0
  66. package/lib/typescript/src/MapProvider.d.ts +8 -0
  67. package/lib/typescript/src/MapProvider.d.ts.map +1 -0
  68. package/lib/typescript/src/MapProvider.types.d.ts +16 -0
  69. package/lib/typescript/src/MapProvider.types.d.ts.map +1 -0
  70. package/lib/typescript/src/MapProvider.web.d.ts +3 -0
  71. package/lib/typescript/src/MapProvider.web.d.ts.map +1 -0
  72. package/lib/typescript/src/MapView.d.ts.map +1 -1
  73. package/lib/typescript/src/MapView.types.d.ts +24 -14
  74. package/lib/typescript/src/MapView.types.d.ts.map +1 -1
  75. package/lib/typescript/src/MapView.web.d.ts +12 -0
  76. package/lib/typescript/src/MapView.web.d.ts.map +1 -0
  77. package/lib/typescript/src/{Marker.types.d.ts → components/Marker.d.ts} +10 -5
  78. package/lib/typescript/src/components/Marker.d.ts.map +1 -0
  79. package/lib/typescript/src/{Marker.d.ts → components/Marker.web.d.ts} +2 -2
  80. package/lib/typescript/src/components/Marker.web.d.ts.map +1 -0
  81. package/lib/typescript/src/{Polyline.types.d.ts → components/Polyline.d.ts} +10 -5
  82. package/lib/typescript/src/components/Polyline.d.ts.map +1 -0
  83. package/lib/typescript/src/components/Polyline.web.d.ts +6 -0
  84. package/lib/typescript/src/components/Polyline.web.d.ts.map +1 -0
  85. package/lib/typescript/src/components/index.d.ts +3 -0
  86. package/lib/typescript/src/components/index.d.ts.map +1 -0
  87. package/lib/typescript/src/components/index.web.d.ts +5 -0
  88. package/lib/typescript/src/components/index.web.d.ts.map +1 -0
  89. package/lib/typescript/src/fabric/{LuggMapsAppleMapViewNativeComponent.d.ts → LuggAppleMapViewNativeComponent.d.ts} +10 -3
  90. package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts.map +1 -0
  91. package/lib/typescript/src/fabric/{LuggMapsGoogleMapViewNativeComponent.d.ts → LuggGoogleMapViewNativeComponent.d.ts} +10 -3
  92. package/lib/typescript/src/fabric/LuggGoogleMapViewNativeComponent.d.ts.map +1 -0
  93. package/lib/typescript/src/fabric/{LuggMapsWrapperViewNativeComponent.d.ts → LuggMapWrapperViewNativeComponent.d.ts} +1 -1
  94. package/lib/typescript/src/fabric/LuggMapWrapperViewNativeComponent.d.ts.map +1 -0
  95. package/lib/typescript/src/fabric/{LuggMapsMarkerViewNativeComponent.d.ts → LuggMarkerViewNativeComponent.d.ts} +1 -1
  96. package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -0
  97. package/lib/typescript/src/fabric/{LuggMapsPolylineViewNativeComponent.d.ts → LuggPolylineViewNativeComponent.d.ts} +1 -1
  98. package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts.map +1 -0
  99. package/lib/typescript/src/index.d.ts +5 -6
  100. package/lib/typescript/src/index.d.ts.map +1 -1
  101. package/lib/typescript/src/index.web.d.ts +7 -0
  102. package/lib/typescript/src/index.web.d.ts.map +1 -0
  103. package/package.json +20 -7
  104. package/plugin/build/index.js +4 -4
  105. package/{lib/typescript/plugin/src/withMapsAndroid.d.ts → plugin/build/withLuggMapsAndroid.d.ts} +0 -1
  106. package/plugin/build/withLuggMapsAndroid.js +15 -0
  107. package/{lib/typescript/plugin/src/withMapsIOS.d.ts → plugin/build/withLuggMapsIOS.d.ts} +0 -1
  108. package/plugin/build/withLuggMapsIOS.js +27 -0
  109. package/plugin/build/withMapsAndroid.d.ts +1 -1
  110. package/plugin/build/withMapsIOS.d.ts +1 -1
  111. package/src/MapProvider.tsx +10 -0
  112. package/src/MapProvider.types.ts +16 -0
  113. package/src/MapProvider.web.tsx +6 -0
  114. package/src/MapView.tsx +27 -10
  115. package/src/MapView.types.ts +24 -15
  116. package/src/MapView.web.tsx +319 -0
  117. package/src/components/Marker.tsx +63 -0
  118. package/src/components/Marker.web.tsx +32 -0
  119. package/src/components/Polyline.tsx +57 -0
  120. package/src/components/Polyline.web.tsx +222 -0
  121. package/src/components/index.ts +2 -0
  122. package/src/components/index.web.ts +4 -0
  123. package/{lib/module/fabric/LuggMapsAppleMapViewNativeComponent.ts → src/fabric/LuggAppleMapViewNativeComponent.ts} +13 -3
  124. package/src/fabric/{LuggMapsGoogleMapViewNativeComponent.ts → LuggGoogleMapViewNativeComponent.ts} +13 -3
  125. package/{lib/module/fabric/LuggMapsWrapperViewNativeComponent.ts → src/fabric/LuggMapWrapperViewNativeComponent.ts} +1 -1
  126. package/src/fabric/{LuggMapsMarkerViewNativeComponent.ts → LuggMarkerViewNativeComponent.ts} +1 -1
  127. package/{lib/module/fabric/LuggMapsPolylineViewNativeComponent.ts → src/fabric/LuggPolylineViewNativeComponent.ts} +1 -1
  128. package/src/index.ts +11 -7
  129. package/src/index.web.ts +17 -0
  130. package/android/src/main/java/com/luggmaps/LuggMapsWrapperViewManager.kt +0 -25
  131. package/lib/module/Marker.js.map +0 -1
  132. package/lib/module/Marker.types.js +0 -4
  133. package/lib/module/Marker.types.js.map +0 -1
  134. package/lib/module/Polyline.js.map +0 -1
  135. package/lib/module/Polyline.types.js +0 -4
  136. package/lib/module/Polyline.types.js.map +0 -1
  137. package/lib/typescript/plugin/src/withMapsAndroid.d.ts.map +0 -1
  138. package/lib/typescript/plugin/src/withMapsIOS.d.ts.map +0 -1
  139. package/lib/typescript/src/Marker.d.ts.map +0 -1
  140. package/lib/typescript/src/Marker.types.d.ts.map +0 -1
  141. package/lib/typescript/src/Polyline.d.ts +0 -6
  142. package/lib/typescript/src/Polyline.d.ts.map +0 -1
  143. package/lib/typescript/src/Polyline.types.d.ts.map +0 -1
  144. package/lib/typescript/src/fabric/LuggMapsAppleMapViewNativeComponent.d.ts.map +0 -1
  145. package/lib/typescript/src/fabric/LuggMapsGoogleMapViewNativeComponent.d.ts.map +0 -1
  146. package/lib/typescript/src/fabric/LuggMapsMarkerViewNativeComponent.d.ts.map +0 -1
  147. package/lib/typescript/src/fabric/LuggMapsPolylineViewNativeComponent.d.ts.map +0 -1
  148. package/lib/typescript/src/fabric/LuggMapsWrapperViewNativeComponent.d.ts.map +0 -1
  149. package/src/Marker.tsx +0 -31
  150. package/src/Marker.types.ts +0 -32
  151. package/src/Polyline.tsx +0 -32
  152. package/src/Polyline.types.ts +0 -24
@@ -23,7 +23,7 @@ export interface CameraMoveEvent {
23
23
  longitude: Double;
24
24
  };
25
25
  zoom: Double;
26
- dragging: boolean;
26
+ gesture: boolean;
27
27
  }
28
28
 
29
29
  export interface CameraIdleEvent {
@@ -32,19 +32,26 @@ export interface CameraIdleEvent {
32
32
  longitude: Double;
33
33
  };
34
34
  zoom: Double;
35
+ gesture: boolean;
35
36
  }
36
37
 
38
+ export interface ReadyEvent {}
39
+
37
40
  export interface NativeProps extends ViewProps {
38
41
  mapId?: string;
39
42
  initialCoordinate?: Coordinate;
40
43
  initialZoom?: Double;
44
+ minZoom?: Double;
45
+ maxZoom?: Double;
41
46
  zoomEnabled?: boolean;
42
47
  scrollEnabled?: boolean;
43
48
  rotateEnabled?: boolean;
44
49
  pitchEnabled?: boolean;
45
50
  padding?: EdgeInsets;
51
+ userLocationEnabled?: boolean;
46
52
  onCameraMove?: DirectEventHandler<CameraMoveEvent>;
47
53
  onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
54
+ onReady?: DirectEventHandler<ReadyEvent>;
48
55
  }
49
56
 
50
57
  type ComponentType = HostComponent<NativeProps>;
@@ -60,7 +67,10 @@ interface NativeCommands {
60
67
  fitCoordinates: (
61
68
  viewRef: React.ElementRef<ComponentType>,
62
69
  coordinates: Coordinate[],
63
- padding: Double,
70
+ paddingTop: Double,
71
+ paddingLeft: Double,
72
+ paddingBottom: Double,
73
+ paddingRight: Double,
64
74
  duration: Double
65
75
  ) => void;
66
76
  }
@@ -70,5 +80,5 @@ export const Commands = codegenNativeCommands<NativeCommands>({
70
80
  });
71
81
 
72
82
  export default codegenNativeComponent<NativeProps>(
73
- 'LuggMapsGoogleMapView'
83
+ 'LuggGoogleMapView'
74
84
  ) as ComponentType;
@@ -4,5 +4,5 @@ import type { ViewProps, HostComponent } from 'react-native';
4
4
  export interface NativeProps extends ViewProps {}
5
5
 
6
6
  export default codegenNativeComponent<NativeProps>(
7
- 'LuggMapsWrapperView'
7
+ 'LuggMapWrapperView'
8
8
  ) as HostComponent<NativeProps>;
@@ -21,5 +21,5 @@ export interface NativeProps extends ViewProps {
21
21
  }
22
22
 
23
23
  export default codegenNativeComponent<NativeProps>(
24
- 'LuggMapsMarkerView'
24
+ 'LuggMarkerView'
25
25
  ) as HostComponent<NativeProps>;
@@ -15,5 +15,5 @@ export interface NativeProps extends ViewProps {
15
15
  }
16
16
 
17
17
  export default codegenNativeComponent<NativeProps>(
18
- 'LuggMapsPolylineView'
18
+ 'LuggPolylineView'
19
19
  ) as HostComponent<NativeProps>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- export { MapView } from "./MapView.js";
4
- export { Marker } from "./Marker.js";
5
- export { Polyline } from "./Polyline.js";
3
+ export { MapView } from './MapView';
4
+ export { MapProvider } from './MapProvider';
5
+ export * from './components';
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["MapView","Marker","Polyline"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,cAAW;AACnC,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,QAAQ,QAAQ,eAAY","ignoreList":[]}
1
+ {"version":3,"names":["MapView","MapProvider"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,WAAW,QAAQ,eAAe;AAE3C,cAAc,cAAc","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export { MapView } from "./MapView.web.js";
4
+ export { MapProvider } from "./MapProvider.web.js";
5
+ export * from "./components/index.web.js";
6
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MapView","MapProvider"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,kBAAe;AACvC,SAASC,WAAW,QAAQ,sBAAmB;AAE/C,cAAc,2BAAwB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export interface MapsAndroidPluginProps {
3
+ apiKey?: string;
4
+ }
5
+ export declare const withLuggMapsAndroid: ConfigPlugin<MapsAndroidPluginProps>;
6
+ //# sourceMappingURL=withLuggMapsAndroid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withLuggMapsAndroid.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withLuggMapsAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CAqBpE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export interface MapsIOSPluginProps {
3
+ apiKey?: string;
4
+ }
5
+ export declare const withLuggMapsIOS: ConfigPlugin<MapsIOSPluginProps>;
6
+ //# sourceMappingURL=withLuggMapsIOS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withLuggMapsIOS.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withLuggMapsIOS.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,kBAAkB,CAoC5D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { MapProviderProps } from './MapProvider.types';
2
+ /**
3
+ * Provider component for map configuration.
4
+ * On web, wraps children with Google Maps APIProvider.
5
+ * On native, passes children through.
6
+ */
7
+ export declare function MapProvider({ children }: MapProviderProps): import("react").ReactNode;
8
+ //# sourceMappingURL=MapProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProvider.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,6BAEzD"}
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * MapProvider props
4
+ */
5
+ export interface MapProviderProps {
6
+ /**
7
+ * Google Maps API key
8
+ * @platform web
9
+ */
10
+ apiKey?: string;
11
+ /**
12
+ * Map children
13
+ */
14
+ children: ReactNode;
15
+ }
16
+ //# sourceMappingURL=MapProvider.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProvider.types.d.ts","sourceRoot":"","sources":["../../../src/MapProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ import type { MapProviderProps } from './MapProvider.types';
2
+ export declare function MapProvider({ apiKey, children }: MapProviderProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=MapProvider.web.d.ts.map
@@ -0,0 +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 +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;IAgBzE,MAAM;CA0CP"}
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"}
@@ -11,11 +11,10 @@ export interface MoveCameraOptions {
11
11
  }
12
12
  /**
13
13
  * Options for fitting coordinates in view
14
- * @default padding 0
15
14
  * @default duration -1
16
15
  */
17
16
  export interface FitCoordinatesOptions {
18
- padding?: number;
17
+ padding?: EdgeInsets;
19
18
  duration?: number;
20
19
  }
21
20
  /**
@@ -26,19 +25,12 @@ export interface MapViewRef {
26
25
  fitCoordinates(coordinates: Coordinate[], options?: FitCoordinatesOptions): void;
27
26
  }
28
27
  /**
29
- * Camera move event data
28
+ * Camera event payload
30
29
  */
31
- export interface CameraMoveEvent {
32
- coordinate: Coordinate;
33
- zoom: number;
34
- dragging: boolean;
35
- }
36
- /**
37
- * Camera idle event data
38
- */
39
- export interface CameraIdleEvent {
30
+ export interface CameraEventPayload {
40
31
  coordinate: Coordinate;
41
32
  zoom: number;
33
+ gesture: boolean;
42
34
  }
43
35
  /**
44
36
  * MapView component props
@@ -62,6 +54,14 @@ export interface MapViewProps extends ViewProps {
62
54
  * @default 10
63
55
  */
64
56
  initialZoom?: number;
57
+ /**
58
+ * Minimum zoom level
59
+ */
60
+ minZoom?: number;
61
+ /**
62
+ * Maximum zoom level
63
+ */
64
+ maxZoom?: number;
65
65
  /**
66
66
  * Enable zoom gestures
67
67
  * @default true
@@ -86,14 +86,24 @@ export interface MapViewProps extends ViewProps {
86
86
  * Map content padding
87
87
  */
88
88
  padding?: EdgeInsets;
89
+ /**
90
+ * Show current user location on the map.
91
+ * Requires location permission to be granted, otherwise silently ignored.
92
+ * @default false
93
+ */
94
+ userLocationEnabled?: boolean;
89
95
  /**
90
96
  * Called when camera moves
91
97
  */
92
- onCameraMove?: (event: NativeSyntheticEvent<CameraMoveEvent>) => void;
98
+ onCameraMove?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
93
99
  /**
94
100
  * Called when camera stops moving
95
101
  */
96
- onCameraIdle?: (event: NativeSyntheticEvent<CameraIdleEvent>) => void;
102
+ onCameraIdle?: (event: NativeSyntheticEvent<CameraEventPayload>) => void;
103
+ /**
104
+ * Called when map is loaded and ready
105
+ */
106
+ onReady?: () => void;
97
107
  /**
98
108
  * Map children (markers, polylines, etc.)
99
109
  */
@@ -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;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC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;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACzE;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACzE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
@@ -0,0 +1,12 @@
1
+ import { Component } from 'react';
2
+ import type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions } 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
+ }
12
+ //# sourceMappingURL=MapView.web.d.ts.map
@@ -0,0 +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;IAoB7D,cAAc,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB;IA0BzE,MAAM;CAoFP"}
@@ -1,8 +1,6 @@
1
+ import React from 'react';
1
2
  import type { ReactNode } from 'react';
2
- import type { Coordinate, Point } from './types';
3
- /**
4
- * Marker component props
5
- */
3
+ import type { Coordinate, Point } from '../types';
6
4
  export interface MarkerProps {
7
5
  /**
8
6
  * Name used for debugging purposes
@@ -24,9 +22,16 @@ export interface MarkerProps {
24
22
  * Anchor point for custom marker views
25
23
  */
26
24
  anchor?: Point;
25
+ /**
26
+ * Z-index for marker ordering. Higher values render on top.
27
+ */
28
+ zIndex?: number;
27
29
  /**
28
30
  * Custom marker view
29
31
  */
30
32
  children?: ReactNode;
31
33
  }
32
- //# sourceMappingURL=Marker.types.d.ts.map
34
+ export declare class Marker extends React.Component<MarkerProps> {
35
+ render(): import("react/jsx-runtime").JSX.Element;
36
+ }
37
+ //# sourceMappingURL=Marker.d.ts.map
@@ -0,0 +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,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { MarkerProps } from './Marker.types';
2
+ import type { MarkerProps } from './Marker';
3
3
  export declare class Marker extends React.Component<MarkerProps> {
4
4
  render(): import("react/jsx-runtime").JSX.Element;
5
5
  }
6
- //# sourceMappingURL=Marker.d.ts.map
6
+ //# sourceMappingURL=Marker.web.d.ts.map
@@ -0,0 +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,8 +1,6 @@
1
+ import React from 'react';
1
2
  import type { ColorValue } from 'react-native';
2
- import type { Coordinate } from './types';
3
- /**
4
- * Polyline component props
5
- */
3
+ import type { Coordinate } from '../types';
6
4
  export interface PolylineProps {
7
5
  /**
8
6
  * Array of coordinates forming the polyline
@@ -20,5 +18,12 @@ export interface PolylineProps {
20
18
  * Animate the polyline with a snake effect
21
19
  */
22
20
  animated?: boolean;
21
+ /**
22
+ * Z-index for layering polylines
23
+ */
24
+ zIndex?: number;
25
+ }
26
+ export declare class Polyline extends React.Component<PolylineProps> {
27
+ render(): import("react/jsx-runtime").JSX.Element;
23
28
  }
24
- //# sourceMappingURL=Polyline.types.d.ts.map
29
+ //# sourceMappingURL=Polyline.d.ts.map
@@ -0,0 +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;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC1D,MAAM;CAmBP"}
@@ -0,0 +1,6 @@
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
+ }
6
+ //# sourceMappingURL=Polyline.web.d.ts.map
@@ -0,0 +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;AAgNhD,qBAAa,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IACpD,MAAM;CAGP"}
@@ -0,0 +1,3 @@
1
+ export * from './Marker';
2
+ export * from './Polyline';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { Marker } from './Marker.web';
2
+ export { Polyline } from './Polyline.web';
3
+ export type { MarkerProps } from './Marker';
4
+ export type { PolylineProps } from './Polyline';
5
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -16,7 +16,7 @@ export interface CameraMoveEvent {
16
16
  longitude: Double;
17
17
  };
18
18
  zoom: Double;
19
- dragging: boolean;
19
+ gesture: boolean;
20
20
  }
21
21
  export interface CameraIdleEvent {
22
22
  coordinate: {
@@ -24,24 +24,31 @@ export interface CameraIdleEvent {
24
24
  longitude: Double;
25
25
  };
26
26
  zoom: Double;
27
+ gesture: boolean;
28
+ }
29
+ export interface ReadyEvent {
27
30
  }
28
31
  export interface NativeProps extends ViewProps {
29
32
  initialCoordinate?: Coordinate;
30
33
  initialZoom?: Double;
34
+ minZoom?: Double;
35
+ maxZoom?: Double;
31
36
  zoomEnabled?: boolean;
32
37
  scrollEnabled?: boolean;
33
38
  rotateEnabled?: boolean;
34
39
  pitchEnabled?: boolean;
35
40
  padding?: EdgeInsets;
41
+ userLocationEnabled?: boolean;
36
42
  onCameraMove?: DirectEventHandler<CameraMoveEvent>;
37
43
  onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
44
+ onReady?: DirectEventHandler<ReadyEvent>;
38
45
  }
39
46
  type ComponentType = HostComponent<NativeProps>;
40
47
  interface NativeCommands {
41
48
  moveCamera: (viewRef: React.ElementRef<ComponentType>, latitude: Double, longitude: Double, zoom: Double, duration: Double) => void;
42
- fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], padding: Double, duration: Double) => void;
49
+ fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], paddingTop: Double, paddingLeft: Double, paddingBottom: Double, paddingRight: Double, duration: Double) => void;
43
50
  }
44
51
  export declare const Commands: NativeCommands;
45
52
  declare const _default: ComponentType;
46
53
  export default _default;
47
- //# sourceMappingURL=LuggMapsAppleMapViewNativeComponent.d.ts.map
54
+ //# sourceMappingURL=LuggAppleMapViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggAppleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggAppleMapViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,OAA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interface CameraMoveEvent {
16
16
  longitude: Double;
17
17
  };
18
18
  zoom: Double;
19
- dragging: boolean;
19
+ gesture: boolean;
20
20
  }
21
21
  export interface CameraIdleEvent {
22
22
  coordinate: {
@@ -24,25 +24,32 @@ export interface CameraIdleEvent {
24
24
  longitude: Double;
25
25
  };
26
26
  zoom: Double;
27
+ gesture: boolean;
28
+ }
29
+ export interface ReadyEvent {
27
30
  }
28
31
  export interface NativeProps extends ViewProps {
29
32
  mapId?: string;
30
33
  initialCoordinate?: Coordinate;
31
34
  initialZoom?: Double;
35
+ minZoom?: Double;
36
+ maxZoom?: Double;
32
37
  zoomEnabled?: boolean;
33
38
  scrollEnabled?: boolean;
34
39
  rotateEnabled?: boolean;
35
40
  pitchEnabled?: boolean;
36
41
  padding?: EdgeInsets;
42
+ userLocationEnabled?: boolean;
37
43
  onCameraMove?: DirectEventHandler<CameraMoveEvent>;
38
44
  onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
45
+ onReady?: DirectEventHandler<ReadyEvent>;
39
46
  }
40
47
  type ComponentType = HostComponent<NativeProps>;
41
48
  interface NativeCommands {
42
49
  moveCamera: (viewRef: React.ElementRef<ComponentType>, latitude: Double, longitude: Double, zoom: Double, duration: Double) => void;
43
- fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], padding: Double, duration: Double) => void;
50
+ fitCoordinates: (viewRef: React.ElementRef<ComponentType>, coordinates: Coordinate[], paddingTop: Double, paddingLeft: Double, paddingBottom: Double, paddingRight: Double, duration: Double) => void;
44
51
  }
45
52
  export declare const Commands: NativeCommands;
46
53
  declare const _default: ComponentType;
47
54
  export default _default;
48
- //# sourceMappingURL=LuggMapsGoogleMapViewNativeComponent.d.ts.map
55
+ //# sourceMappingURL=LuggGoogleMapViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggGoogleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggGoogleMapViewNativeComponent.ts"],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EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,KAAK,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEhD,UAAU,cAAc;IACtB,UAAU,EAAE,CACV,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;IACV,cAAc,EAAE,CACd,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EACxC,WAAW,EAAE,UAAU,EAAE,EACzB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
@@ -3,4 +3,4 @@ export interface NativeProps extends ViewProps {
3
3
  }
4
4
  declare const _default: HostComponent<NativeProps>;
5
5
  export default _default;
6
- //# sourceMappingURL=LuggMapsWrapperViewNativeComponent.d.ts.map
6
+ //# sourceMappingURL=LuggMapWrapperViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggMapWrapperViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapWrapperViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,SAAS;CAAG;wBAI5C,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -17,4 +17,4 @@ export interface NativeProps extends ViewProps {
17
17
  }
18
18
  declare const _default: HostComponent<NativeProps>;
19
19
  export default _default;
20
- //# sourceMappingURL=LuggMapsMarkerViewNativeComponent.d.ts.map
20
+ //# sourceMappingURL=LuggMarkerViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggMarkerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMarkerViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -12,4 +12,4 @@ export interface NativeProps extends ViewProps {
12
12
  }
13
13
  declare const _default: HostComponent<NativeProps>;
14
14
  export default _default;
15
- //# sourceMappingURL=LuggMapsPolylineViewNativeComponent.d.ts.map
15
+ //# sourceMappingURL=LuggPolylineViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LuggPolylineViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggPolylineViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
@@ -1,8 +1,7 @@
1
1
  export { MapView } from './MapView';
2
- export { Marker } from './Marker';
3
- export { Polyline } from './Polyline';
4
- export type { MapViewProps, MapViewRef, MoveCameraOptions, CameraMoveEvent, CameraIdleEvent, } from './MapView.types';
5
- export type { MarkerProps } from './Marker.types';
6
- export type { PolylineProps } from './Polyline.types';
7
- export type { MapProvider, Coordinate, Point, EdgeInsets } from './types';
2
+ export { MapProvider } from './MapProvider';
3
+ export type { MapProviderProps } from './MapProvider.types';
4
+ export * from './components';
5
+ export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, CameraEventPayload, } from './MapView.types';
6
+ export type { MapProvider as MapProviderType, Coordinate, Point, EdgeInsets, } from './types';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,KAAK,EACL,UAAU,GACX,MAAM,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { MapView } from './MapView.web';
2
+ export { MapProvider } from './MapProvider.web';
3
+ export type { MapProviderProps } from './MapProvider.types';
4
+ export * from './components/index.web';
5
+ export type { MapViewProps, MapViewRef, MoveCameraOptions, FitCoordinatesOptions, CameraEventPayload, } from './MapView.types';
6
+ export type { MapProvider as MapProviderType, Coordinate, Point, EdgeInsets, } from './types';
7
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,cAAc,wBAAwB,CAAC;AACvC,YAAY,EACV,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,KAAK,EACL,UAAU,GACX,MAAM,SAAS,CAAC"}