@heycar/heycars-map 2.15.0-domestic2 → 2.15.0-sgn1
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 +15 -47
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +1 -2
- package/dist/v2/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
- package/dist/v2/Demo/DemoBusinessTaxiEnd.js +2 -9
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -4
- package/dist/v2/Demo/DemoBusinessTaxiService.js +1 -19
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -3
- package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +6 -2
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -80
- package/dist/v2/chunks/{BusinessRecomendPlaceMap.eebd0822.js → BusinessRecomendPlaceMap.ed4b75d5.js} +30 -11
- package/dist/{v3/chunks/Loading.4b53c31f.js → v2/chunks/Loading.70dfc720.js} +30 -34
- package/dist/v2/components/Loading/Loading.js +1 -1
- package/dist/v2/components/Loading/index.js +1 -1
- package/dist/v2/components/MapProvider/MapProvider.js +10 -21
- package/dist/v2/hooks/useMapCoordinatify.d.ts +1 -2
- package/dist/v2/hooks/useMapCoordinatify.js +1 -6
- package/dist/v2/hooks/useMapFitZoom.d.ts +6 -0
- package/dist/v2/hooks/useMapFitZoom.js +22 -2
- package/dist/v2/hooks/useMapLoader.js +3 -3
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/types/interface.d.ts +0 -12
- package/dist/v2/utils/geometryPolygon.d.ts +0 -9
- package/dist/v2/utils/geometryPolygon.js +0 -19
- package/dist/v2/utils/log.js +1 -1
- package/dist/v2/utils/platform.d.ts +1 -2
- package/dist/v2/utils/platform.js +1 -2
- package/dist/v2/utils/typeChecking.d.ts +1 -7
- package/dist/v2/utils/typeChecking.js +0 -18
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +1 -2
- package/dist/v3/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
- package/dist/v3/Demo/DemoBusinessTaxiEnd.js +2 -9
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -4
- package/dist/v3/Demo/DemoBusinessTaxiService.js +1 -19
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -3
- package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +6 -2
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -62
- package/dist/v3/chunks/{BusinessRecomendPlaceMap.71c439c6.js → BusinessRecomendPlaceMap.4ec9353a.js} +30 -9
- package/dist/{v2/chunks/Loading.8aa3aad3.js → v3/chunks/Loading.4c949ec9.js} +27 -47
- package/dist/v3/components/Loading/Loading.js +1 -1
- package/dist/v3/components/Loading/index.js +1 -1
- package/dist/v3/components/MapProvider/MapProvider.js +10 -21
- package/dist/v3/hooks/useMapCoordinatify.d.ts +1 -2
- package/dist/v3/hooks/useMapCoordinatify.js +1 -6
- package/dist/v3/hooks/useMapFitZoom.d.ts +6 -0
- package/dist/v3/hooks/useMapFitZoom.js +22 -2
- package/dist/v3/hooks/useMapLoader.js +3 -3
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v3/index.js +1 -1
- package/dist/v3/types/interface.d.ts +0 -12
- package/dist/v3/utils/geometryPolygon.d.ts +0 -9
- package/dist/v3/utils/geometryPolygon.js +0 -19
- package/dist/v3/utils/log.js +1 -1
- package/dist/v3/utils/platform.d.ts +1 -2
- package/dist/v3/utils/platform.js +1 -2
- package/dist/v3/utils/typeChecking.d.ts +1 -7
- package/dist/v3/utils/typeChecking.js +0 -18
- package/package.json +1 -1
- package/dist/v2/Demo/demo.data.mock.d.ts +0 -4
- package/dist/v2/Demo/demo.data.mock.js +0 -1194
- package/dist/v2/business-components/TaxiCar/RandomCars.d.ts +0 -6
- package/dist/v2/business-components/TaxiCar/RandomCars.js +0 -47
- package/dist/v3/Demo/demo.data.mock.d.ts +0 -4
- package/dist/v3/Demo/demo.data.mock.js +0 -1194
- package/dist/v3/business-components/TaxiCar/RandomCars.d.ts +0 -8
- package/dist/v3/business-components/TaxiCar/RandomCars.js +0 -45
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MROP } from "../../hooks/useOverlay";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Place, Point, TrackPoint } from "../../types/interface";
|
|
3
3
|
import { type DrivingRouteRenderProps } from "../DrivingRoute";
|
|
4
4
|
type SectionDispatchingProps = Required<MROP> & {
|
|
5
5
|
title: string;
|
|
@@ -11,7 +11,6 @@ type SectionConfirmedProps = Required<MROP> & {
|
|
|
11
11
|
passengerAngle?: string;
|
|
12
12
|
from: Place;
|
|
13
13
|
to: Place;
|
|
14
|
-
routePath?: Point[];
|
|
15
14
|
};
|
|
16
15
|
export declare const SectionConfirmed: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionConfirmedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionConfirmedProps, Required<SectionConfirmedProps>>, never, SectionConfirmedProps>;
|
|
17
16
|
interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceProps {
|
|
@@ -25,7 +24,6 @@ type SectionDriverStartServiceProps = Required<MROP> & {
|
|
|
25
24
|
carPosition?: Point;
|
|
26
25
|
carAngle?: number;
|
|
27
26
|
carTrackPositions?: TrackPoint[];
|
|
28
|
-
carRoute?: ExternalRoute;
|
|
29
27
|
from: Place;
|
|
30
28
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
31
29
|
};
|
|
@@ -35,7 +33,6 @@ type SectionBookDispatchedProps = Required<MROP> & {
|
|
|
35
33
|
passengerAngle?: string;
|
|
36
34
|
from: Place;
|
|
37
35
|
to: Place;
|
|
38
|
-
routePath?: Point[];
|
|
39
36
|
title?: string;
|
|
40
37
|
};
|
|
41
38
|
export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, never, SectionBookDispatchedProps>;
|
|
@@ -53,7 +50,6 @@ type SectionInServiceProps = Required<MROP> & {
|
|
|
53
50
|
carPosition?: Point;
|
|
54
51
|
carAngle?: number;
|
|
55
52
|
carTrackPositions?: TrackPoint[];
|
|
56
|
-
carRoute?: ExternalRoute;
|
|
57
53
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
58
54
|
};
|
|
59
55
|
export declare const SectionInService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionInServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionInServiceProps, Required<SectionInServiceProps>>, never, SectionInServiceProps>;
|
|
@@ -65,7 +61,6 @@ export declare const SectionCanceled: import("vue").DefineComponent<import("vue3
|
|
|
65
61
|
export type SectionEndServiceProps = Required<MROP> & {
|
|
66
62
|
from: Place;
|
|
67
63
|
to: Place;
|
|
68
|
-
routePath?: Point[];
|
|
69
64
|
};
|
|
70
65
|
export declare const SectionEndService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionEndServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionEndServiceProps, Required<SectionEndServiceProps>>, never, SectionEndServiceProps>;
|
|
71
66
|
export {};
|
|
@@ -77,17 +77,12 @@ const SectionConfirmed = defineSetup("SectionConfirmed", function(props) {
|
|
|
77
77
|
to: toPlace,
|
|
78
78
|
passengerPosition,
|
|
79
79
|
passengerAngle,
|
|
80
|
-
routePath,
|
|
81
80
|
registerOverlay
|
|
82
81
|
} = props;
|
|
83
82
|
const from = place2point(fromPlace);
|
|
84
83
|
const to = place2point(toPlace);
|
|
85
84
|
const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
|
|
86
|
-
return h("div", [
|
|
87
|
-
"attrs": {
|
|
88
|
-
"path": routePath
|
|
89
|
-
}
|
|
90
|
-
}) : h(DrivingRoute, {
|
|
85
|
+
return h("div", [h(DrivingRoute, {
|
|
91
86
|
"attrs": {
|
|
92
87
|
"to": to,
|
|
93
88
|
"from": from,
|
|
@@ -162,14 +157,12 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
162
157
|
apiMapDistance
|
|
163
158
|
} = useMapGeometry();
|
|
164
159
|
return () => {
|
|
165
|
-
var _a;
|
|
166
160
|
const {
|
|
167
161
|
from: fromPlace,
|
|
168
162
|
relayTo: relayToPlace,
|
|
169
163
|
carPosition,
|
|
170
164
|
carAngle,
|
|
171
165
|
carTrackPositions,
|
|
172
|
-
carRoute,
|
|
173
166
|
passengerPosition,
|
|
174
167
|
passengerAngle,
|
|
175
168
|
relayToTitle,
|
|
@@ -213,21 +206,7 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
213
206
|
"label": relayToTitle,
|
|
214
207
|
"hideIcon": true
|
|
215
208
|
}
|
|
216
|
-
}),
|
|
217
|
-
"attrs": {
|
|
218
|
-
"path": carRoute.path
|
|
219
|
-
}
|
|
220
|
-
}), h(TaxiCar, {
|
|
221
|
-
"attrs": {
|
|
222
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
223
|
-
"angle": carAngle,
|
|
224
|
-
"title": renderTitle({
|
|
225
|
-
distance: carRoute.distance,
|
|
226
|
-
duration: carRoute.duration
|
|
227
|
-
}),
|
|
228
|
-
"registerOverlay": fittableRegistryOverlay
|
|
229
|
-
}
|
|
230
|
-
})] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : h(DeviationCorrectionDrivingRoute, {
|
|
209
|
+
}), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : h(DeviationCorrectionDrivingRoute, {
|
|
231
210
|
"attrs": {
|
|
232
211
|
"tracks": carTrackPositions,
|
|
233
212
|
"to": from,
|
|
@@ -240,7 +219,7 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
240
219
|
duration,
|
|
241
220
|
trafficJams
|
|
242
221
|
}) => {
|
|
243
|
-
var
|
|
222
|
+
var _a;
|
|
244
223
|
return [relayTo ? h(TrafficDrivingLine, {
|
|
245
224
|
"attrs": {
|
|
246
225
|
"path": path,
|
|
@@ -248,7 +227,7 @@ const SectionDriverStartRelayService = defineSetup("SectionDriverStartRelayServi
|
|
|
248
227
|
}
|
|
249
228
|
}) : null, h(TaxiCar, {
|
|
250
229
|
"attrs": {
|
|
251
|
-
"position": (
|
|
230
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
252
231
|
"angle": angle != null ? angle : carAngle,
|
|
253
232
|
"title": renderTitle({
|
|
254
233
|
distance,
|
|
@@ -299,13 +278,11 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
299
278
|
apiMapDistance
|
|
300
279
|
} = useMapGeometry();
|
|
301
280
|
return () => {
|
|
302
|
-
var _a;
|
|
303
281
|
const {
|
|
304
282
|
from: fromPlace,
|
|
305
283
|
carPosition,
|
|
306
284
|
carAngle,
|
|
307
285
|
carTrackPositions,
|
|
308
|
-
carRoute,
|
|
309
286
|
passengerPosition,
|
|
310
287
|
passengerAngle,
|
|
311
288
|
renderTitle
|
|
@@ -333,21 +310,7 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
333
310
|
"label": fromPlace.displayName,
|
|
334
311
|
"hideIcon": true
|
|
335
312
|
}
|
|
336
|
-
}),
|
|
337
|
-
"attrs": {
|
|
338
|
-
"path": carRoute.path
|
|
339
|
-
}
|
|
340
|
-
}), h(TaxiCar, {
|
|
341
|
-
"attrs": {
|
|
342
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
343
|
-
"angle": carAngle,
|
|
344
|
-
"title": renderTitle({
|
|
345
|
-
distance: carRoute.distance,
|
|
346
|
-
duration: carRoute.duration
|
|
347
|
-
}),
|
|
348
|
-
"registerOverlay": fittableRegistryOverlay
|
|
349
|
-
}
|
|
350
|
-
})] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? h(DeviationCorrectionDrivingRoute, {
|
|
313
|
+
}), !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? h(DeviationCorrectionDrivingRoute, {
|
|
351
314
|
"attrs": {
|
|
352
315
|
"tracks": carTrackPositions,
|
|
353
316
|
"to": from,
|
|
@@ -359,7 +322,7 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
359
322
|
duration,
|
|
360
323
|
trafficJams
|
|
361
324
|
}) => {
|
|
362
|
-
var
|
|
325
|
+
var _a;
|
|
363
326
|
return [h(TrafficDrivingLine, {
|
|
364
327
|
"attrs": {
|
|
365
328
|
"path": path,
|
|
@@ -367,7 +330,7 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
367
330
|
}
|
|
368
331
|
}), h(TaxiCar, {
|
|
369
332
|
"attrs": {
|
|
370
|
-
"position": (
|
|
333
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
371
334
|
"angle": angle != null ? angle : carAngle,
|
|
372
335
|
"title": renderTitle({
|
|
373
336
|
distance,
|
|
@@ -385,10 +348,10 @@ const SectionDriverStartService = defineSetup("SectionDriverStartService", funct
|
|
|
385
348
|
path: graspRoadPath,
|
|
386
349
|
angle
|
|
387
350
|
}) => {
|
|
388
|
-
var
|
|
351
|
+
var _a;
|
|
389
352
|
return h(TaxiCar, {
|
|
390
353
|
"attrs": {
|
|
391
|
-
"position": (
|
|
354
|
+
"position": (_a = graspRoadPath[graspRoadPath.length - 1]) != null ? _a : carPosition,
|
|
392
355
|
"angle": angle != null ? angle : carAngle,
|
|
393
356
|
"title": renderTitle({
|
|
394
357
|
distance: carDistance,
|
|
@@ -438,17 +401,12 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
|
|
|
438
401
|
title,
|
|
439
402
|
passengerPosition,
|
|
440
403
|
passengerAngle,
|
|
441
|
-
routePath,
|
|
442
404
|
registerOverlay
|
|
443
405
|
} = props;
|
|
444
406
|
const from = place2point(fromPlace);
|
|
445
407
|
const to = place2point(toPlace);
|
|
446
408
|
const passengerDistance = passengerPosition ? apiMapDistance(passengerPosition, from) : void 0;
|
|
447
|
-
return h("div", [
|
|
448
|
-
"attrs": {
|
|
449
|
-
"path": routePath
|
|
450
|
-
}
|
|
451
|
-
}) : h(DrivingRoute, {
|
|
409
|
+
return h("div", [h(DrivingRoute, {
|
|
452
410
|
"attrs": {
|
|
453
411
|
"to": to,
|
|
454
412
|
"from": from,
|
|
@@ -607,13 +565,11 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
607
565
|
immediate: true
|
|
608
566
|
});
|
|
609
567
|
return () => {
|
|
610
|
-
var _a;
|
|
611
568
|
const {
|
|
612
569
|
to: toPlace,
|
|
613
570
|
carPosition,
|
|
614
571
|
carAngle,
|
|
615
572
|
carTrackPositions,
|
|
616
|
-
carRoute,
|
|
617
573
|
renderTitle
|
|
618
574
|
} = props;
|
|
619
575
|
const to = place2point(toPlace);
|
|
@@ -624,21 +580,7 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
624
580
|
apiMapDistance
|
|
625
581
|
} = useMapGeometry();
|
|
626
582
|
const carDistance = carPosition ? apiMapDistance(carPosition, to) : void 0;
|
|
627
|
-
return h("div", [
|
|
628
|
-
"attrs": {
|
|
629
|
-
"path": carRoute.path
|
|
630
|
-
}
|
|
631
|
-
}), h(TaxiCar, {
|
|
632
|
-
"attrs": {
|
|
633
|
-
"position": (_a = carRoute.path[0]) != null ? _a : carPosition,
|
|
634
|
-
"angle": carAngle,
|
|
635
|
-
"title": renderTitle({
|
|
636
|
-
distance: carRoute.distance,
|
|
637
|
-
duration: carRoute.duration
|
|
638
|
-
}),
|
|
639
|
-
"registerOverlay": fittableRegistryOverlay
|
|
640
|
-
}
|
|
641
|
-
})] : !(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? h(DeviationCorrectionDrivingRoute, {
|
|
583
|
+
return h("div", [!(carTrackPositions == null ? void 0 : carTrackPositions.length) || !carDistance ? null : carDistance > CAR_DISTANCE_MIN ? h(DeviationCorrectionDrivingRoute, {
|
|
642
584
|
"attrs": {
|
|
643
585
|
"tracks": carTrackPositions,
|
|
644
586
|
"to": to,
|
|
@@ -650,7 +592,7 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
650
592
|
duration,
|
|
651
593
|
trafficJams
|
|
652
594
|
}) => {
|
|
653
|
-
var
|
|
595
|
+
var _a;
|
|
654
596
|
return [h(TrafficDrivingLine, {
|
|
655
597
|
"attrs": {
|
|
656
598
|
"path": path,
|
|
@@ -658,7 +600,7 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
658
600
|
}
|
|
659
601
|
}), h(TaxiCar, {
|
|
660
602
|
"attrs": {
|
|
661
|
-
"position": (
|
|
603
|
+
"position": (_a = path[0]) != null ? _a : carPosition,
|
|
662
604
|
"angle": angle != null ? angle : carAngle,
|
|
663
605
|
"title": renderTitle({
|
|
664
606
|
distance,
|
|
@@ -676,10 +618,10 @@ const SectionInService = defineSetup("SectionInService", function(props) {
|
|
|
676
618
|
path: graspRoadPath,
|
|
677
619
|
angle
|
|
678
620
|
}) => {
|
|
679
|
-
var
|
|
621
|
+
var _a;
|
|
680
622
|
return h(TaxiCar, {
|
|
681
623
|
"attrs": {
|
|
682
|
-
"position": (
|
|
624
|
+
"position": (_a = graspRoadPath[graspRoadPath.length - 1]) != null ? _a : carPosition,
|
|
683
625
|
"angle": angle != null ? angle : carAngle,
|
|
684
626
|
"title": renderTitle({
|
|
685
627
|
distance: carDistance,
|
|
@@ -776,17 +718,11 @@ const SectionEndService = defineSetup("SectionEndService", function(props) {
|
|
|
776
718
|
const {
|
|
777
719
|
from: fromPlace,
|
|
778
720
|
to: toPlace,
|
|
779
|
-
routePath,
|
|
780
721
|
registerOverlay
|
|
781
722
|
} = props;
|
|
782
723
|
const from = place2point(fromPlace);
|
|
783
724
|
const to = place2point(toPlace);
|
|
784
|
-
return h("div", [
|
|
785
|
-
"attrs": {
|
|
786
|
-
"path": routePath,
|
|
787
|
-
"status": "DONE"
|
|
788
|
-
}
|
|
789
|
-
}) : h(DrivingRoute, {
|
|
725
|
+
return h("div", [h(DrivingRoute, {
|
|
790
726
|
"attrs": {
|
|
791
727
|
"from": from,
|
|
792
728
|
"to": to,
|
package/dist/v2/chunks/{BusinessRecomendPlaceMap.eebd0822.js → BusinessRecomendPlaceMap.ed4b75d5.js}
RENAMED
|
@@ -26,7 +26,6 @@ import { DeviceOrientation } from "../business-components/DeviceOrientation/Devi
|
|
|
26
26
|
import { GreenZone } from "../business-components/GreenZone/GreenZone.js";
|
|
27
27
|
import { PassengerCircle } from "../business-components/PassengerCircle/PassengerCircle.js";
|
|
28
28
|
import { PickupPoints } from "../business-components/PickupPoints/PickupPoints.js";
|
|
29
|
-
import { RandomCars } from "../business-components/TaxiCar/RandomCars.js";
|
|
30
29
|
import { useCacheCenterPlace } from "../business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js";
|
|
31
30
|
import { b as baseGetTag, r as root } from "./isSymbol.555c14bf.js";
|
|
32
31
|
import { i as isObject } from "./debounce.5afe7867.js";
|
|
@@ -260,6 +259,24 @@ function memoize(func, resolver) {
|
|
|
260
259
|
return memoized;
|
|
261
260
|
}
|
|
262
261
|
memoize.Cache = MapCache;
|
|
262
|
+
const airportSgnBounds = [
|
|
263
|
+
[
|
|
264
|
+
106.632607,
|
|
265
|
+
10.832126
|
|
266
|
+
],
|
|
267
|
+
[
|
|
268
|
+
106.67934,
|
|
269
|
+
10.832126
|
|
270
|
+
],
|
|
271
|
+
[
|
|
272
|
+
106.67934,
|
|
273
|
+
10.805079
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
106.632607,
|
|
277
|
+
10.805079
|
|
278
|
+
]
|
|
279
|
+
];
|
|
263
280
|
const RECOMMEND_PLACE_DRAG_LIMIT = 10;
|
|
264
281
|
const RECOMMEND_PLACE_LARGE_LIMIT = 100;
|
|
265
282
|
const RECOMMEND_PLACE_ICON_ZOOM_MIN = 16.25;
|
|
@@ -287,7 +304,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
287
304
|
geoErrorOnceNotificationKey = `BusinessRecomendPlaceMap_${Date.now()}`,
|
|
288
305
|
getAvailable: inputGetAvailable,
|
|
289
306
|
getRecomendPlace: inputGetRecomendPlace,
|
|
290
|
-
mapContext
|
|
307
|
+
mapContext,
|
|
308
|
+
skipWaitGeo
|
|
291
309
|
} = props;
|
|
292
310
|
const abortController = new AbortController();
|
|
293
311
|
const {
|
|
@@ -320,7 +338,11 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
320
338
|
setFitZoom
|
|
321
339
|
} = useMapFitZoom({
|
|
322
340
|
mapRef,
|
|
323
|
-
padding: ZONE_FITVIEW_PANDING
|
|
341
|
+
padding: ZONE_FITVIEW_PANDING,
|
|
342
|
+
certainZoomAreas: [{
|
|
343
|
+
zoom: DEFAULT_ZOOM,
|
|
344
|
+
points: airportSgnBounds
|
|
345
|
+
}]
|
|
324
346
|
});
|
|
325
347
|
const {
|
|
326
348
|
readyPromise,
|
|
@@ -337,7 +359,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
337
359
|
} = useCacheCenterPlace({
|
|
338
360
|
defaultCenterPlace: props.defaultCenterPlace,
|
|
339
361
|
emptyTitle,
|
|
340
|
-
geoLoadingTitle
|
|
362
|
+
geoLoadingTitle,
|
|
363
|
+
skipWaitGeo
|
|
341
364
|
});
|
|
342
365
|
const centerSource = {
|
|
343
366
|
source: "default"
|
|
@@ -557,7 +580,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
557
580
|
recomendDescription,
|
|
558
581
|
unavailableTitle,
|
|
559
582
|
forbiddenTitle,
|
|
560
|
-
enableNearbyCars,
|
|
561
583
|
disableLocator,
|
|
562
584
|
renderPlacePhoto,
|
|
563
585
|
renderPlaceTag
|
|
@@ -620,10 +642,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
|
|
|
620
642
|
"on": {
|
|
621
643
|
"click": panToCenterByPlace
|
|
622
644
|
}
|
|
623
|
-
}), !!enableNearbyCars && zoomRef.value >= RECOMMEND_PLACE_ZONE_ICON_MIN && h(RandomCars, {
|
|
624
|
-
"attrs": {
|
|
625
|
-
"center": [centerPlace.lng, centerPlace.lat]
|
|
626
|
-
}
|
|
627
645
|
})]);
|
|
628
646
|
};
|
|
629
647
|
});
|
|
@@ -646,7 +664,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup("BusinessRecomendPlaceMap", f
|
|
|
646
664
|
key: `${payload.supplier}${instanceNo}`,
|
|
647
665
|
on: generateCreateElementV2PropsOn(props, emit, ["loadGeoLocation", "loadDefaultGeoLocation", "changeByDrag", "changeGeoLocation", "changePlace", "changeRecomandPlace", "geoError", "geoErrorOnce", "clickLocatorText", "clickLocatorPhoto"])
|
|
648
666
|
});
|
|
649
|
-
}).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "
|
|
667
|
+
}).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "skipWaitGeo", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "disableLocator", "fallback", "getRecomendPlace", "getAvailable", "renderPlacePhoto", "renderPlaceTag", "loading", "mapContext"]);
|
|
650
668
|
export {
|
|
651
669
|
BusinessRecomendPlaceMap as B,
|
|
652
670
|
DEFAULT_ZOOM as D,
|
|
@@ -658,6 +676,7 @@ export {
|
|
|
658
676
|
RECOMMEND_PLACE_ICON_ZOOM_MIN as c,
|
|
659
677
|
RECOMMEND_PLACE_ZONE_TEXT_MIN as d,
|
|
660
678
|
RECOMMEND_PLACE_TEXT_ZOOM_MIN as e,
|
|
661
|
-
|
|
679
|
+
airportSgnBounds as f,
|
|
680
|
+
BusinessRecomendPlaceMapInner as g,
|
|
662
681
|
memoize as m
|
|
663
682
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../css/Loading-49e58ced.css";
|
|
2
|
-
import {
|
|
2
|
+
import { h } from "vue";
|
|
3
3
|
import { ICON_LOAD_FAILED_URL } from "../api/cdn.js";
|
|
4
4
|
import { AbsoluteAddressBox } from "../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
|
|
5
5
|
import { useMapSupplier } from "../hooks/useMapSupplier.js";
|
|
@@ -14,50 +14,46 @@ var loadingBg = "_17ify491";
|
|
|
14
14
|
var loadingLayout = "_17ify490";
|
|
15
15
|
var title = "_17ify495";
|
|
16
16
|
var verticalGap = "_17ify494";
|
|
17
|
-
const Loading = defineSetup("Loading", function(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"class": `${loadingLayout} ${(_a = attrs.class) != null ? _a : ""}`,
|
|
24
|
-
"style": attrs.style
|
|
25
|
-
}, [createVNode("img", {
|
|
26
|
-
"class": loadingBg,
|
|
17
|
+
const Loading = defineSetup("Loading", function() {
|
|
18
|
+
return () => h("div", {
|
|
19
|
+
"class": loadingLayout
|
|
20
|
+
}, [h("img", {
|
|
21
|
+
"class": loadingBg,
|
|
22
|
+
"attrs": {
|
|
27
23
|
"src": imgGrid
|
|
28
|
-
}
|
|
24
|
+
}
|
|
25
|
+
}), h(AbsoluteAddressBox, {
|
|
26
|
+
"attrs": {
|
|
29
27
|
"type": "loading",
|
|
30
28
|
"title": ""
|
|
31
|
-
}
|
|
32
|
-
};
|
|
29
|
+
}
|
|
30
|
+
})]);
|
|
33
31
|
});
|
|
34
|
-
const LoadFailed = defineSetup("LoadFailed", function(props
|
|
35
|
-
attrs
|
|
36
|
-
}) {
|
|
32
|
+
const LoadFailed = defineSetup("LoadFailed", function(props) {
|
|
37
33
|
var _a, _b;
|
|
38
34
|
const {
|
|
39
35
|
themeVariables
|
|
40
36
|
} = useMapSupplier();
|
|
41
37
|
const icon = (_b = (_a = props.icon) != null ? _a : themeVariables == null ? void 0 : themeVariables.ICON_LOAD_FAILED_URL) != null ? _b : ICON_LOAD_FAILED_URL;
|
|
42
|
-
return () => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, [createVNode("img", {
|
|
48
|
-
"class": loadingBg,
|
|
38
|
+
return () => h("div", {
|
|
39
|
+
"class": loadingLayout
|
|
40
|
+
}, [h("img", {
|
|
41
|
+
"class": loadingBg,
|
|
42
|
+
"attrs": {
|
|
49
43
|
"src": imgGrid
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
}
|
|
45
|
+
}), h("div", {
|
|
46
|
+
"class": contentLayout
|
|
47
|
+
}, [h(SvgInlineWebComponentTag, {
|
|
48
|
+
"class": iconLoadFailed,
|
|
49
|
+
"attrs": {
|
|
54
50
|
"src": icon
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
};
|
|
51
|
+
}
|
|
52
|
+
}), h("span", {
|
|
53
|
+
"class": `${title} ${verticalGap}`
|
|
54
|
+
}, [props.title]), h("span", {
|
|
55
|
+
"class": `${description} ${verticalGap}`
|
|
56
|
+
}, [props.description])])]);
|
|
61
57
|
});
|
|
62
58
|
export {
|
|
63
59
|
LoadFailed as L,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "vue";
|
|
2
2
|
import "../../api/cdn.js";
|
|
3
|
-
import { L, a } from "../../chunks/Loading.
|
|
3
|
+
import { L, a } from "../../chunks/Loading.70dfc720.js";
|
|
4
4
|
import "../../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
|
|
5
5
|
import "../../hooks/useMapSupplier.js";
|
|
6
6
|
import "../../types/helper.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../css/MapProvider-156bfd53.css";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import { reactive, toRefs } from "vue-demi";
|
|
4
|
-
import { L as LoadFailed, a as Loading, i as imgGrid } from "../../chunks/Loading.
|
|
4
|
+
import { L as LoadFailed, a as Loading, i as imgGrid } from "../../chunks/Loading.70dfc720.js";
|
|
5
5
|
import { useMapLoader, Status } from "../../hooks/useMapLoader.js";
|
|
6
6
|
import { provideMapSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
7
7
|
import { defineLagecySetup } from "../../types/helper.js";
|
|
@@ -80,7 +80,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
|
|
|
80
80
|
});
|
|
81
81
|
loadTraditionalChineseConvertOnce(payload.language === "zh-TW");
|
|
82
82
|
return () => {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
84
84
|
const {
|
|
85
85
|
supplier,
|
|
86
86
|
gmapId,
|
|
@@ -99,30 +99,19 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
|
|
|
99
99
|
const node = (_a = slots.fallback) == null ? void 0 : _a.call(slots);
|
|
100
100
|
const title = (_b = payload.renderLoadFailedTitle) == null ? void 0 : _b.call(payload, status);
|
|
101
101
|
const description = (_c = payload.renderLoadFailedDescription) == null ? void 0 : _c.call(payload, status);
|
|
102
|
-
return node ? h("div", {
|
|
103
|
-
"class": (_d = attrs.class) != null ? _d : "",
|
|
104
|
-
"style": attrs.style
|
|
105
|
-
}, [node]) : h(LoadFailed, {
|
|
106
|
-
"class": (_e = attrs.class) != null ? _e : "",
|
|
102
|
+
return node ? h("div", [node]) : h(LoadFailed, {
|
|
107
103
|
"attrs": {
|
|
108
104
|
"title": title,
|
|
109
105
|
"description": description
|
|
110
|
-
}
|
|
111
|
-
"style": attrs.style
|
|
106
|
+
}
|
|
112
107
|
});
|
|
113
108
|
}
|
|
114
109
|
if (status === Status.LOADING || status === Status.SUCCESS && pingStatus === "pending") {
|
|
115
|
-
const node = (
|
|
116
|
-
return node ? h("div",
|
|
117
|
-
"class": (_g = attrs.class) != null ? _g : "",
|
|
118
|
-
"style": attrs.style
|
|
119
|
-
}, [node]) : h(Loading, {
|
|
120
|
-
"class": (_h = attrs.class) != null ? _h : "",
|
|
121
|
-
"style": attrs.style
|
|
122
|
-
});
|
|
110
|
+
const node = (_d = slots.loading) == null ? void 0 : _d.call(slots);
|
|
111
|
+
return node ? h("div", [node]) : h(Loading);
|
|
123
112
|
}
|
|
124
|
-
const children = (
|
|
125
|
-
const outArea = (
|
|
113
|
+
const children = (_e = slots.default) == null ? void 0 : _e.call(slots);
|
|
114
|
+
const outArea = (_f = slots.outerArea) == null ? void 0 : _f.call(slots);
|
|
126
115
|
switch (supplier) {
|
|
127
116
|
case "gmap": {
|
|
128
117
|
const renderingType = compatibleGmapRenderingType({
|
|
@@ -130,7 +119,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
|
|
|
130
119
|
touchZoomCenter
|
|
131
120
|
});
|
|
132
121
|
return h("div", {
|
|
133
|
-
"class": `${heycarMap} ${(
|
|
122
|
+
"class": `${heycarMap} ${(_g = attrs.class) != null ? _g : ""}`,
|
|
134
123
|
"attrs": {
|
|
135
124
|
"lang": language
|
|
136
125
|
},
|
|
@@ -165,7 +154,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
|
|
|
165
154
|
}
|
|
166
155
|
default:
|
|
167
156
|
return h("div", {
|
|
168
|
-
"class": `${heycarMap} ${(
|
|
157
|
+
"class": `${heycarMap} ${(_h = attrs.class) != null ? _h : ""}`,
|
|
169
158
|
"attrs": {
|
|
170
159
|
"lang": language
|
|
171
160
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CoordinateGeoPosition, type CoordinatePlace, type CoordinatePoint, type CoordinateRecommendZonePlaces, type CoordinateTrackPoint, type CoordinateValueOfOnChangeRecommendPlace, type CoordinateZone, type GeoPosition, type Place, type Point, type RecommendZonePlaces, type TrackPoint, type ValueOfOnChangeRecommendPlace, type Zone } from "../types/interface";
|
|
2
2
|
export declare function useMapCoordinatify(): {
|
|
3
3
|
coordinatifyPoint: (value: Point) => CoordinatePoint;
|
|
4
4
|
unCoordinatifyPoint: (value: CoordinatePoint) => Point;
|
|
@@ -12,5 +12,4 @@ export declare function useMapCoordinatify(): {
|
|
|
12
12
|
unCoordinatifyValueOfOnChangeRecommendPlace: (value: CoordinateValueOfOnChangeRecommendPlace) => ValueOfOnChangeRecommendPlace;
|
|
13
13
|
coordinatifyGeoPosition: (value: GeoPosition) => CoordinateGeoPosition;
|
|
14
14
|
unCoordinatifyTrackPoint: (value: CoordinateTrackPoint) => TrackPoint;
|
|
15
|
-
unCoordinatifyExternalRoute: (value: CoordinateExternalRoute) => ExternalRoute;
|
|
16
15
|
};
|
|
@@ -74,10 +74,6 @@ function useMapCoordinatify() {
|
|
|
74
74
|
const [lng, lat] = unCoordinatifyPoint(value);
|
|
75
75
|
return { ...others, lng, lat };
|
|
76
76
|
};
|
|
77
|
-
const unCoordinatifyExternalRoute = (value) => {
|
|
78
|
-
const { path, duration, distance } = value;
|
|
79
|
-
return { path: path.map(unCoordinatifyPoint), duration, distance };
|
|
80
|
-
};
|
|
81
77
|
const coordinatifyGeoPosition = (value) => {
|
|
82
78
|
return {
|
|
83
79
|
...value,
|
|
@@ -96,8 +92,7 @@ function useMapCoordinatify() {
|
|
|
96
92
|
coordinatifyValueOfOnChangeRecommendPlace,
|
|
97
93
|
unCoordinatifyValueOfOnChangeRecommendPlace,
|
|
98
94
|
coordinatifyGeoPosition,
|
|
99
|
-
unCoordinatifyTrackPoint
|
|
100
|
-
unCoordinatifyExternalRoute
|
|
95
|
+
unCoordinatifyTrackPoint
|
|
101
96
|
};
|
|
102
97
|
}
|
|
103
98
|
export {
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import type { AmapMap, MapShallowRef, Point } from "../types/interface";
|
|
3
|
+
interface CertainZoomArea {
|
|
4
|
+
zoom: number;
|
|
5
|
+
points: Point[];
|
|
6
|
+
}
|
|
3
7
|
export interface UseMapFitZoomProps<M = AmapMap | google.maps.Map> {
|
|
4
8
|
mapRef: MapShallowRef<M>;
|
|
5
9
|
padding?: [number, number, number, number];
|
|
10
|
+
certainZoomAreas?: CertainZoomArea[];
|
|
6
11
|
}
|
|
7
12
|
export declare const useMapFitZoom: (props: UseMapFitZoomProps) => {
|
|
8
13
|
setFitZoom: (points?: Point[], base?: Point, immediate?: boolean) => void;
|
|
9
14
|
};
|
|
15
|
+
export {};
|