@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
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { StyleSheet } from 'react-native';
4
+ import LuggMarkerViewNativeComponent from '../fabric/LuggMarkerViewNativeComponent';
5
+ import type { Coordinate, Point } from '../types';
6
+
7
+ export interface MarkerProps {
8
+ /**
9
+ * Name used for debugging purposes
10
+ */
11
+ name?: string;
12
+ /**
13
+ * Marker position
14
+ */
15
+ coordinate: Coordinate;
16
+ /**
17
+ * Callout title
18
+ */
19
+ title?: string;
20
+ /**
21
+ * Callout description
22
+ */
23
+ description?: string;
24
+ /**
25
+ * Anchor point for custom marker views
26
+ */
27
+ anchor?: Point;
28
+ /**
29
+ * Z-index for marker ordering. Higher values render on top.
30
+ */
31
+ zIndex?: number;
32
+ /**
33
+ * Custom marker view
34
+ */
35
+ children?: ReactNode;
36
+ }
37
+
38
+ export class Marker extends React.Component<MarkerProps> {
39
+ render() {
40
+ const { name, coordinate, title, description, anchor, zIndex, children } =
41
+ this.props;
42
+
43
+ return (
44
+ <LuggMarkerViewNativeComponent
45
+ style={[{ zIndex }, styles.marker]}
46
+ name={name}
47
+ coordinate={coordinate}
48
+ title={title}
49
+ description={description}
50
+ anchor={anchor}
51
+ >
52
+ {children}
53
+ </LuggMarkerViewNativeComponent>
54
+ );
55
+ }
56
+ }
57
+
58
+ const styles = StyleSheet.create({
59
+ marker: {
60
+ position: 'absolute',
61
+ pointerEvents: 'box-none',
62
+ },
63
+ });
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { AdvancedMarker } from '@vis.gl/react-google-maps';
3
+ import type { MarkerProps } from './Marker';
4
+
5
+ /**
6
+ * Converts point to % anchor for web.
7
+ * e.g. `0.5` to `-50%`
8
+ */
9
+ const toWebAnchor = (value: number) => `-${value * 100}%`;
10
+
11
+ export class Marker extends React.Component<MarkerProps> {
12
+ render() {
13
+ const { coordinate, title, anchor, zIndex, children } = this.props;
14
+
15
+ const position = {
16
+ lat: coordinate.latitude,
17
+ lng: coordinate.longitude,
18
+ };
19
+
20
+ return (
21
+ <AdvancedMarker
22
+ position={position}
23
+ title={title}
24
+ zIndex={zIndex}
25
+ anchorLeft={anchor ? toWebAnchor(anchor.x) : undefined}
26
+ anchorTop={anchor ? toWebAnchor(anchor.y) : undefined}
27
+ >
28
+ {children}
29
+ </AdvancedMarker>
30
+ );
31
+ }
32
+ }
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import type { ColorValue } from 'react-native';
3
+ import { StyleSheet } from 'react-native';
4
+ import LuggPolylineViewNativeComponent from '../fabric/LuggPolylineViewNativeComponent';
5
+ import type { Coordinate } from '../types';
6
+
7
+ export interface PolylineProps {
8
+ /**
9
+ * Array of coordinates forming the polyline
10
+ */
11
+ coordinates: Coordinate[];
12
+ /**
13
+ * Gradient colors along the polyline
14
+ */
15
+ strokeColors?: ColorValue[];
16
+ /**
17
+ * Line width in points
18
+ */
19
+ strokeWidth?: number;
20
+ /**
21
+ * Animate the polyline with a snake effect
22
+ */
23
+ animated?: boolean;
24
+ /**
25
+ * Z-index for layering polylines
26
+ */
27
+ zIndex?: number;
28
+ }
29
+
30
+ export class Polyline extends React.Component<PolylineProps> {
31
+ render() {
32
+ const {
33
+ coordinates,
34
+ strokeColors,
35
+ strokeWidth,
36
+ animated = false,
37
+ zIndex,
38
+ } = this.props;
39
+
40
+ return (
41
+ <LuggPolylineViewNativeComponent
42
+ style={[{ zIndex }, styles.polyline]}
43
+ coordinates={coordinates}
44
+ strokeColors={strokeColors}
45
+ strokeWidth={strokeWidth}
46
+ animated={animated}
47
+ />
48
+ );
49
+ }
50
+ }
51
+
52
+ const styles = StyleSheet.create({
53
+ polyline: {
54
+ position: 'absolute',
55
+ pointerEvents: 'none',
56
+ },
57
+ });
@@ -0,0 +1,222 @@
1
+ import {
2
+ Component,
3
+ useCallback,
4
+ useEffect,
5
+ useMemo,
6
+ useRef,
7
+ useState,
8
+ } from 'react';
9
+ import { useMap } from '@vis.gl/react-google-maps';
10
+ import type { PolylineProps } from './Polyline';
11
+
12
+ const ANIMATION_DURATION = 1500;
13
+
14
+ function interpolateColor(color1: string, color2: string, t: number): string {
15
+ const hex = (c: string) => parseInt(c, 16);
16
+ const r1 = hex(color1.slice(1, 3));
17
+ const g1 = hex(color1.slice(3, 5));
18
+ const b1 = hex(color1.slice(5, 7));
19
+ const r2 = hex(color2.slice(1, 3));
20
+ const g2 = hex(color2.slice(3, 5));
21
+ const b2 = hex(color2.slice(5, 7));
22
+
23
+ const r = Math.round(r1 + (r2 - r1) * t);
24
+ const g = Math.round(g1 + (g2 - g1) * t);
25
+ const b = Math.round(b1 + (b2 - b1) * t);
26
+
27
+ return `#${r.toString(16).padStart(2, '0')}${g
28
+ .toString(16)
29
+ .padStart(2, '0')}${b.toString(16).padStart(2, '0')}`;
30
+ }
31
+
32
+ function getGradientColor(colors: string[], position: number): string {
33
+ if (colors.length === 0) return '#000000';
34
+ if (colors.length === 1 || position <= 0) return colors[0]!;
35
+ if (position >= 1) return colors[colors.length - 1]!;
36
+
37
+ const scaledPos = position * (colors.length - 1);
38
+ const index = Math.floor(scaledPos);
39
+ const t = scaledPos - index;
40
+
41
+ return interpolateColor(colors[index]!, colors[index + 1]!, t);
42
+ }
43
+
44
+ function PolylineImpl({
45
+ coordinates,
46
+ strokeColors,
47
+ strokeWidth = 1,
48
+ animated,
49
+ zIndex,
50
+ }: PolylineProps) {
51
+ const resolvedZIndex = zIndex ?? (animated ? 1 : 0);
52
+ const map = useMap();
53
+ const polylinesRef = useRef<google.maps.Polyline[]>([]);
54
+ const animationRef = useRef<number>(0);
55
+
56
+ const colors = useMemo(
57
+ () =>
58
+ strokeColors && strokeColors.length > 0
59
+ ? (strokeColors as string[])
60
+ : ['#000000'],
61
+ [strokeColors]
62
+ );
63
+
64
+ const hasGradient = colors.length > 1;
65
+
66
+ // Refs for animation loop access
67
+ const propsRef = useRef({
68
+ map,
69
+ colors,
70
+ strokeWidth,
71
+ hasGradient,
72
+ zIndex: resolvedZIndex,
73
+ });
74
+ const [mapReady, setMapReady] = useState(!!map);
75
+
76
+ useEffect(() => {
77
+ propsRef.current = {
78
+ map,
79
+ colors,
80
+ strokeWidth,
81
+ hasGradient,
82
+ zIndex: resolvedZIndex,
83
+ };
84
+ if (map && !mapReady) setMapReady(true);
85
+ }, [map, colors, strokeWidth, hasGradient, resolvedZIndex, mapReady]);
86
+
87
+ const updatePath = useCallback((path: google.maps.LatLngLiteral[]) => {
88
+ const {
89
+ map: currentMap,
90
+ colors: currentColors,
91
+ strokeWidth: currentStrokeWidth,
92
+ hasGradient: currentHasGradient,
93
+ zIndex: currentZIndex,
94
+ } = propsRef.current;
95
+ if (!currentMap || path.length < 2) return;
96
+
97
+ const neededSegments = currentHasGradient ? path.length - 1 : 1;
98
+ const existing = polylinesRef.current;
99
+
100
+ // Update or create segments
101
+ for (let i = 0; i < neededSegments; i++) {
102
+ const segmentPath = currentHasGradient ? [path[i]!, path[i + 1]!] : path;
103
+ const color = currentHasGradient
104
+ ? getGradientColor(currentColors, i / (path.length - 1))
105
+ : currentColors[0]!;
106
+
107
+ const segment = existing[i];
108
+ if (segment) {
109
+ segment.setPath(segmentPath);
110
+ segment.setOptions({ strokeColor: color });
111
+ } else {
112
+ existing.push(
113
+ new google.maps.Polyline({
114
+ path: segmentPath,
115
+ strokeColor: color,
116
+ strokeWeight: currentStrokeWidth,
117
+ strokeOpacity: 1,
118
+ zIndex: currentZIndex,
119
+ map: currentMap,
120
+ })
121
+ );
122
+ }
123
+ }
124
+
125
+ // Remove extra segments
126
+ for (let i = neededSegments; i < existing.length; i++) {
127
+ existing[i]?.setMap(null);
128
+ }
129
+ existing.length = neededSegments;
130
+ }, []);
131
+
132
+ // Cleanup on unmount
133
+ useEffect(() => {
134
+ const polylines = polylinesRef.current;
135
+ return () => {
136
+ cancelAnimationFrame(animationRef.current);
137
+ polylines.forEach((p) => p.setMap(null));
138
+ };
139
+ }, []);
140
+
141
+ // Main effect
142
+ useEffect(() => {
143
+ if (!propsRef.current.map || coordinates.length === 0) return;
144
+
145
+ const fullPath = coordinates.map((c) => ({
146
+ lat: c.latitude,
147
+ lng: c.longitude,
148
+ }));
149
+
150
+ cancelAnimationFrame(animationRef.current);
151
+
152
+ if (!animated) {
153
+ updatePath(fullPath);
154
+ return;
155
+ }
156
+
157
+ const totalPoints = fullPath.length;
158
+ const cycleDuration = ANIMATION_DURATION * 2;
159
+
160
+ const animate = (time: number) => {
161
+ const progress = (time % cycleDuration) / ANIMATION_DURATION;
162
+ const startIdx = progress <= 1 ? 0 : (progress - 1) * totalPoints;
163
+ const endIdx = progress <= 1 ? progress * totalPoints : totalPoints;
164
+
165
+ const partialPath: google.maps.LatLngLiteral[] = [];
166
+ const startFloor = Math.floor(startIdx);
167
+ const endFloor = Math.floor(endIdx);
168
+
169
+ // Start point (interpolated)
170
+ if (startFloor < totalPoints) {
171
+ const frac = startIdx - startFloor;
172
+ const from = fullPath[startFloor]!;
173
+ const to = fullPath[Math.min(startFloor + 1, totalPoints - 1)]!;
174
+ partialPath.push(
175
+ frac > 0
176
+ ? {
177
+ lat: from.lat + (to.lat - from.lat) * frac,
178
+ lng: from.lng + (to.lng - from.lng) * frac,
179
+ }
180
+ : from
181
+ );
182
+ }
183
+
184
+ // Middle points
185
+ for (
186
+ let i = startFloor + 1;
187
+ i <= Math.min(endFloor, totalPoints - 1);
188
+ i++
189
+ ) {
190
+ partialPath.push(fullPath[i]!);
191
+ }
192
+
193
+ // End point (interpolated)
194
+ if (endFloor < totalPoints - 1) {
195
+ const frac = endIdx - endFloor;
196
+ const from = fullPath[endFloor]!;
197
+ const to = fullPath[endFloor + 1]!;
198
+ if (frac > 0) {
199
+ partialPath.push({
200
+ lat: from.lat + (to.lat - from.lat) * frac,
201
+ lng: from.lng + (to.lng - from.lng) * frac,
202
+ });
203
+ }
204
+ }
205
+
206
+ updatePath(partialPath);
207
+ animationRef.current = requestAnimationFrame(animate);
208
+ };
209
+
210
+ animationRef.current = requestAnimationFrame(animate);
211
+
212
+ return () => cancelAnimationFrame(animationRef.current);
213
+ }, [coordinates, animated, hasGradient, updatePath, mapReady]);
214
+
215
+ return null;
216
+ }
217
+
218
+ export class Polyline extends Component<PolylineProps> {
219
+ render() {
220
+ return <PolylineImpl {...this.props} />;
221
+ }
222
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Marker';
2
+ export * from './Polyline';
@@ -0,0 +1,4 @@
1
+ export { Marker } from './Marker.web';
2
+ export { Polyline } from './Polyline.web';
3
+ export type { MarkerProps } from './Marker';
4
+ export type { PolylineProps } from './Polyline';
@@ -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,18 +32,25 @@ 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
  initialCoordinate?: Coordinate;
39
42
  initialZoom?: Double;
43
+ minZoom?: Double;
44
+ maxZoom?: Double;
40
45
  zoomEnabled?: boolean;
41
46
  scrollEnabled?: boolean;
42
47
  rotateEnabled?: boolean;
43
48
  pitchEnabled?: boolean;
44
49
  padding?: EdgeInsets;
50
+ userLocationEnabled?: boolean;
45
51
  onCameraMove?: DirectEventHandler<CameraMoveEvent>;
46
52
  onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
53
+ onReady?: DirectEventHandler<ReadyEvent>;
47
54
  }
