@heycar/heycars-map 2.19.0-drivingRouteFail5 → 2.19.0-drivingRouteFail6
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/dist/v2/business-components/DrivingRoute/DrivingRoute.js +8 -4
- package/dist/v2/hooks/useDrivingRoute.js +8 -1
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/business-components/DrivingRoute/DrivingRoute.js +8 -4
- package/dist/v3/hooks/useDrivingRoute.js +8 -1
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,8 @@ const ADrivingRoute = defineSetup("ADrivingRoute", function(props, {
|
|
|
16
16
|
duration,
|
|
17
17
|
tolls,
|
|
18
18
|
trafficJams,
|
|
19
|
-
init
|
|
19
|
+
init,
|
|
20
|
+
isCrossBorder
|
|
20
21
|
} = toRefs(useADrivingRoute(props).route);
|
|
21
22
|
const {
|
|
22
23
|
angleRef
|
|
@@ -33,7 +34,8 @@ const ADrivingRoute = defineSetup("ADrivingRoute", function(props, {
|
|
|
33
34
|
duration,
|
|
34
35
|
tolls,
|
|
35
36
|
trafficJams,
|
|
36
|
-
init
|
|
37
|
+
init,
|
|
38
|
+
isCrossBorder
|
|
37
39
|
}))]);
|
|
38
40
|
};
|
|
39
41
|
});
|
|
@@ -45,7 +47,8 @@ const GDrivingRoute = defineSetup("GDrivingRoute", function(props, {
|
|
|
45
47
|
path,
|
|
46
48
|
distance,
|
|
47
49
|
duration,
|
|
48
|
-
init
|
|
50
|
+
init,
|
|
51
|
+
isCrossBorder
|
|
49
52
|
} = toRefs(useGDrivingRoute(props).route);
|
|
50
53
|
const {
|
|
51
54
|
angleRef
|
|
@@ -60,7 +63,8 @@ const GDrivingRoute = defineSetup("GDrivingRoute", function(props, {
|
|
|
60
63
|
angle: angleRef,
|
|
61
64
|
distance,
|
|
62
65
|
duration,
|
|
63
|
-
init
|
|
66
|
+
init,
|
|
67
|
+
isCrossBorder
|
|
64
68
|
}))]);
|
|
65
69
|
};
|
|
66
70
|
});
|
|
@@ -38,7 +38,14 @@ const useADrivingRoute = (props) => {
|
|
|
38
38
|
};
|
|
39
39
|
const useGDrivingRoute = (props) => {
|
|
40
40
|
const { gaodeDirectionDrivingProxyUrl, googleRoutesProxyUrl } = useMapSupplier();
|
|
41
|
-
const outputRoute = reactive({
|
|
41
|
+
const outputRoute = reactive({
|
|
42
|
+
path: [],
|
|
43
|
+
distance: 0,
|
|
44
|
+
duration: 0,
|
|
45
|
+
steps: [],
|
|
46
|
+
init: true,
|
|
47
|
+
isCrossBorder: false
|
|
48
|
+
});
|
|
42
49
|
const gmapDirectionsService = new google.maps.DirectionsService();
|
|
43
50
|
const apiMapDrivingRoute = (from, to, waypoints = []) => {
|
|
44
51
|
return gaodeDirectionDrivingProxyUrl && inKorean(from) ? gaodeServiceApiDrivingRoute(from, to, waypoints, gaodeDirectionDrivingProxyUrl) : googleRoutesProxyUrl ? googleServiceApiDrivingRoute(from, to, waypoints, googleRoutesProxyUrl) : gmapJsApiDrivingRoute(from, to, waypoints, gmapDirectionsService);
|
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.19.0-
|
|
3
|
+
const pkgVersion = "2.19.0-drivingRouteFail6";
|
|
4
4
|
const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
|
|
5
5
|
const enableSessionLogKey = (key) => {
|
|
6
6
|
const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
|
|
@@ -16,7 +16,8 @@ const ADrivingRoute = defineSetup("ADrivingRoute", function(props, {
|
|
|
16
16
|
duration,
|
|
17
17
|
tolls,
|
|
18
18
|
trafficJams,
|
|
19
|
-
init
|
|
19
|
+
init,
|
|
20
|
+
isCrossBorder
|
|
20
21
|
} = toRefs(useADrivingRoute(props).route);
|
|
21
22
|
const {
|
|
22
23
|
angleRef
|
|
@@ -33,7 +34,8 @@ const ADrivingRoute = defineSetup("ADrivingRoute", function(props, {
|
|
|
33
34
|
duration,
|
|
34
35
|
tolls,
|
|
35
36
|
trafficJams,
|
|
36
|
-
init
|
|
37
|
+
init,
|
|
38
|
+
isCrossBorder
|
|
37
39
|
}))]);
|
|
38
40
|
};
|
|
39
41
|
});
|
|
@@ -45,7 +47,8 @@ const GDrivingRoute = defineSetup("GDrivingRoute", function(props, {
|
|
|
45
47
|
path,
|
|
46
48
|
distance,
|
|
47
49
|
duration,
|
|
48
|
-
init
|
|
50
|
+
init,
|
|
51
|
+
isCrossBorder
|
|
49
52
|
} = toRefs(useGDrivingRoute(props).route);
|
|
50
53
|
const {
|
|
51
54
|
angleRef
|
|
@@ -60,7 +63,8 @@ const GDrivingRoute = defineSetup("GDrivingRoute", function(props, {
|
|
|
60
63
|
angle: angleRef,
|
|
61
64
|
distance,
|
|
62
65
|
duration,
|
|
63
|
-
init
|
|
66
|
+
init,
|
|
67
|
+
isCrossBorder
|
|
64
68
|
}))]);
|
|
65
69
|
};
|
|
66
70
|
});
|
|
@@ -38,7 +38,14 @@ const useADrivingRoute = (props) => {
|
|
|
38
38
|
};
|
|
39
39
|
const useGDrivingRoute = (props) => {
|
|
40
40
|
const { gaodeDirectionDrivingProxyUrl, googleRoutesProxyUrl } = useMapSupplier();
|
|
41
|
-
const outputRoute = reactive({
|
|
41
|
+
const outputRoute = reactive({
|
|
42
|
+
path: [],
|
|
43
|
+
distance: 0,
|
|
44
|
+
duration: 0,
|
|
45
|
+
steps: [],
|
|
46
|
+
init: true,
|
|
47
|
+
isCrossBorder: false
|
|
48
|
+
});
|
|
42
49
|
const gmapDirectionsService = new google.maps.DirectionsService();
|
|
43
50
|
const apiMapDrivingRoute = (from, to, waypoints = []) => {
|
|
44
51
|
return gaodeDirectionDrivingProxyUrl && inKorean(from) ? gaodeServiceApiDrivingRoute(from, to, waypoints, gaodeDirectionDrivingProxyUrl) : googleRoutesProxyUrl ? googleServiceApiDrivingRoute(from, to, waypoints, googleRoutesProxyUrl) : gmapJsApiDrivingRoute(from, to, waypoints, gmapDirectionsService);
|
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.19.0-
|
|
3
|
+
const pkgVersion = "2.19.0-drivingRouteFail6";
|
|
4
4
|
const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
|
|
5
5
|
const enableSessionLogKey = (key) => {
|
|
6
6
|
const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
|