@heycar/heycars-map 2.15.0-domestic5 → 2.15.5-drivingCorrect

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 (84) hide show
  1. package/README.md +37 -49
  2. package/dist/v2/Demo/DemoBusinessRecomendPlace.js +1 -2
  3. package/dist/v2/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
  4. package/dist/v2/Demo/DemoBusinessTaxiEnd.js +2 -9
  5. package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -4
  6. package/dist/v2/Demo/DemoBusinessTaxiService.js +1 -19
  7. package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
  8. package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -2
  9. package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +1 -1
  10. package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
  11. package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
  12. package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +1 -1
  13. package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
  14. package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
  15. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
  16. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
  17. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
  18. package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -80
  19. package/dist/v2/chunks/{BusinessRecomendPlaceMap.51ef1e3d.js → BusinessRecomendPlaceMap.ed4b75d5.js} +5 -9
  20. package/dist/{v3/chunks/Loading.4b53c31f.js → v2/chunks/Loading.70dfc720.js} +30 -34
  21. package/dist/v2/components/Loading/Loading.js +1 -1
  22. package/dist/v2/components/Loading/index.js +1 -1
  23. package/dist/v2/components/MapProvider/MapProvider.d.ts +1 -3
  24. package/dist/v2/components/MapProvider/MapProvider.js +13 -25
  25. package/dist/v2/hooks/useMapCoordinatify.d.ts +1 -2
  26. package/dist/v2/hooks/useMapCoordinatify.js +1 -6
  27. package/dist/v2/hooks/useMapFitView.js +3 -0
  28. package/dist/v2/hooks/useMapLoader.js +3 -3
  29. package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
  30. package/dist/v2/index.js +1 -1
  31. package/dist/v2/types/interface.d.ts +0 -12
  32. package/dist/v2/utils/geometryPolygon.d.ts +0 -9
  33. package/dist/v2/utils/geometryPolygon.js +0 -19
  34. package/dist/v2/utils/log.js +1 -1
  35. package/dist/v2/utils/platform.d.ts +1 -3
  36. package/dist/v2/utils/platform.js +2 -8
  37. package/dist/v2/utils/typeChecking.d.ts +1 -7
  38. package/dist/v2/utils/typeChecking.js +0 -18
  39. package/dist/v3/Demo/DemoBusinessRecomendPlace.js +1 -2
  40. package/dist/v3/Demo/DemoBusinessTaxiEnd.d.ts +1 -2
  41. package/dist/v3/Demo/DemoBusinessTaxiEnd.js +2 -9
  42. package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -4
  43. package/dist/v3/Demo/DemoBusinessTaxiService.js +1 -19
  44. package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
  45. package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -2
  46. package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +1 -1
  47. package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +2 -1
  48. package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +14 -6
  49. package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +1 -1
  50. package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +3 -4
  51. package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +2 -6
  52. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -4
  53. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +7 -45
  54. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +1 -6
  55. package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +16 -62
  56. package/dist/v3/chunks/{BusinessRecomendPlaceMap.4e383d44.js → BusinessRecomendPlaceMap.4ec9353a.js} +5 -7
  57. package/dist/{v2/chunks/Loading.8aa3aad3.js → v3/chunks/Loading.4c949ec9.js} +27 -47
  58. package/dist/v3/components/Loading/Loading.js +1 -1
  59. package/dist/v3/components/Loading/index.js +1 -1
  60. package/dist/v3/components/MapProvider/MapProvider.d.ts +1 -3
  61. package/dist/v3/components/MapProvider/MapProvider.js +14 -26
  62. package/dist/v3/hooks/useMapCoordinatify.d.ts +1 -2
  63. package/dist/v3/hooks/useMapCoordinatify.js +1 -6
  64. package/dist/v3/hooks/useMapFitView.js +3 -0
  65. package/dist/v3/hooks/useMapLoader.js +3 -3
  66. package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
  67. package/dist/v3/index.js +1 -1
  68. package/dist/v3/types/interface.d.ts +0 -12
  69. package/dist/v3/utils/geometryPolygon.d.ts +0 -9
  70. package/dist/v3/utils/geometryPolygon.js +0 -19
  71. package/dist/v3/utils/log.js +1 -1
  72. package/dist/v3/utils/platform.d.ts +1 -3
  73. package/dist/v3/utils/platform.js +2 -8
  74. package/dist/v3/utils/typeChecking.d.ts +1 -7
  75. package/dist/v3/utils/typeChecking.js +0 -18
  76. package/package.json +1 -1
  77. package/dist/v2/Demo/demo.data.mock.d.ts +0 -4
  78. package/dist/v2/Demo/demo.data.mock.js +0 -1194
  79. package/dist/v2/business-components/TaxiCar/RandomCars.d.ts +0 -6
  80. package/dist/v2/business-components/TaxiCar/RandomCars.js +0 -47
  81. package/dist/v3/Demo/demo.data.mock.d.ts +0 -4
  82. package/dist/v3/Demo/demo.data.mock.js +0 -1194
  83. package/dist/v3/business-components/TaxiCar/RandomCars.d.ts +0 -8
  84. 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 { ExternalRoute, Place, Point, TrackPoint } from "../../types/interface";
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", [routePath ? h(DrivingLine, {
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
- }), carRoute ? [h(DrivingLine, {
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 _a2;
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": (_a2 = path[0]) != null ? _a2 : carPosition,
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
- }), carRoute ? [h(DrivingLine, {
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 _a2;
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": (_a2 = path[0]) != null ? _a2 : carPosition,
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 _a2;
351
+ var _a;
389
352
  return h(TaxiCar, {
390
353
  "attrs": {
391
- "position": (_a2 = graspRoadPath[graspRoadPath.length - 1]) != null ? _a2 : carPosition,
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", [routePath ? h(DrivingLine, {
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", [carRoute ? [h(DrivingLine, {
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 _a2;
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": (_a2 = path[0]) != null ? _a2 : carPosition,
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 _a2;
621
+ var _a;
680
622
  return h(TaxiCar, {
681
623
  "attrs": {
682
- "position": (_a2 = graspRoadPath[graspRoadPath.length - 1]) != null ? _a2 : carPosition,
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", [routePath ? h(DrivingLine, {
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,
@@ -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";
@@ -305,7 +304,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
305
304
  geoErrorOnceNotificationKey = `BusinessRecomendPlaceMap_${Date.now()}`,
306
305
  getAvailable: inputGetAvailable,
307
306
  getRecomendPlace: inputGetRecomendPlace,
308
- mapContext
307
+ mapContext,
308
+ skipWaitGeo
309
309
  } = props;
310
310
  const abortController = new AbortController();
311
311
  const {
@@ -359,7 +359,8 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
359
359
  } = useCacheCenterPlace({
360
360
  defaultCenterPlace: props.defaultCenterPlace,
361
361
  emptyTitle,
362
- geoLoadingTitle
362
+ geoLoadingTitle,
363
+ skipWaitGeo
363
364
  });
364
365
  const centerSource = {
365
366
  source: "default"
@@ -579,7 +580,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
579
580
  recomendDescription,
580
581
  unavailableTitle,
581
582
  forbiddenTitle,
582
- enableNearbyCars,
583
583
  disableLocator,
584
584
  renderPlacePhoto,
585
585
  renderPlaceTag
@@ -642,10 +642,6 @@ const BusinessRecomendPlaceMapInner = defineSetup("BusinessRecomendPlaceMapInner
642
642
  "on": {
643
643
  "click": panToCenterByPlace
644
644
  }
645
- }), !!enableNearbyCars && zoomRef.value >= RECOMMEND_PLACE_ZONE_ICON_MIN && h(RandomCars, {
646
- "attrs": {
647
- "center": [centerPlace.lng, centerPlace.lat]
648
- }
649
645
  })]);
650
646
  };
651
647
  });
@@ -668,7 +664,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup("BusinessRecomendPlaceMap", f
668
664
  key: `${payload.supplier}${instanceNo}`,
669
665
  on: generateCreateElementV2PropsOn(props, emit, ["loadGeoLocation", "loadDefaultGeoLocation", "changeByDrag", "changeGeoLocation", "changePlace", "changeRecomandPlace", "geoError", "geoErrorOnce", "clickLocatorText", "clickLocatorPhoto"])
670
666
  });
671
- }).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "enableNearbyCars", "disableLocator", "fallback", "getRecomendPlace", "getAvailable", "renderPlacePhoto", "renderPlaceTag", "loading", "mapContext"]);
667
+ }).props(["log", "geoLoadingTitle", "emptyTitle", "queryingTitle", "defaultCenterPlace", "skipWaitGeo", "geoErrorOnceNotificationKey", "unavailableTitle", "forbiddenTitle", "recomendDescription", "disableLocator", "fallback", "getRecomendPlace", "getAvailable", "renderPlacePhoto", "renderPlaceTag", "loading", "mapContext"]);
672
668
  export {
673
669
  BusinessRecomendPlaceMap as B,
674
670
  DEFAULT_ZOOM as D,
@@ -1,5 +1,5 @@
1
1
  import "../css/Loading-49e58ced.css";
2
- import { createVNode } from "vue";
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
- attrs
19
- }) {
20
- return () => {
21
- var _a;
22
- return createVNode("div", {
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
- }, null), createVNode(AbsoluteAddressBox, {
24
+ }
25
+ }), h(AbsoluteAddressBox, {
26
+ "attrs": {
29
27
  "type": "loading",
30
28
  "title": ""
31
- }, null)]);
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
- var _a2;
44
- return createVNode("div", {
45
- "class": `${loadingLayout} ${(_a2 = attrs.class) != null ? _a2 : ""}`,
46
- "style": attrs.style
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
- }, null), createVNode("div", {
51
- "class": contentLayout
52
- }, [createVNode(SvgInlineWebComponentTag, {
53
- "class": iconLoadFailed,
44
+ }
45
+ }), h("div", {
46
+ "class": contentLayout
47
+ }, [h(SvgInlineWebComponentTag, {
48
+ "class": iconLoadFailed,
49
+ "attrs": {
54
50
  "src": icon
55
- }, null), createVNode("span", {
56
- "class": `${title} ${verticalGap}`
57
- }, [props.title]), createVNode("span", {
58
- "class": `${description} ${verticalGap}`
59
- }, [props.description])])]);
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.8aa3aad3.js";
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,4 +1,4 @@
1
- import { L, a } from "../../chunks/Loading.8aa3aad3.js";
1
+ import { L, a } from "../../chunks/Loading.70dfc720.js";
2
2
  export {
3
3
  L as LoadFailed,
4
4
  a as Loading
@@ -5,9 +5,7 @@ import { type GmapLoaderProps, type UseMapLoaderProps } from "../../hooks/useMap
5
5
  import { type MapSupplierPayolad } from "../../hooks/useMapSupplier";
6
6
  import type { AmapMap } from "../../types/interface";
7
7
  import { type AmapProps } from "../Amap";
8
- export type MapProviderProps = UseMapLoaderProps & Pick<MapSupplierPayolad, "gmapId" | "gmapRasterId" | "gaodeDirectionDrivingProxyUrl" | "gaodeDirectionWalkingProxyUrl" | "googleDirectionsProxyUrl" | "googleRoutesProxyUrl" | "googleSnapRoadProxyUrl" | "themeVariables" | "renderLoadFailedTitle" | "renderLoadFailedDescription"> & {
9
- forceBrowserPlatformH5?: boolean;
10
- };
8
+ export type MapProviderProps = UseMapLoaderProps & Pick<MapSupplierPayolad, "gmapId" | "gmapRasterId" | "gaodeDirectionDrivingProxyUrl" | "gaodeDirectionWalkingProxyUrl" | "googleDirectionsProxyUrl" | "googleRoutesProxyUrl" | "googleSnapRoadProxyUrl" | "themeVariables" | "renderLoadFailedTitle" | "renderLoadFailedDescription">;
11
9
  export declare const MapProvider: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<MapProviderProps>, 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<MapProviderProps, Required<MapProviderProps>>, "success" | "fail" | "downloadOptimizeEnd", MapProviderProps>;
12
10
  export interface HeycarMapProps extends Pick<GmapLoaderProps, "fallback" | "loading">, Pick<AmapProps, "center" | "zoom"> {
13
11
  mapRef?: SetMap<AmapMap> | SetMap<google.maps.Map>;
@@ -1,13 +1,13 @@
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.8aa3aad3.js";
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";
8
8
  import "../../utils/alipayPolyfill.js";
9
9
  import { loadTraditionalChineseConvertOnce } from "../../utils/cn2tw.js";
10
- import { detectWebGL, WEBGL_STATUS, injectForcedBrowserPlatform, BRWOSER_PLATFORM, detectBrowserPlatform, OS_PLATFORM, detectOSPlatform } from "../../utils/platform.js";
10
+ import { detectWebGL, WEBGL_STATUS, detectBrowserPlatform, OS_PLATFORM, BRWOSER_PLATFORM, detectOSPlatform } from "../../utils/platform.js";
11
11
  import { vec2lnglat } from "../../utils/transform.js";
12
12
  import { Amap } from "../Amap/Amap.js";
13
13
  import { Gmap } from "../Gmap/Gmap.js";
@@ -45,13 +45,12 @@ const MapProvider = defineLagecySetup("MapProvider", function(props, {
45
45
  return Reflect.get(target, name, receiver);
46
46
  }
47
47
  });
48
- injectForcedBrowserPlatform(props.forceBrowserPlatformH5 ? BRWOSER_PLATFORM.H5 : void 0);
49
48
  provideMapSupplier(context);
50
49
  return () => {
51
50
  var _a;
52
51
  return h("div", [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
53
52
  };
54
- }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapRasterId", "gmapKey", "supplier", "language", "gaodeDirectionDrivingProxyUrl", "gaodeDirectionWalkingProxyUrl", "googleDirectionsProxyUrl", "googleRoutesProxyUrl", "googleSnapRoadProxyUrl", "themeVariables", "renderLoadFailedTitle", "renderLoadFailedDescription", "forceBrowserPlatformH5"]);
53
+ }).props(["amapKey", "amapSecret", "amapServiceHost", "gmapId", "gmapRasterId", "gmapKey", "supplier", "language", "gaodeDirectionDrivingProxyUrl", "gaodeDirectionWalkingProxyUrl", "googleDirectionsProxyUrl", "googleRoutesProxyUrl", "googleSnapRoadProxyUrl", "themeVariables", "renderLoadFailedTitle", "renderLoadFailedDescription"]);
55
54
  const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
56
55
  slots,
57
56
  emit,
@@ -81,7 +80,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
81
80
  });
