@heycar/heycars-map 2.24.0-routeCorrection → 2.24.0-routeCorrection2
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 +1 -0
- package/dist/v2/App.js +2 -2
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +2 -2
- package/dist/v2/Demo/DemoBusinessTaxiService.js +1 -1
- package/dist/v2/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -0
- package/dist/v2/business-components/BusinessQuotingMap/BusinessQuotingMap.js +43 -46
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +2 -2
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/App.js +2 -2
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +2 -2
- package/dist/v3/Demo/DemoBusinessTaxiService.js +1 -1
- package/dist/v3/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -0
- package/dist/v3/business-components/BusinessQuotingMap/BusinessQuotingMap.js +34 -33
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +2 -2
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/v2/App.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { defineComponent, ref } from "vue-demi";
|
|
3
3
|
import { MapProvider } from "./components/MapProvider/MapProvider.js";
|
|
4
|
-
import {
|
|
4
|
+
import { DemoBusinessQuoting } from "./Demo/DemoBusinessQuoting.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
7
7
|
const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
@@ -51,7 +51,7 @@ const App = defineComponent({
|
|
|
51
51
|
"fail": () => console.log(`${supplierRef.value} load failed`),
|
|
52
52
|
"downloadOptimizeEnd": () => console.log(`${supplierRef.value} load download optimize end`)
|
|
53
53
|
}
|
|
54
|
-
}, [h(
|
|
54
|
+
}, [h(DemoBusinessQuoting)]);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CoordinatePlace, type
|
|
1
|
+
import { type CoordinatePlace, type CoordinateTrackPoint, type DriverStatus, type GetDriverRouteOrTrackOutput } from "../types/interface";
|
|
2
2
|
export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent<Readonly<{}>, {
|
|
3
3
|
mapContext: import("../hooks-business/useBusinessTaxiServiceMap").BusinessTaxiServiceContext;
|
|
4
4
|
}, {
|
|
@@ -10,6 +10,6 @@ export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent
|
|
|
10
10
|
}, {}, {
|
|
11
11
|
getDriverPositionTrack(): Promise<CoordinateTrackPoint[]>;
|
|
12
12
|
renderStartServiceSubTitle(): string;
|
|
13
|
-
renderStartSubTitle(
|
|
13
|
+
renderStartSubTitle(): string;
|
|
14
14
|
getDriverRouteOrTrack(): Promise<GetDriverRouteOrTrackOutput>;
|
|
15
15
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<Readonly<{}>>>, {}>;
|
|
@@ -95,7 +95,7 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
95
95
|
renderStartServiceSubTitle() {
|
|
96
96
|
return "司機未按路線接駕?" + Math.random().toFixed(2);
|
|
97
97
|
},
|
|
98
|
-
renderStartSubTitle(
|
|
98
|
+
renderStartSubTitle() {
|
|
99
99
|
return "接駕路線錯誤?" + Math.random().toFixed(2);
|
|
100
100
|
},
|
|
101
101
|
getDriverRouteOrTrack() {
|
|
@@ -8,6 +8,7 @@ export type BusinessQuotingMapProps = CoordinatifyProps<Omit<HeycarMapProps, "ce
|
|
|
8
8
|
fromDescription: string;
|
|
9
9
|
log?: boolean;
|
|
10
10
|
isBezierCurve?: boolean;
|
|
11
|
+
isNeedMapRouteData?: boolean;
|
|
11
12
|
disableStartPoint?: boolean;
|
|
12
13
|
disableEndPoint?: boolean;
|
|
13
14
|
mapContext: CoordinatifyProps<BusinessQuotingContext>;
|
|
@@ -51,20 +51,35 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
51
51
|
immediate: true
|
|
52
52
|
});
|
|
53
53
|
const deferedSetFitView = pipeDefer(() => registerOverlay.setFitView(true));
|
|
54
|
+
const renderEndPoint = (to, toPlace, description) => h(StartEndPoint, {
|
|
55
|
+
"attrs": {
|
|
56
|
+
"type": "end",
|
|
57
|
+
"registerOverlay": fittableRegistryOverlay,
|
|
58
|
+
"position": to,
|
|
59
|
+
"title": toPlace.displayName,
|
|
60
|
+
"description": description,
|
|
61
|
+
"withArrow": !props.disableEndPoint,
|
|
62
|
+
"language": language
|
|
63
|
+
},
|
|
64
|
+
"on": {
|
|
65
|
+
"click": () => !props.disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
66
|
+
}
|
|
67
|
+
});
|
|
54
68
|
return () => {
|
|
55
69
|
const {
|
|
56
70
|
from: inputFromPlace,
|
|
57
71
|
to: inputToPlace,
|
|
58
72
|
fromDescription,
|
|
59
73
|
disableStartPoint,
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
isBezierCurve,
|
|
75
|
+
isNeedMapRouteData
|
|
62
76
|
} = props;
|
|
63
77
|
const fromPlace = unCoordinatifyPlace(toCoordinatePlaceType(inputFromPlace));
|
|
64
78
|
const toPlace = unCoordinatifyPlace(toCoordinatePlaceType(inputToPlace));
|
|
65
79
|
const from = place2point(fromPlace);
|
|
66
80
|
const to = place2point(toPlace);
|
|
67
81
|
const distance = distanceBetweenTwoPoints(from, to);
|
|
82
|
+
const useRealRoute = !isBezierCurve || isBezierCurve && isNeedMapRouteData;
|
|
68
83
|
return h(HeycarMap, {
|
|
69
84
|
"class": attrs.class,
|
|
70
85
|
"style": attrs.style,
|
|
@@ -94,24 +109,7 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
94
109
|
"from": from,
|
|
95
110
|
"to": to
|
|
96
111
|
}
|
|
97
|
-
}),
|
|
98
|
-
"attrs": {
|
|
99
|
-
"type": "end",
|
|
100
|
-
"registerOverlay": fittableRegistryOverlay,
|
|
101
|
-
"position": to,
|
|
102
|
-
"title": toPlace.displayName,
|
|
103
|
-
"description": renderDescription({
|
|
104
|
-
distance,
|
|
105
|
-
duration: 0,
|
|
106
|
-
tolls: 0
|
|
107
|
-
}),
|
|
108
|
-
"withArrow": !disableEndPoint,
|
|
109
|
-
"language": language
|
|
110
|
-
},
|
|
111
|
-
"on": {
|
|
112
|
-
"click": () => !disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
113
|
-
}
|
|
114
|
-
}) : h(DrivingRoute, {
|
|
112
|
+
}), useRealRoute ? h(DrivingRoute, {
|
|
115
113
|
"attrs": {
|
|
116
114
|
"to": to,
|
|
117
115
|
"from": from,
|
|
@@ -124,39 +122,38 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
124
122
|
init,
|
|
125
123
|
isCrossBorder = false
|
|
126
124
|
}) => {
|
|
127
|
-
if (!init)
|
|
125
|
+
if (!init) {
|
|
128
126
|
emit("drivingRouteDone", {
|
|
129
127
|
hasRoute: path.length !== 0,
|
|
130
128
|
distance: distance2,
|
|
131
129
|
duration,
|
|
132
130
|
isCrossBorder
|
|
133
131
|
});
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
"withArrow": !disableEndPoint,
|
|
151
|
-
"language": language
|
|
152
|
-
},
|
|
153
|
-
"on": {
|
|
154
|
-
"click": () => !disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
155
|
-
}
|
|
156
|
-
})];
|
|
132
|
+
}
|
|
133
|
+
return [
|
|
134
|
+
// 只有非贝塞尔模式才显示 TrafficDrivingLine - 用于在地图上绘制带有交通路况颜色的路线
|
|
135
|
+
!isBezierCurve && h(TrafficDrivingLine, {
|
|
136
|
+
"attrs": {
|
|
137
|
+
"path": path,
|
|
138
|
+
"trafficJams": trafficJams
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
renderEndPoint(to, toPlace, renderDescription({
|
|
142
|
+
distance: distance2,
|
|
143
|
+
duration,
|
|
144
|
+
tolls
|
|
145
|
+
}))
|
|
146
|
+
].filter(Boolean);
|
|
157
147
|
}
|
|
158
148
|
}
|
|
159
|
-
})
|
|
149
|
+
}) : (
|
|
150
|
+
// useRealRoute === false:只显示贝塞尔曲线 + 静态终点信息(无 DrivingRoute)
|
|
151
|
+
renderEndPoint(to, toPlace, renderDescription({
|
|
152
|
+
distance,
|
|
153
|
+
duration: 0,
|
|
154
|
+
tolls: 0
|
|
155
|
+
}))
|
|
156
|
+
), h(FitViewOnce, {
|
|
160
157
|
"attrs": {
|
|
161
158
|
"registerOverlay": registerOverlay,
|
|
162
159
|
"immediate": true
|
|
@@ -181,7 +178,7 @@ const BusinessQuotingMap = defineLagecySetup("BusinessQuotingMap", function(prop
|
|
|
181
178
|
key: `${payload.supplier}${instanceNo}`,
|
|
182
179
|
on: generateCreateElementV2PropsOn(props, emit, ["clickStartPoint", "clickEndPoint", "drivingRouteDone"])
|
|
183
180
|
});
|
|
184
|
-
}).props(["fallback", "from", "loading", "disableStartPoint", "disableEndPoint", "mapContext", "renderDescription", "to", "fromDescription", "log", "isBezierCurve"]);
|
|
181
|
+
}).props(["fallback", "from", "loading", "disableStartPoint", "disableEndPoint", "mapContext", "renderDescription", "to", "fromDescription", "log", "isBezierCurve", "isNeedMapRouteData"]);
|
|
185
182
|
export {
|
|
186
183
|
BusinessQuotingMap,
|
|
187
184
|
BusinessQuotingMapInner
|
|
@@ -50,5 +50,5 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
50
50
|
onClickLocatorText?: AbsoluteAddressBoxProps["onClickText"];
|
|
51
51
|
onClickLocatorPhoto?: AbsoluteAddressBoxProps["onClickPhoto"];
|
|
52
52
|
}
|
|
53
|
-
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
54
|
-
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
53
|
+
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessRecomendPlaceMapProps>;
|
|
54
|
+
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessRecomendPlaceMapProps>;
|
|
@@ -3,5 +3,5 @@ import { type BusinessRecomendPlaceMapProps } from "../BusinessRecomendPlaceMap"
|
|
|
3
3
|
export interface BusinessReselectPlaceMapProps extends Pick<BusinessRecomendPlaceMapProps, "geoErrorOnceNotificationKey" | "loading" | "fallback" | "log" | "getAvailable" | "getRecomendPlace" | "unavailableTitle" | "forbiddenTitle" | "emptyTitle" | "queryingTitle" | "recomendDescription" | "disableLocator" | "disableLocatorPhoto" | "mapContext" | "renderPlacePhoto" | "renderPlaceTag" | "onChangeGeoLocation" | "onChangePlace" | "onChangeRecomandPlace" | "onGeoError" | "onGeoErrorOnce" | "onClickLocatorText" | "onClickLocatorPhoto"> {
|
|
4
4
|
defaultPlace?: CoordinatePlace;
|
|
5
5
|
}
|
|
6
|
-
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
7
|
-
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
6
|
+
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessReselectPlaceMapProps>;
|
|
7
|
+
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessReselectPlaceMapProps>;
|
|
@@ -37,5 +37,5 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
|
|
|
37
37
|
}) => void;
|
|
38
38
|
onClickStartServicePoint?: () => void;
|
|
39
39
|
};
|
|
40
|
-
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
41
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
40
|
+
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartPoint" | "clickStartServicePoint", BusinessTaxiServiceMapProps>;
|
|
41
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartPoint" | "clickStartServicePoint", BusinessTaxiServiceMapProps>;
|
|
@@ -18,7 +18,7 @@ interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceP
|
|
|
18
18
|
relayToTitle?: string;
|
|
19
19
|
onClickStartServicePoint?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, 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<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "
|
|
21
|
+
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, 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<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "clickStartPoint" | "clickStartServicePoint", SectionDriverStartRelayServiceProps>;
|
|
22
22
|
type SectionDriverStartServiceProps = Required<MROP> & {
|
|
23
23
|
passengerPosition?: Point;
|
|
24
24
|
passengerAngle?: string;
|
|
@@ -39,7 +39,7 @@ type SectionDriverStartServiceProps = Required<MROP> & {
|
|
|
39
39
|
from: CoordinatePoint;
|
|
40
40
|
}) => void;
|
|
41
41
|
};
|
|
42
|
-
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, 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<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "
|
|
42
|
+
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, 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<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "clickStartPoint" | "clickStartServicePoint", SectionDriverStartServiceProps>;
|
|
43
43
|
type SectionBookDispatchedProps = Required<MROP> & {
|
|
44
44
|
passengerPosition?: Point;
|
|
45
45
|
passengerAngle?: string;
|
package/dist/v2/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.
|
|
3
|
+
const pkgVersion = "2.24.0-routeCorrection2";
|
|
4
4
|
const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
|
|
5
5
|
const enableSessionLogKey = (key) => {
|
|
6
6
|
const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
|
package/dist/v3/App.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
2
|
import { defineComponent, ref } from "vue-demi";
|
|
3
3
|
import { MapProvider } from "./components/MapProvider/MapProvider.js";
|
|
4
|
-
import {
|
|
4
|
+
import { DemoBusinessQuoting } from "./Demo/DemoBusinessQuoting.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
7
7
|
const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
@@ -48,7 +48,7 @@ const App = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
"onDownloadOptimizeEnd": () => console.log(`${supplierRef.value} load download optimize end`),
|
|
49
49
|
"reportLog": () => console.log("reportLog function is called")
|
|
50
50
|
}, {
|
|
51
|
-
default: () => [createVNode(
|
|
51
|
+
default: () => [createVNode(DemoBusinessQuoting, null, null)]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CoordinatePlace, type
|
|
1
|
+
import { type CoordinatePlace, type CoordinateTrackPoint, type DriverStatus, type GetDriverRouteOrTrackOutput } from "../types/interface";
|
|
2
2
|
export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent<{}, {
|
|
3
3
|
mapContext: import("../hooks-business/useBusinessTaxiServiceMap").BusinessTaxiServiceContext;
|
|
4
4
|
}, {
|
|
@@ -10,6 +10,6 @@ export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent
|
|
|
10
10
|
}, {}, {
|
|
11
11
|
getDriverPositionTrack(): Promise<CoordinateTrackPoint[]>;
|
|
12
12
|
renderStartServiceSubTitle(): string;
|
|
13
|
-
renderStartSubTitle(
|
|
13
|
+
renderStartSubTitle(): string;
|
|
14
14
|
getDriverRouteOrTrack(): Promise<GetDriverRouteOrTrackOutput>;
|
|
15
15
|
}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").PublicProps, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -95,7 +95,7 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
renderStartServiceSubTitle() {
|
|
96
96
|
return "司機未按路線接駕?" + Math.random().toFixed(2);
|
|
97
97
|
},
|
|
98
|
-
renderStartSubTitle(
|
|
98
|
+
renderStartSubTitle() {
|
|
99
99
|
return "接駕路線錯誤?" + Math.random().toFixed(2);
|
|
100
100
|
},
|
|
101
101
|
getDriverRouteOrTrack() {
|
|
@@ -8,6 +8,7 @@ export type BusinessQuotingMapProps = CoordinatifyProps<Omit<HeycarMapProps, "ce
|
|
|
8
8
|
fromDescription: string;
|
|
9
9
|
log?: boolean;
|
|
10
10
|
isBezierCurve?: boolean;
|
|
11
|
+
isNeedMapRouteData?: boolean;
|
|
11
12
|
disableStartPoint?: boolean;
|
|
12
13
|
disableEndPoint?: boolean;
|
|
13
14
|
mapContext: CoordinatifyProps<BusinessQuotingContext>;
|
|
@@ -51,20 +51,31 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
51
51
|
immediate: true
|
|
52
52
|
});
|
|
53
53
|
const deferedSetFitView = pipeDefer(() => registerOverlay.setFitView(true));
|
|
54
|
+
const renderEndPoint = (to, toPlace, description) => createVNode(StartEndPoint, {
|
|
55
|
+
"type": "end",
|
|
56
|
+
"registerOverlay": fittableRegistryOverlay,
|
|
57
|
+
"position": to,
|
|
58
|
+
"title": toPlace.displayName,
|
|
59
|
+
"description": description,
|
|
60
|
+
"withArrow": !props.disableEndPoint,
|
|
61
|
+
"language": language,
|
|
62
|
+
"onClick": () => !props.disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
63
|
+
}, null);
|
|
54
64
|
return () => {
|
|
55
65
|
const {
|
|
56
66
|
from: inputFromPlace,
|
|
57
67
|
to: inputToPlace,
|
|
58
68
|
fromDescription,
|
|
59
69
|
disableStartPoint,
|
|
60
|
-
|
|
61
|
-
|
|
70
|
+
isBezierCurve,
|
|
71
|
+
isNeedMapRouteData
|
|
62
72
|
} = props;
|
|
63
73
|
const fromPlace = unCoordinatifyPlace(toCoordinatePlaceType(inputFromPlace));
|
|
64
74
|
const toPlace = unCoordinatifyPlace(toCoordinatePlaceType(inputToPlace));
|
|
65
75
|
const from = place2point(fromPlace);
|
|
66
76
|
const to = place2point(toPlace);
|
|
67
77
|
const distance = distanceBetweenTwoPoints(from, to);
|
|
78
|
+
const useRealRoute = !isBezierCurve || isBezierCurve && isNeedMapRouteData;
|
|
68
79
|
return createVNode(HeycarMap, {
|
|
69
80
|
"class": attrs.class,
|
|
70
81
|
"style": attrs.style,
|
|
@@ -85,20 +96,7 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
85
96
|
}, null), isBezierCurve && createVNode(DrivingQuadraticBezierCurve, {
|
|
86
97
|
"from": from,
|
|
87
98
|
"to": to
|
|
88
|
-
}, null),
|
|
89
|
-
"type": "end",
|
|
90
|
-
"registerOverlay": fittableRegistryOverlay,
|
|
91
|
-
"position": to,
|
|
92
|
-
"title": toPlace.displayName,
|
|
93
|
-
"description": renderDescription({
|
|
94
|
-
distance,
|
|
95
|
-
duration: 0,
|
|
96
|
-
tolls: 0
|
|
97
|
-
}),
|
|
98
|
-
"withArrow": !disableEndPoint,
|
|
99
|
-
"language": language,
|
|
100
|
-
"onClick": () => !disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
101
|
-
}, null) : createVNode(DrivingRoute, {
|
|
99
|
+
}, null), useRealRoute ? createVNode(DrivingRoute, {
|
|
102
100
|
"to": to,
|
|
103
101
|
"from": from,
|
|
104
102
|
"render": ({
|
|
@@ -110,32 +108,35 @@ const BusinessQuotingMapInner = defineSetup("BusinessQuotingMapInner", function(
|
|
|
110
108
|
init,
|
|
111
109
|
isCrossBorder = false
|
|
112
110
|
}) => {
|
|
113
|
-
if (!init)
|
|
111
|
+
if (!init) {
|
|
114
112
|
emit("drivingRouteDone", {
|
|
115
113
|
hasRoute: path.length !== 0,
|
|
116
114
|
distance: distance2,
|
|
117
115
|
duration,
|
|
118
116
|
isCrossBorder
|
|
119
117
|
});
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"description": renderDescription({
|
|
118
|
+
}
|
|
119
|
+
return [
|
|
120
|
+
// 只有非贝塞尔模式才显示 TrafficDrivingLine - 用于在地图上绘制带有交通路况颜色的路线
|
|
121
|
+
!isBezierCurve && createVNode(TrafficDrivingLine, {
|
|
122
|
+
"path": path,
|
|
123
|
+
"trafficJams": trafficJams
|
|
124
|
+
}, null),
|
|
125
|
+
renderEndPoint(to, toPlace, renderDescription({
|
|
129
126
|
distance: distance2,
|
|
130
127
|
duration,
|
|
131
128
|
tolls
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
"language": language,
|
|
135
|
-
"onClick": () => !disableEndPoint && emit("clickEndPoint", coordinatifyPlace(toPlace))
|
|
136
|
-
}, null)];
|
|
129
|
+
}))
|
|
130
|
+
].filter(Boolean);
|
|
137
131
|
}
|
|
138
|
-
}, null)
|
|
132
|
+
}, null) : (
|
|
133
|
+
// useRealRoute === false:只显示贝塞尔曲线 + 静态终点信息(无 DrivingRoute)
|
|
134
|
+
renderEndPoint(to, toPlace, renderDescription({
|
|
135
|
+
distance,
|
|
136
|
+
duration: 0,
|
|
137
|
+
tolls: 0
|
|
138
|
+
}))
|
|
139
|
+
), createVNode(FitViewOnce, {
|
|
139
140
|
"registerOverlay": registerOverlay,
|
|
140
141
|
"immediate": true
|
|
141
142
|
}, null)]
|
|
@@ -159,7 +160,7 @@ const BusinessQuotingMap = defineLagecySetup("BusinessQuotingMap", function(prop
|
|
|
159
160
|
key: `${payload.supplier}${instanceNo}`,
|
|
160
161
|
on: generateCreateElementV2PropsOn(props, emit, ["clickStartPoint", "clickEndPoint", "drivingRouteDone"])
|
|
161
162
|
});
|
|
162
|
-
}).props(["fallback", "from", "loading", "disableStartPoint", "disableEndPoint", "mapContext", "renderDescription", "to", "fromDescription", "log", "isBezierCurve"]);
|
|
163
|
+
}).props(["fallback", "from", "loading", "disableStartPoint", "disableEndPoint", "mapContext", "renderDescription", "to", "fromDescription", "log", "isBezierCurve", "isNeedMapRouteData"]);
|
|
163
164
|
export {
|
|
164
165
|
BusinessQuotingMap,
|
|
165
166
|
BusinessQuotingMapInner
|
|
@@ -50,7 +50,7 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
50
50
|
onClickLocatorText?: AbsoluteAddressBoxProps["onClickText"];
|
|
51
51
|
onClickLocatorPhoto?: AbsoluteAddressBoxProps["onClickPhoto"];
|
|
52
52
|
}
|
|
53
|
-
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
53
|
+
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessRecomendPlaceMapProps, BusinessRecomendPlaceMapProps, import("vue-demi").SlotsType<{
|
|
54
54
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
55
55
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
56
56
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -58,7 +58,7 @@ export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineCom
|
|
|
58
58
|
} & {
|
|
59
59
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
60
60
|
}>>;
|
|
61
|
-
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
61
|
+
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, 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<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessRecomendPlaceMapProps, BusinessRecomendPlaceMapProps, import("vue-demi").SlotsType<{
|
|
62
62
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
63
63
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
64
64
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -3,14 +3,14 @@ import { type BusinessRecomendPlaceMapProps } from "../BusinessRecomendPlaceMap"
|
|
|
3
3
|
export interface BusinessReselectPlaceMapProps extends Pick<BusinessRecomendPlaceMapProps, "geoErrorOnceNotificationKey" | "loading" | "fallback" | "log" | "getAvailable" | "getRecomendPlace" | "unavailableTitle" | "forbiddenTitle" | "emptyTitle" | "queryingTitle" | "recomendDescription" | "disableLocator" | "disableLocatorPhoto" | "mapContext" | "renderPlacePhoto" | "renderPlaceTag" | "onChangeGeoLocation" | "onChangePlace" | "onChangeRecomandPlace" | "onGeoError" | "onGeoErrorOnce" | "onClickLocatorText" | "onClickLocatorPhoto"> {
|
|
4
4
|
defaultPlace?: CoordinatePlace;
|
|
5
5
|
}
|
|
6
|
-
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
6
|
+
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessReselectPlaceMapProps, BusinessReselectPlaceMapProps, import("vue-demi").SlotsType<{
|
|
7
7
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
8
8
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
9
9
|
renderPlaceTag?: ((place: Place) => string | undefined) | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
12
12
|
}>>;
|
|
13
|
-
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
13
|
+
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, 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<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessReselectPlaceMapProps, BusinessReselectPlaceMapProps, import("vue-demi").SlotsType<{
|
|
14
14
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
15
15
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
16
16
|
renderPlaceTag?: ((place: Place) => string | undefined) | undefined;
|
|
@@ -37,7 +37,7 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
|
|
|
37
37
|
}) => void;
|
|
38
38
|
onClickStartServicePoint?: () => void;
|
|
39
39
|
};
|
|
40
|
-
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
40
|
+
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartPoint" | "clickStartServicePoint", import("vue-demi").PublicProps, BusinessTaxiServiceMapProps, BusinessTaxiServiceMapProps, import("vue-demi").SlotsType<{
|
|
41
41
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
42
42
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
43
43
|
outerArea?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -54,7 +54,7 @@ export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineCompo
|
|
|
54
54
|
} & {
|
|
55
55
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
56
56
|
}>>;
|
|
57
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
57
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartPoint" | "clickStartServicePoint", import("vue-demi").PublicProps, BusinessTaxiServiceMapProps, BusinessTaxiServiceMapProps, import("vue-demi").SlotsType<{
|
|
58
58
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
59
59
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
60
60
|
outerArea?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -22,7 +22,7 @@ interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceP
|
|
|
22
22
|
relayToTitle?: string;
|
|
23
23
|
onClickStartServicePoint?: () => void;
|
|
24
24
|
}
|
|
25
|
-
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, 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<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "
|
|
25
|
+
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, 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<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "clickStartPoint" | "clickStartServicePoint", import("vue").PublicProps, SectionDriverStartRelayServiceProps, SectionDriverStartRelayServiceProps, import("vue").SlotsType<{
|
|
26
26
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
27
27
|
renderStartServiceSubTitle?: (() => string) | undefined;
|
|
28
28
|
renderStartSubTitle?: ((path: CoordinatePoint, from: CoordinatePoint) => string) | undefined;
|
|
@@ -49,7 +49,7 @@ type SectionDriverStartServiceProps = Required<MROP> & {
|
|
|
49
49
|
from: CoordinatePoint;
|
|
50
50
|
}) => void;
|
|
51
51
|
};
|
|
52
|
-
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, 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<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "
|
|
52
|
+
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, 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<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "clickStartPoint" | "clickStartServicePoint", import("vue").PublicProps, SectionDriverStartServiceProps, SectionDriverStartServiceProps, import("vue").SlotsType<{
|
|
53
53
|
renderTitle: (props: Pick<DrivingRouteRenderProps, "duration" | "distance">) => string;
|
|
54
54
|
renderStartServiceSubTitle?: (() => string) | undefined;
|
|
55
55
|
renderStartSubTitle?: ((path: CoordinatePoint, from: CoordinatePoint) => string) | undefined;
|
package/dist/v3/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.
|
|
3
|
+
const pkgVersion = "2.24.0-routeCorrection2";
|
|
4
4
|
const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
|
|
5
5
|
const enableSessionLogKey = (key) => {
|
|
6
6
|
const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
|