@lugg/maps 0.2.0-alpha.3 → 0.2.0-alpha.30
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.
- package/README.md +21 -3
- package/android/src/main/java/com/luggmaps/LuggMapView.kt +265 -0
- package/android/src/main/java/com/luggmaps/{LuggGoogleMapViewManager.kt → LuggMapViewManager.kt} +75 -36
- package/android/src/main/java/com/luggmaps/LuggMapWrapperView.kt +6 -5
- package/android/src/main/java/com/luggmaps/LuggMarkerView.kt +136 -14
- package/android/src/main/java/com/luggmaps/LuggMarkerViewManager.kt +21 -0
- package/android/src/main/java/com/luggmaps/LuggPackage.kt +1 -4
- package/android/src/main/java/com/luggmaps/LuggPolylineView.kt +16 -0
- package/android/src/main/java/com/luggmaps/LuggPolylineViewManager.kt +22 -0
- package/android/src/main/java/com/luggmaps/{LuggGoogleMapView.kt → core/GoogleMapProvider.kt} +251 -241
- package/android/src/main/java/com/luggmaps/core/MapProviderDelegate.kt +55 -0
- package/android/src/main/java/com/luggmaps/core/PolylineAnimator.kt +163 -52
- package/ios/LuggMapView.h +9 -0
- package/ios/LuggMapView.mm +312 -0
- package/ios/LuggMarkerView.h +9 -0
- package/ios/LuggMarkerView.mm +79 -0
- package/ios/LuggPolylineView.h +4 -0
- package/ios/LuggPolylineView.mm +23 -0
- package/ios/core/AppleMapProvider.h +15 -0
- package/ios/core/AppleMapProvider.mm +664 -0
- package/ios/core/GMSPolylineAnimator.h +3 -0
- package/ios/core/GMSPolylineAnimator.m +175 -40
- package/ios/core/GoogleMapProvider.h +13 -0
- package/ios/core/GoogleMapProvider.mm +513 -0
- package/ios/core/MKPolylineAnimator.h +4 -0
- package/ios/core/MKPolylineAnimator.m +224 -68
- package/ios/core/MapProviderDelegate.h +72 -0
- package/ios/core/PolylineAnimatorBase.h +24 -1
- package/ios/core/PolylineAnimatorBase.m +82 -19
- package/ios/extensions/MKMapView+Zoom.h +2 -0
- package/ios/extensions/MKMapView+Zoom.m +14 -4
- package/lib/module/MapProvider.js +13 -0
- package/lib/module/MapProvider.js.map +1 -0
- package/lib/module/MapProvider.types.js +4 -0
- package/lib/module/MapProvider.types.js.map +1 -0
- package/lib/module/MapProvider.web.js +20 -0
- package/lib/module/MapProvider.web.js.map +1 -0
- package/lib/module/MapView.js +29 -16
- package/lib/module/MapView.js.map +1 -1
- package/lib/module/MapView.web.js +290 -0
- package/lib/module/MapView.web.js.map +1 -0
- package/lib/module/components/Marker.js +19 -2
- package/lib/module/components/Marker.js.map +1 -1
- package/lib/module/components/Marker.web.js +33 -0
- package/lib/module/components/Marker.web.js.map +1 -0
- package/lib/module/components/Polyline.js +17 -4
- package/lib/module/components/Polyline.js.map +1 -1
- package/lib/module/components/Polyline.web.js +229 -0
- package/lib/module/components/Polyline.web.js.map +1 -0
- package/lib/module/components/index.js +2 -2
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/index.web.js +5 -0
- package/lib/module/components/index.web.js.map +1 -0
- package/lib/module/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +19 -7
- package/lib/module/fabric/LuggMarkerViewNativeComponent.ts +7 -1
- package/lib/module/fabric/LuggPolylineViewNativeComponent.ts +8 -0
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +7 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/typescript/src/MapProvider.d.ts +8 -0
- package/lib/typescript/src/MapProvider.d.ts.map +1 -0
- package/lib/typescript/src/MapProvider.types.d.ts +16 -0
- package/lib/typescript/src/MapProvider.types.d.ts.map +1 -0
- package/lib/typescript/src/MapProvider.web.d.ts +11 -0
- package/lib/typescript/src/MapProvider.web.d.ts.map +1 -0
- package/lib/typescript/src/MapView.d.ts +4 -4
- package/lib/typescript/src/MapView.d.ts.map +1 -1
- package/lib/typescript/src/MapView.types.d.ts +23 -7
- package/lib/typescript/src/MapView.types.d.ts.map +1 -1
- package/lib/typescript/src/MapView.web.d.ts +3 -0
- package/lib/typescript/src/MapView.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Marker.d.ts +25 -1
- package/lib/typescript/src/components/Marker.d.ts.map +1 -1
- package/lib/typescript/src/components/Marker.web.d.ts +3 -0
- package/lib/typescript/src/components/Marker.web.d.ts.map +1 -0
- package/lib/typescript/src/components/Polyline.d.ts +36 -1
- package/lib/typescript/src/components/Polyline.d.ts.map +1 -1
- package/lib/typescript/src/components/Polyline.web.d.ts +3 -0
- package/lib/typescript/src/components/Polyline.web.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +4 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/index.web.d.ts +5 -0
- package/lib/typescript/src/components/index.web.d.ts.map +1 -0
- package/lib/typescript/src/fabric/{LuggGoogleMapViewNativeComponent.d.ts → LuggMapViewNativeComponent.d.ts} +8 -4
- package/lib/typescript/src/fabric/LuggMapViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts +4 -1
- package/lib/typescript/src/fabric/LuggMarkerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts +7 -0
- package/lib/typescript/src/fabric/LuggPolylineViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +8 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +10 -0
- package/lib/typescript/src/index.web.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +4 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +17 -3
- package/src/MapProvider.tsx +10 -0
- package/src/MapProvider.types.ts +16 -0
- package/src/MapProvider.web.tsx +14 -0
- package/src/MapView.tsx +28 -26
- package/src/MapView.types.ts +24 -7
- package/src/MapView.web.tsx +364 -0
- package/src/components/Marker.tsx +50 -4
- package/src/components/Marker.web.tsx +33 -0
- package/src/components/Polyline.tsx +51 -2
- package/src/components/Polyline.web.tsx +287 -0
- package/src/components/index.ts +8 -2
- package/src/components/index.web.ts +4 -0
- package/src/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts} +19 -7
- package/src/fabric/LuggMarkerViewNativeComponent.ts +7 -1
- package/src/fabric/LuggPolylineViewNativeComponent.ts +8 -0
- package/src/index.ts +18 -2
- package/src/index.web.ts +20 -0
- package/src/types.ts +5 -0
- package/ios/LuggAppleMapView.h +0 -16
- package/ios/LuggAppleMapView.mm +0 -580
- package/ios/LuggGoogleMapView.h +0 -13
- package/ios/LuggGoogleMapView.mm +0 -454
- package/lib/module/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
- package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts +0 -54
- package/lib/typescript/src/fabric/LuggAppleMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/fabric/LuggGoogleMapViewNativeComponent.d.ts.map +0 -1
- package/src/fabric/LuggAppleMapViewNativeComponent.ts +0 -83
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","LuggPolylineViewNativeComponent","jsx","_jsx","Polyline","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LuggPolylineViewNativeComponent","jsx","_jsx","Polyline","PureComponent","getStyle","zIndex","styles","polyline","_cachedZIndex","_cachedStyle","render","coordinates","strokeColors","strokeWidth","animated","animatedOptions","props","style","create","position","pointerEvents"],"sourceRoot":"../../../src","sources":["components/Polyline.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,+BAA+B,MAAM,2CAA2C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAwDxF,OAAO,MAAMC,QAAQ,SAASL,KAAK,CAACM,aAAa,CAAgB;EACvDC,QAAQA,CAACC,MAA0B,EAAE;IAC3C,IAAIA,MAAM,IAAI,IAAI,EAAE,OAAOC,MAAM,CAACC,QAAQ;IAC1C,IAAIF,MAAM,KAAK,IAAI,CAACG,aAAa,EAAE;MACjC,IAAI,CAACA,aAAa,GAAGH,MAAM;MAC3B,IAAI,CAACI,YAAY,GAAG,CAAC;QAAEJ;MAAO,CAAC,EAAEC,MAAM,CAACC,QAAQ,CAAC;IACnD;IACA,OAAO,IAAI,CAACE,YAAY;EAC1B;EAKAC,MAAMA,CAAA,EAAG;IACP,MAAM;MACJC,WAAW;MACXC,YAAY;MACZC,WAAW;MACXC,QAAQ,GAAG,KAAK;MAChBC,eAAe;MACfV;IACF,CAAC,GAAG,IAAI,CAACW,KAAK;IAEd,oBACEf,IAAA,CAACF,+BAA+B;MAC9BkB,KAAK,EAAE,IAAI,CAACb,QAAQ,CAACC,MAAM,CAAE;MAC7BM,WAAW,EAAEA,WAAY;MACzBC,YAAY,EAAEA,YAAa;MAC3BC,WAAW,EAAEA,WAAY;MACzBC,QAAQ,EAAEA,QAAS;MACnBC,eAAe,EAAEA;IAAgB,CAClC,CAAC;EAEN;AACF;AAEA,MAAMT,MAAM,GAAGR,UAAU,CAACoB,MAAM,CAAC;EAC/BX,QAAQ,EAAE;IACRY,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
+
import { useMapContext } from "../MapProvider.web.js";
|
|
5
|
+
const DEFAULT_DURATION = 2150;
|
|
6
|
+
function applyEasing(t, easing = 'linear') {
|
|
7
|
+
switch (easing) {
|
|
8
|
+
case 'easeIn':
|
|
9
|
+
return t * t;
|
|
10
|
+
case 'easeOut':
|
|
11
|
+
return t * (2 - t);
|
|
12
|
+
case 'easeInOut':
|
|
13
|
+
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
|
|
14
|
+
default:
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function interpolateColor(color1, color2, t) {
|
|
19
|
+
const hex = c => parseInt(c, 16);
|
|
20
|
+
const r1 = hex(color1.slice(1, 3));
|
|
21
|
+
const g1 = hex(color1.slice(3, 5));
|
|
22
|
+
const b1 = hex(color1.slice(5, 7));
|
|
23
|
+
const r2 = hex(color2.slice(1, 3));
|
|
24
|
+
const g2 = hex(color2.slice(3, 5));
|
|
25
|
+
const b2 = hex(color2.slice(5, 7));
|
|
26
|
+
const r = Math.round(r1 + (r2 - r1) * t);
|
|
27
|
+
const g = Math.round(g1 + (g2 - g1) * t);
|
|
28
|
+
const b = Math.round(b1 + (b2 - b1) * t);
|
|
29
|
+
return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b.toString(16).padStart(2, '0')}`;
|
|
30
|
+
}
|
|
31
|
+
function getGradientColor(colors, position) {
|
|
32
|
+
if (colors.length === 0) return '#000000';
|
|
33
|
+
if (colors.length === 1 || position <= 0) return colors[0];
|
|
34
|
+
if (position >= 1) return colors[colors.length - 1];
|
|
35
|
+
const scaledPos = position * (colors.length - 1);
|
|
36
|
+
const index = Math.floor(scaledPos);
|
|
37
|
+
const t = scaledPos - index;
|
|
38
|
+
return interpolateColor(colors[index], colors[index + 1], t);
|
|
39
|
+
}
|
|
40
|
+
export function Polyline({
|
|
41
|
+
coordinates,
|
|
42
|
+
strokeColors,
|
|
43
|
+
strokeWidth = 1,
|
|
44
|
+
animated,
|
|
45
|
+
animatedOptions,
|
|
46
|
+
zIndex
|
|
47
|
+
}) {
|
|
48
|
+
const resolvedZIndex = zIndex ?? (animated ? 1 : 0);
|
|
49
|
+
const {
|
|
50
|
+
map,
|
|
51
|
+
isDragging
|
|
52
|
+
} = useMapContext();
|
|
53
|
+
const polylinesRef = useRef([]);
|
|
54
|
+
const animationRef = useRef(0);
|
|
55
|
+
const isPausedRef = useRef(false);
|
|
56
|
+
const colors = useMemo(() => strokeColors && strokeColors.length > 0 ? strokeColors : ['#000000'], [strokeColors]);
|
|
57
|
+
const hasGradient = colors.length > 1;
|
|
58
|
+
|
|
59
|
+
// Refs for animation loop access
|
|
60
|
+
const propsRef = useRef({
|
|
61
|
+
map,
|
|
62
|
+
colors,
|
|
63
|
+
strokeWidth,
|
|
64
|
+
hasGradient,
|
|
65
|
+
zIndex: resolvedZIndex
|
|
66
|
+
});
|
|
67
|
+
const [mapReady, setMapReady] = useState(!!map);
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
propsRef.current = {
|
|
70
|
+
map,
|
|
71
|
+
colors,
|
|
72
|
+
strokeWidth,
|
|
73
|
+
hasGradient,
|
|
74
|
+
zIndex: resolvedZIndex
|
|
75
|
+
};
|
|
76
|
+
if (map && !mapReady) setMapReady(true);
|
|
77
|
+
}, [map, colors, strokeWidth, hasGradient, resolvedZIndex, mapReady]);
|
|
78
|
+
const updatePath = useCallback(path => {
|
|
79
|
+
const {
|
|
80
|
+
map: currentMap,
|
|
81
|
+
colors: currentColors,
|
|
82
|
+
strokeWidth: currentStrokeWidth,
|
|
83
|
+
hasGradient: currentHasGradient,
|
|
84
|
+
zIndex: currentZIndex
|
|
85
|
+
} = propsRef.current;
|
|
86
|
+
if (!currentMap || path.length < 2) return;
|
|
87
|
+
const neededSegments = currentHasGradient ? path.length - 1 : 1;
|
|
88
|
+
const existing = polylinesRef.current;
|
|
89
|
+
|
|
90
|
+
// Update or create segments
|
|
91
|
+
for (let i = 0; i < neededSegments; i++) {
|
|
92
|
+
const segmentPath = currentHasGradient ? [path[i], path[i + 1]] : path;
|
|
93
|
+
const color = currentHasGradient ? getGradientColor(currentColors, i / (path.length - 1)) : currentColors[0];
|
|
94
|
+
const segment = existing[i];
|
|
95
|
+
if (segment) {
|
|
96
|
+
segment.setPath(segmentPath);
|
|
97
|
+
segment.setOptions({
|
|
98
|
+
strokeColor: color
|
|
99
|
+
});
|
|
100
|
+
} else {
|
|
101
|
+
existing.push(new google.maps.Polyline({
|
|
102
|
+
path: segmentPath,
|
|
103
|
+
strokeColor: color,
|
|
104
|
+
strokeWeight: currentStrokeWidth,
|
|
105
|
+
strokeOpacity: 1,
|
|
106
|
+
zIndex: currentZIndex,
|
|
107
|
+
map: currentMap
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Remove extra segments
|
|
113
|
+
for (let i = neededSegments; i < existing.length; i++) {
|
|
114
|
+
existing[i]?.setMap(null);
|
|
115
|
+
}
|
|
116
|
+
existing.length = neededSegments;
|
|
117
|
+
}, []);
|
|
118
|
+
|
|
119
|
+
// Cleanup on unmount
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
const polylines = polylinesRef.current;
|
|
122
|
+
return () => {
|
|
123
|
+
cancelAnimationFrame(animationRef.current);
|
|
124
|
+
polylines.forEach(p => p.setMap(null));
|
|
125
|
+
};
|
|
126
|
+
}, []);
|
|
127
|
+
|
|
128
|
+
// Pause/resume animation during drag
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
isPausedRef.current = isDragging;
|
|
131
|
+
}, [isDragging]);
|
|
132
|
+
|
|
133
|
+
// Main effect
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
if (!propsRef.current.map || coordinates.length === 0) return;
|
|
136
|
+
const fullPath = coordinates.map(c => ({
|
|
137
|
+
lat: c.latitude,
|
|
138
|
+
lng: c.longitude
|
|
139
|
+
}));
|
|
140
|
+
cancelAnimationFrame(animationRef.current);
|
|
141
|
+
if (!animated) {
|
|
142
|
+
updatePath(fullPath);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const duration = animatedOptions?.duration ?? DEFAULT_DURATION;
|
|
146
|
+
const easing = animatedOptions?.easing ?? 'linear';
|
|
147
|
+
const trailLength = Math.max(0.01, Math.min(1, animatedOptions?.trailLength ?? 1));
|
|
148
|
+
const delay = animatedOptions?.delay ?? 0;
|
|
149
|
+
const totalPoints = fullPath.length;
|
|
150
|
+
const useTrailMode = trailLength < 1;
|
|
151
|
+
const cycleDuration = useTrailMode ? duration : duration * 2;
|
|
152
|
+
let startTime = null;
|
|
153
|
+
let delayRemaining = delay;
|
|
154
|
+
const animate = time => {
|
|
155
|
+
if (isPausedRef.current) {
|
|
156
|
+
startTime = null;
|
|
157
|
+
animationRef.current = requestAnimationFrame(animate);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (startTime === null) {
|
|
161
|
+
startTime = time;
|
|
162
|
+
}
|
|
163
|
+
const elapsed = time - startTime;
|
|
164
|
+
if (delayRemaining > 0) {
|
|
165
|
+
if (elapsed < delayRemaining) {
|
|
166
|
+
animationRef.current = requestAnimationFrame(animate);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
startTime = time - (elapsed - delayRemaining);
|
|
170
|
+
delayRemaining = 0;
|
|
171
|
+
}
|
|
172
|
+
const rawProgress = (time - startTime) % cycleDuration / duration;
|
|
173
|
+
const maxProgress = useTrailMode ? 1 : 2;
|
|
174
|
+
const clampedProgress = Math.min(rawProgress, maxProgress);
|
|
175
|
+
const easedProgress = applyEasing(clampedProgress / maxProgress, easing) * maxProgress;
|
|
176
|
+
let startIdx;
|
|
177
|
+
let endIdx;
|
|
178
|
+
if (useTrailMode) {
|
|
179
|
+
endIdx = easedProgress * totalPoints;
|
|
180
|
+
startIdx = Math.max(0, endIdx - trailLength * totalPoints);
|
|
181
|
+
} else {
|
|
182
|
+
startIdx = easedProgress <= 1 ? 0 : (easedProgress - 1) * totalPoints;
|
|
183
|
+
endIdx = easedProgress <= 1 ? easedProgress * totalPoints : totalPoints;
|
|
184
|
+
}
|
|
185
|
+
if (rawProgress >= maxProgress) {
|
|
186
|
+
delayRemaining = delay;
|
|
187
|
+
startTime = time;
|
|
188
|
+
}
|
|
189
|
+
const partialPath = [];
|
|
190
|
+
const startFloor = Math.floor(startIdx);
|
|
191
|
+
const endFloor = Math.floor(endIdx);
|
|
192
|
+
|
|
193
|
+
// Start point (interpolated)
|
|
194
|
+
if (startFloor < totalPoints) {
|
|
195
|
+
const frac = startIdx - startFloor;
|
|
196
|
+
const from = fullPath[startFloor];
|
|
197
|
+
const to = fullPath[Math.min(startFloor + 1, totalPoints - 1)];
|
|
198
|
+
partialPath.push(frac > 0 ? {
|
|
199
|
+
lat: from.lat + (to.lat - from.lat) * frac,
|
|
200
|
+
lng: from.lng + (to.lng - from.lng) * frac
|
|
201
|
+
} : from);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Middle points
|
|
205
|
+
for (let i = startFloor + 1; i <= Math.min(endFloor, totalPoints - 1); i++) {
|
|
206
|
+
partialPath.push(fullPath[i]);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// End point (interpolated)
|
|
210
|
+
if (endFloor < totalPoints - 1) {
|
|
211
|
+
const frac = endIdx - endFloor;
|
|
212
|
+
const from = fullPath[endFloor];
|
|
213
|
+
const to = fullPath[endFloor + 1];
|
|
214
|
+
if (frac > 0) {
|
|
215
|
+
partialPath.push({
|
|
216
|
+
lat: from.lat + (to.lat - from.lat) * frac,
|
|
217
|
+
lng: from.lng + (to.lng - from.lng) * frac
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
updatePath(partialPath);
|
|
222
|
+
animationRef.current = requestAnimationFrame(animate);
|
|
223
|
+
};
|
|
224
|
+
animationRef.current = requestAnimationFrame(animate);
|
|
225
|
+
return () => cancelAnimationFrame(animationRef.current);
|
|
226
|
+
}, [coordinates, animated, animatedOptions, hasGradient, updatePath, mapReady]);
|
|
227
|
+
return null;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=Polyline.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useMemo","useRef","useState","useMapContext","DEFAULT_DURATION","applyEasing","t","easing","interpolateColor","color1","color2","hex","c","parseInt","r1","slice","g1","b1","r2","g2","b2","r","Math","round","g","b","toString","padStart","getGradientColor","colors","position","length","scaledPos","index","floor","Polyline","coordinates","strokeColors","strokeWidth","animated","animatedOptions","zIndex","resolvedZIndex","map","isDragging","polylinesRef","animationRef","isPausedRef","hasGradient","propsRef","mapReady","setMapReady","current","updatePath","path","currentMap","currentColors","currentStrokeWidth","currentHasGradient","currentZIndex","neededSegments","existing","i","segmentPath","color","segment","setPath","setOptions","strokeColor","push","google","maps","strokeWeight","strokeOpacity","setMap","polylines","cancelAnimationFrame","forEach","p","fullPath","lat","latitude","lng","longitude","duration","trailLength","max","min","delay","totalPoints","useTrailMode","cycleDuration","startTime","delayRemaining","animate","time","requestAnimationFrame","elapsed","rawProgress","maxProgress","clampedProgress","easedProgress","startIdx","endIdx","partialPath","startFloor","endFloor","frac","from","to"],"sourceRoot":"../../../src","sources":["components/Polyline.web.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACzE,SAASC,aAAa,QAAQ,uBAAoB;AAGlD,MAAMC,gBAAgB,GAAG,IAAI;AAE7B,SAASC,WAAWA,CAACC,CAAS,EAAEC,MAAsB,GAAG,QAAQ,EAAU;EACzE,QAAQA,MAAM;IACZ,KAAK,QAAQ;MACX,OAAOD,CAAC,GAAGA,CAAC;IACd,KAAK,SAAS;MACZ,OAAOA,CAAC,IAAI,CAAC,GAAGA,CAAC,CAAC;IACpB,KAAK,WAAW;MACd,OAAOA,CAAC,GAAG,GAAG,GAAG,CAAC,GAAGA,CAAC,GAAGA,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,IAAIA,CAAC;IACnD;MACE,OAAOA,CAAC;EACZ;AACF;AAEA,SAASE,gBAAgBA,CAACC,MAAc,EAAEC,MAAc,EAAEJ,CAAS,EAAU;EAC3E,MAAMK,GAAG,GAAIC,CAAS,IAAKC,QAAQ,CAACD,CAAC,EAAE,EAAE,CAAC;EAC1C,MAAME,EAAE,GAAGH,GAAG,CAACF,MAAM,CAACM,KAAK,CAAC,CAAC,EAA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CAAC7B,GAAG,GAAG4B,IAAI,CAAC5B,GAAG,IAAI2B,IAAI;YAC1CzB,GAAG,EAAE0B,IAAI,CAAC1B,GAAG,GAAG,CAAC2B,EAAE,CAAC3B,GAAG,GAAG0B,IAAI,CAAC1B,GAAG,IAAIyB;UACxC,CAAC,CAAC;QACJ;MACF;MAEAtD,UAAU,CAACmD,WAAW,CAAC;MACvB1D,YAAY,CAACM,OAAO,GAAG4C,qBAAqB,CAACF,OAAO,CAAC;IACvD,CAAC;IAEDhD,YAAY,CAACM,OAAO,GAAG4C,qBAAqB,CAACF,OAAO,CAAC;IAErD,OAAO,MAAMlB,oBAAoB,CAAC9B,YAAY,CAACM,OAAO,CAAC;EACzD,CAAC,EAAE,CACDhB,WAAW,EACXG,QAAQ,EACRC,eAAe,EACfQ,WAAW,EACXK,UAAU,EACVH,QAAQ,CACT,CAAC;EAEF,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["Marker","Polyline"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;AAEjC,SAASC,QAAQ,QAAQ,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Marker","Polyline"],"sourceRoot":"../../../src","sources":["components/index.web.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,iBAAc;AACrC,SAASC,QAAQ,QAAQ,mBAAgB","ignoreList":[]}
|
package/lib/module/fabric/{LuggGoogleMapViewNativeComponent.ts → LuggMapViewNativeComponent.ts}
RENAMED
|
@@ -2,6 +2,7 @@ import { codegenNativeComponent, codegenNativeCommands } from 'react-native';
|
|
|
2
2
|
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
3
|
import type {
|
|
4
4
|
Double,
|
|
5
|
+
WithDefault,
|
|
5
6
|
DirectEventHandler,
|
|
6
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
8
|
|
|
@@ -38,6 +39,7 @@ export interface CameraIdleEvent {
|
|
|
38
39
|
export interface ReadyEvent {}
|
|
39
40
|
|
|
40
41
|
export interface NativeProps extends ViewProps {
|
|
42
|
+
provider?: WithDefault<'google' | 'apple', 'google'>;
|
|
41
43
|
mapId?: string;
|
|
42
44
|
initialCoordinate?: Coordinate;
|
|
43
45
|
initialZoom?: Double;
|
|
@@ -47,8 +49,10 @@ export interface NativeProps extends ViewProps {
|
|
|
47
49
|
scrollEnabled?: boolean;
|
|
48
50
|
rotateEnabled?: boolean;
|
|
49
51
|
pitchEnabled?: boolean;
|
|
50
|
-
|
|
52
|
+
edgeInsets?: EdgeInsets;
|
|
51
53
|
userLocationEnabled?: boolean;
|
|
54
|
+
userLocationButtonEnabled?: boolean;
|
|
55
|
+
theme?: WithDefault<'light' | 'dark' | 'system', 'system'>;
|
|
52
56
|
onCameraMove?: DirectEventHandler<CameraMoveEvent>;
|
|
53
57
|
onCameraIdle?: DirectEventHandler<CameraIdleEvent>;
|
|
54
58
|
onReady?: DirectEventHandler<ReadyEvent>;
|
|
@@ -67,18 +71,26 @@ interface NativeCommands {
|
|
|
67
71
|
fitCoordinates: (
|
|
68
72
|
viewRef: React.ElementRef<ComponentType>,
|
|
69
73
|
coordinates: Coordinate[],
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
edgeInsetsTop: Double,
|
|
75
|
+
edgeInsetsLeft: Double,
|
|
76
|
+
edgeInsetsBottom: Double,
|
|
77
|
+
edgeInsetsRight: Double,
|
|
78
|
+
duration: Double
|
|
79
|
+
) => void;
|
|
80
|
+
setEdgeInsets: (
|
|
81
|
+
viewRef: React.ElementRef<ComponentType>,
|
|
82
|
+
top: Double,
|
|
83
|
+
left: Double,
|
|
84
|
+
bottom: Double,
|
|
85
|
+
right: Double,
|
|
74
86
|
duration: Double
|
|
75
87
|
) => void;
|
|
76
88
|
}
|
|
77
89
|
|
|
78
90
|
export const Commands = codegenNativeCommands<NativeCommands>({
|
|
79
|
-
supportedCommands: ['moveCamera', 'fitCoordinates'],
|
|
91
|
+
supportedCommands: ['moveCamera', 'fitCoordinates', 'setEdgeInsets'],
|
|
80
92
|
});
|
|
81
93
|
|
|
82
94
|
export default codegenNativeComponent<NativeProps>(
|
|
83
|
-
'
|
|
95
|
+
'LuggMapView'
|
|
84
96
|
) as ComponentType;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { codegenNativeComponent } from 'react-native';
|
|
2
2
|
import type { ViewProps, HostComponent } from 'react-native';
|
|
3
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
Double,
|
|
5
|
+
WithDefault,
|
|
6
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
7
|
|
|
5
8
|
export interface Coordinate {
|
|
6
9
|
latitude: Double;
|
|
@@ -18,6 +21,9 @@ export interface NativeProps extends ViewProps {
|
|
|
18
21
|
title?: string;
|
|
19
22
|
description?: string;
|
|
20
23
|
anchor?: Point;
|
|
24
|
+
rotate?: WithDefault<Double, 0>;
|
|
25
|
+
scale?: WithDefault<Double, 1>;
|
|
26
|
+
rasterize?: WithDefault<boolean, true>;
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -7,11 +7,19 @@ export interface Coordinate {
|
|
|
7
7
|
longitude: Double;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export interface AnimatedOptions {
|
|
11
|
+
duration?: Double;
|
|
12
|
+
easing?: string;
|
|
13
|
+
trailLength?: Double;
|
|
14
|
+
delay?: Double;
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
export interface NativeProps extends ViewProps {
|
|
11
18
|
coordinates: ReadonlyArray<Coordinate>;
|
|
12
19
|
strokeColors?: ReadonlyArray<ColorValue>;
|
|
13
20
|
strokeWidth?: Double;
|
|
14
21
|
animated?: boolean;
|
|
22
|
+
animatedOptions?: AnimatedOptions;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
export default codegenNativeComponent<NativeProps>(
|
package/lib/module/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export { MapView } from
|
|
4
|
-
export
|
|
3
|
+
export { MapView } from './MapView';
|
|
4
|
+
export { MapProvider } from './MapProvider';
|
|
5
|
+
export { Marker } from './components';
|
|
6
|
+
export { Polyline } from './components';
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MapView"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,
|
|
1
|
+
{"version":3,"names":["MapView","MapProvider","Marker","Polyline"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,WAAW,QAAQ,eAAe;AAE3C,SAASC,MAAM,QAAQ,cAAc;AAErC,SAASC,QAAQ,QAAQ,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MapView","MapProvider","Marker","Polyline"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,kBAAe;AACvC,SAASC,WAAW,QAAQ,sBAAmB;AAE/C,SAASC,MAAM,QAAQ,2BAAwB;AAE/C,SAASC,QAAQ,QAAQ,2BAAwB","ignoreList":[]}
|
|
@@ -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,11 @@
|
|
|
1
|
+
import type { MapProviderProps } from './MapProvider.types';
|
|
2
|
+
export declare const MapContext: import("react").Context<{
|
|
3
|
+
map: google.maps.Map | null;
|
|
4
|
+
isDragging: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useMapContext: () => {
|
|
7
|
+
map: google.maps.Map | null;
|
|
8
|
+
isDragging: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function MapProvider({ apiKey, children }: MapProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# 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":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,UAAU;SAChB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;gBACf,OAAO;EACe,CAAC;AAErC,eAAO,MAAM,aAAa;SAJnB,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI;gBACf,OAAO;CAGoC,CAAC;AAE1D,wBAAgB,WAAW,CAAC,EAAE,MAAW,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAEtE"}
|
|
@@ -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
|
-
|
|
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;
|
|
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;CAkDP"}
|
|
@@ -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 } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Options for moving the camera
|
|
6
|
-
* @default duration -1
|
|
7
6
|
*/
|
|
8
7
|
export interface MoveCameraOptions {
|
|
9
|
-
zoom
|
|
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
|
|
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
|
|
@@ -83,15 +88,26 @@ export interface MapViewProps extends ViewProps {
|
|
|
83
88
|
*/
|
|
84
89
|
pitchEnabled?: boolean;
|
|
85
90
|
/**
|
|
86
|
-
* Map content
|
|
91
|
+
* Map content edge insets
|
|
87
92
|
*/
|
|
88
|
-
|
|
93
|
+
edgeInsets?: EdgeInsets;
|
|
89
94
|
/**
|
|
90
95
|
* Show current user location on the map.
|
|
91
96
|
* Requires location permission to be granted, otherwise silently ignored.
|
|
92
97
|
* @default false
|
|
93
98
|
*/
|
|
94
99
|
userLocationEnabled?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Show native my-location button when userLocationEnabled is true (Android only).
|
|
102
|
+
* @default false
|
|
103
|
+
* @platform android
|
|
104
|
+
*/
|
|
105
|
+
userLocationButtonEnabled?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Map color theme
|
|
108
|
+
* @default 'system'
|
|
109
|
+
*/
|
|
110
|
+
theme?: MapTheme;
|
|
95
111
|
/**
|
|
96
112
|
* Called when camera moves
|
|
97
113
|
*/
|
|
@@ -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;
|
|
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,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtE,cAAc,CACZ,WAAW,EAAE,UAAU,EAAE,EACzB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,IAAI,CAAC;IACR,aAAa,CA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,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapView.web.d.ts","sourceRoot":"","sources":["../../../src/MapView.web.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAoEzB,eAAO,MAAM,OAAO,qGA0QlB,CAAC"}
|
|
@@ -22,12 +22,36 @@ export interface MarkerProps {
|
|
|
22
22
|
* Anchor point for custom marker views
|
|
23
23
|
*/
|
|
24
24
|
anchor?: Point;
|
|
25
|
+
/**
|
|
26
|
+
* Z-index for marker ordering. Higher values render on top.
|
|
27
|
+
*/
|
|
28
|
+
zIndex?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Rotation angle in degrees clockwise from north.
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
rotate?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Scale factor for the marker.
|
|
36
|
+
* @default 1
|
|
37
|
+
*/
|
|
38
|
+
scale?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Rasterize custom marker view to bitmap for better performance.
|
|
41
|
+
* Set to false if you need live view updates (e.g., animations).
|
|
42
|
+
* @platform ios, android
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
rasterize?: boolean;
|
|
25
46
|
/**
|
|
26
47
|
* Custom marker view
|
|
27
48
|
*/
|
|
28
49
|
children?: ReactNode;
|
|
29
50
|
}
|
|
30
|
-
export declare class Marker extends React.
|
|
51
|
+
export declare class Marker extends React.PureComponent<MarkerProps> {
|
|
52
|
+
private getStyle;
|
|
53
|
+
private _cachedZIndex;
|
|
54
|
+
private _cachedStyle;
|
|
31
55
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
32
56
|
}
|
|
33
57
|
//# 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,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,qBAAa,MAAO,SAAQ,KAAK,CAAC,
|
|
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;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,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;CA8BP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Marker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Marker.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,wBAAgB,MAAM,CAAC,EACrB,UAAU,EACV,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,2CAmBb"}
|