48
55
 
49
56
  type ComponentType = HostComponent<NativeProps>;
@@ -59,7 +66,10 @@ interface NativeCommands {
59
66
  fitCoordinates: (
60
67
  viewRef: React.ElementRef<ComponentType>,
61
68
  coordinates: Coordinate[],
62
- padding: Double,
69
+ paddingTop: Double,
70
+ paddingLeft: Double,
71
+ paddingBottom: Double,
72
+ paddingRight: Double,
63
73
  duration: Double
64
74
  ) => void;
65
75
  }
@@ -69,5 +79,5 @@ export const Commands = codegenNativeCommands<NativeCommands>({
69
79
  });
70
80
 
71
81
  export default codegenNativeComponent<NativeProps>(
72
- 'LuggMapsAppleMapView'
82
+ 'LuggAppleMapView'
73
83
  ) as ComponentType;
@@ -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>;
package/src/index.ts CHANGED
@@ -1,13 +1,17 @@
1
1
  export { MapView } from './MapView';
2
- export { Marker } from './Marker';
3
- export { Polyline } from './Polyline';
2
+ export { MapProvider } from './MapProvider';
3
+ export type { MapProviderProps } from './MapProvider.types';
4
+ export * from './components';
4
5
  export type {
5
6
  MapViewProps,
6
7
  MapViewRef,
7
8
  MoveCameraOptions,
8
- CameraMoveEvent,
9
- CameraIdleEvent,
9
+ FitCoordinatesOptions,
10
+ CameraEventPayload,
10
11
  } from './MapView.types';