82
81
  loadTraditionalChineseConvertOnce(payload.language === "zh-TW");
83
82
  return () => {
84
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h;
85
84
  const {
86
85
  supplier,
87
86
  gmapId,
@@ -100,30 +99,19 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
100
99
  const node = (_a = slots.fallback) == null ? void 0 : _a.call(slots);
101
100
  const title = (_b = payload.renderLoadFailedTitle) == null ? void 0 : _b.call(payload, status);
102
101
  const description = (_c = payload.renderLoadFailedDescription) == null ? void 0 : _c.call(payload, status);
103
- return node ? h("div", {
104
- "class": (_d = attrs.class) != null ? _d : "",
105
- "style": attrs.style
106
- }, [node]) : h(LoadFailed, {
107
- "class": (_e = attrs.class) != null ? _e : "",
102
+ return node ? h("div", [node]) : h(LoadFailed, {
108
103
  "attrs": {
109
104
  "title": title,
110
105
  "description": description
111
- },
112
- "style": attrs.style
106
+ }
113
107
  });
114
108
  }
115
109
  if (status === Status.LOADING || status === Status.SUCCESS && pingStatus === "pending") {
116
- const node = (_f = slots.loading) == null ? void 0 : _f.call(slots);
117
- return node ? h("div", {
118
- "class": (_g = attrs.class) != null ? _g : "",
119
- "style": attrs.style
120
- }, [node]) : h(Loading, {
121
- "class": (_h = attrs.class) != null ? _h : "",
122
- "style": attrs.style
123
- });
110
+ const node = (_d = slots.loading) == null ? void 0 : _d.call(slots);
111
+ return node ? h("div", [node]) : h(Loading);
124
112
  }
125
- const children = (_i = slots.default) == null ? void 0 : _i.call(slots);
126
- const outArea = (_j = slots.outerArea) == null ? void 0 : _j.call(slots);
113
+ const children = (_e = slots.default) == null ? void 0 : _e.call(slots);
114
+ const outArea = (_f = slots.outerArea) == null ? void 0 : _f.call(slots);
127
115
  switch (supplier) {
128
116
  case "gmap": {
129
117
  const renderingType = compatibleGmapRenderingType({
@@ -131,7 +119,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
131
119
  touchZoomCenter
132
120
  });
133
121
  return h("div", {
134
- "class": `${heycarMap} ${(_k = attrs.class) != null ? _k : ""}`,
122
+ "class": `${heycarMap} ${(_g = attrs.class) != null ? _g : ""}`,
135
123
  "attrs": {
136
124
  "lang": language
137
125
  },
@@ -157,7 +145,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
157
145
  "dragEnd": gmapHandleDargEnd,
158
146
  "resize": handleResize
159
147
  }
160
- }, [h("div", [children])]), h("img", {
148
+ }, [children]), h("img", {
161
149
  "class": heycarGmapBackgroundDefaultLoadingImage,
162
150
  "attrs": {
163
151
  "src": imgGrid
@@ -166,7 +154,7 @@ const HeycarMap = defineLagecySetup("HeycarMap", function(props, {
166
154
  }
167
155
  default:
168
156
  return h("div", {
169
- "class": `${heycarMap} ${(_l = attrs.class) != null ? _l : ""}`,
157
+ "class": `${heycarMap} ${(_h = attrs.class) != null ? _h : ""}`,
170
158
  "attrs": {
171
159
  "lang": language
172
160
  },
@@ -1,4 +1,4 @@
1
- import { type CoordinateExternalRoute, type CoordinateGeoPosition, type CoordinatePlace, type CoordinatePoint, type CoordinateRecommendZonePlaces, type CoordinateTrackPoint, type CoordinateValueOfOnChangeRecommendPlace, type CoordinateZone, type ExternalRoute, type GeoPosition, type Place, type Point, type RecommendZonePlaces, type TrackPoint, type ValueOfOnChangeRecommendPlace, type Zone } from "../types/interface";
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 {
@@ -75,6 +75,9 @@ class SimpleGmapOverLayerGroup extends Set {
75
75
  }
76
76
  function gmapFitBoundNoAnimate(map, bound, padding) {
77
77
  const projection = map.getProjection();
78
+ if (!projection) {
79
+ debugger;
80
+ }
78
81
  if (!projection || bound.isEmpty())
79
82
  return;
80
83
  const { top = 0, right = 0, bottom = 0, left = 0 } = padding;
@@ -549,7 +549,7 @@ var dist = {
549
549
  });
550
550
  })(dist);
551
551
  const MIN_MAP_RELOAD_INTERVAL = 5e3;
552
- const MIN_GMAP_LOAD_RESET_THRESHOLD = 1e3;
552
+ const MIN_MAP_LOAD_RESET_THRESHOLD = 1e3;
553
553
  const DEFAULT_AMAP_PLUGINS = [
554
554
  "AMap.Geocoder",
555
555
  "AMap.Driving",
@@ -608,7 +608,7 @@ const useAmapLoader = (props) => {
608
608
  if (statusRef.value === "SUCCESS")
609
609
  return Promise.resolve();
610
610
  defineSecurityOnce();
611
- distExports.reset();
611
+ throttledExecute(() => distExports.reset());
612
612
  statusRef.value = "LOADING";
613
613
  setTimeout(preloadAmapStyleOnce);
614
614
  const startTime = Date.now();
@@ -651,7 +651,7 @@ const useAmapLoader = (props) => {
651
651
  watchPostEffectForDeepOption(() => [optionsRef.value, disableRef == null ? void 0 : disableRef.value], keepRetry);
652
652
  return { statusRef, pingStatusRef, readyPromise };
653
653
  };
654
- const throttledExecute = throttle((fn) => fn(), MIN_GMAP_LOAD_RESET_THRESHOLD, {
654
+ const throttledExecute = throttle((fn) => fn(), MIN_MAP_LOAD_RESET_THRESHOLD, {
655
655
  trailing: false
656
656
  });
657
657
  const useGmapLoader = (props) => {
@@ -1,5 +1,5 @@
1
1
  import { reactive, ref, readonly } from "vue-demi";
2
- import { E as EMPTY_PLACE } from "../chunks/BusinessRecomendPlaceMap.51ef1e3d.js";
2
+ import { E as EMPTY_PLACE } from "../chunks/BusinessRecomendPlaceMap.ed4b75d5.js";
3
3
  import { CenterPlaceStatus } from "../types/interface.js";
4
4
  import { proxyFunctionalProperty, assertAssingedBeforeUsed } from "../utils/helper.js";
5
5
  const useBusinessRecomendPlaceMap = () => {