11
- export type { MarkerProps } from './Marker.types';
12
- export type { PolylineProps } from './Polyline.types';
13
- export type { MapProvider, Coordinate, Point, EdgeInsets } from './types';
12
+ export type {
13
+ MapProvider as MapProviderType,
14
+ Coordinate,
15
+ Point,
16
+ EdgeInsets,
17
+ } from './types';
@@ -0,0 +1,17 @@
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 {
6
+ MapViewProps,
7
+ MapViewRef,
8
+ MoveCameraOptions,
9
+ FitCoordinatesOptions,
10
+ CameraEventPayload,
11
+ } from './MapView.types';
12
+ export type {
13
+ MapProvider as MapProviderType,
14
+ Coordinate,
15
+ Point,
16
+ EdgeInsets,
17
+ } from './types';
@@ -1,25 +0,0 @@
1
- package com.luggmaps
2
-
3
- import com.facebook.react.module.annotations.ReactModule
4
- import com.facebook.react.uimanager.ThemedReactContext
5
- import com.facebook.react.uimanager.ViewGroupManager
6
- import com.facebook.react.uimanager.ViewManagerDelegate
7
- import com.facebook.react.viewmanagers.LuggMapsWrapperViewManagerDelegate
8
- import com.facebook.react.viewmanagers.LuggMapsWrapperViewManagerInterface
9
-
10
- @ReactModule(name = LuggMapsWrapperViewManager.NAME)
11
- class LuggMapsWrapperViewManager :
12
- ViewGroupManager<LuggMapsWrapperView>(),
13
- LuggMapsWrapperViewManagerInterface<LuggMapsWrapperView> {
14
- private val delegate: ViewManagerDelegate<LuggMapsWrapperView> = LuggMapsWrapperViewManagerDelegate(this)
15
-
16
- override fun getDelegate(): ViewManagerDelegate<LuggMapsWrapperView> = delegate
17
-
18
- override fun getName(): String = NAME
19
-
20
- override fun createViewInstance(context: ThemedReactContext): LuggMapsWrapperView = LuggMapsWrapperView(context)
21
-
22
- companion object {
23
- const val NAME = "LuggMapsWrapperView"
24
- }
25
- }
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","LuggMapsMarkerViewNativeComponent","StyleSheet","jsx","_jsx","Marker","Component","render","name","coordinate","title","description","anchor","children","props","style","styles","marker","create","position","pointerEvents"],"sourceRoot":"../../src","sources":["Marker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iCAAiC,MAAM,4CAA4C;AAE1F,SAASC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,OAAO,MAAMC,MAAM,SAASL,KAAK,CAACM,SAAS,CAAc;EACvDC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC,IAAI;MAAEC,UAAU;MAAEC,KAAK;MAAEC,WAAW;MAAEC,MAAM;MAAEC;IAAS,CAAC,GAC9D,IAAI,CAACC,KAAK;IAEZ,oBACEV,IAAA,CAACH,iCAAiC;MAChCc,KAAK,EAAEC,MAAM,CAACC,MAAO;MACrBT,IAAI,EAAEA,IAAK;MACXC,UAAU,EAAEA,UAAW;MACvBC,KAAK,EAAEA,KAAM;MACbC,WAAW,EAAEA,WAAY;MACzBC,MAAM,EAAEA,MAAO;MAAAC,QAAA,EAEdA;IAAQ,CACwB,CAAC;EAExC;AACF;AAEA,MAAMG,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BD,MAAM,EAAE;IACNE,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export {};
4
- //# sourceMappingURL=Marker.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["Marker.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","LuggMapsPolylineViewNativeComponent","StyleSheet","jsx","_jsx","Polyline","Component","render","coordinates","strokeColors","strokeWidth","animated","props","style","styles","polyline","create","position","pointerEvents"],"sourceRoot":"../../src","sources":["Polyline.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,mCAAmC,MAAM,8CAA8C;AAE9F,SAASC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,OAAO,MAAMC,QAAQ,SAASL,KAAK,CAACM,SAAS,CAAgB;EAC3DC,MAAMA,CAAA,EAAG;IACP,MAAM;MACJC,WAAW;MACXC,YAAY;MACZC,WAAW;MACXC,QAAQ,GAAG;IACb,CAAC,GAAG,IAAI,CAACC,KAAK;IAEd,oBACER,IAAA,CAACH,mCAAmC;MAClCY,KAAK,EAAEC,MAAM,CAACC,QAAS;MACvBP,WAAW,EAAEA,WAAY;MACzBC,YAAY,EAAEA,YAAa;MAC3BC,WAAW,EAAEA,WAAY;MACzBC,QAAQ,EAAEA;IAAS,CACpB,CAAC;EAEN;AACF;AAEA,MAAMG,MAAM,GAAGZ,UAAU,CAACc,MAAM,CAAC;EAC/BD,QAAQ,EAAE;IACRE,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export {};
4
- //# sourceMappingURL=Polyline.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["Polyline.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"withMapsAndroid.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withMapsAndroid.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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"withMapsIOS.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withMapsIOS.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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Marker.d.ts","sourceRoot":"","sources":["../../../src/Marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC;IACtD,MAAM;CAiBP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Marker.types.d.ts","sourceRoot":"","sources":["../../../src/Marker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,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,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { PolylineProps } from './Polyline.types';
3
- export declare class Polyline extends React.Component<PolylineProps> {
4
- render(): import("react/jsx-runtime").JSX.Element;
5
- }
6
- //# sourceMappingURL=Polyline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["../../../src/Polyline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,qBAAa,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC1D,MAAM;CAkBP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Polyline.types.d.ts","sourceRoot":"","sources":["../../../src/Polyline.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;GAEG;AACH,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LuggMapsAppleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapsAppleMapViewNativeComponent.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,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;CACpD;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,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LuggMapsGoogleMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapsGoogleMapViewNativeComponent.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,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;CACpD;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,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,KACb,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC;wBAIE,aAAa;AAFlB,wBAEmB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LuggMapsMarkerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapsMarkerViewNativeComponent.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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LuggMapsPolylineViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/LuggMapsPolylineViewNativeComponent.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"}