@heycar/heycars-map 2.15.5-drivingCorrect → 2.15.5-drivingCorrect2

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/App.js CHANGED
@@ -2,10 +2,10 @@ import { h } from "vue";
2
2
  import { defineComponent, ref } from "vue-demi";
3
3
  import { DemoBusinessQuoting } from "./Demo/DemoBusinessQuoting.js";
4
4
  import { MapProvider } from "./components/MapProvider/MapProvider.js";
5
- const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
6
- const gmapId = "d0af0c05331af64a";
7
- const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
8
- const amapApiSecret = "11ad0e3d585b80d18b1ada5b0d947c4a";
5
+ const gmapApiKey = {}.VITE_GMAP_API_KEY;
6
+ const gmapId = {}.VITE_GMAP_MAP_ID;
7
+ const amapApiKey = {}.VITE_AMAP_API_KEY;
8
+ const amapApiSecret = {}.VITE_AMAP_API_SECRET;
9
9
  const App = defineComponent({
10
10
  setup() {
11
11
  const supplierRef = ref("amap");
@@ -13,7 +13,7 @@ const useADrivingRoute = (props) => {
13
13
  steps: [],
14
14
  trafficJams: void 0
15
15
  });
16
- const amapDriving = new AMap.Driving({});
16
+ const amapDriving = new AMap.Driving({ ferry: 1 });
17
17
  const apiMapDrivingRoute = (from, to, waypoints = []) => {
18
18
  return googleRoutesProxyUrl && inTaiwan(from) ? googleServiceApiDrivingRoute(from, to, waypoints, googleRoutesProxyUrl) : amapJsApiDrivingRoute(from, to, waypoints, amapDriving);
19
19
  };
@@ -31,6 +31,7 @@ export { useMapGeometry } from "./hooks/useMapGeometry";
31
31
  export { useMapPlace } from "./hooks/useMapPlace";
32
32
  export { useMapRecomendPlace } from "./hooks/useMapRecomendPlace";
33
33
  export { useWalkingRoute } from "./hooks/useWalkingRoute";
34
+ export * from "./hooks/useMapInChina";
34
35
  export * from "./types/global";
35
36
  export * from "./types/interface";
36
37
  export * from "./utils/patchMiniprogram";
package/dist/v2/index.js CHANGED
@@ -32,6 +32,7 @@ import { useMapGeometry } from "./hooks/useMapGeometry.js";
32
32
  import { useMapPlace } from "./hooks/useMapPlace.js";
33
33
  import { useMapRecomendPlace } from "./hooks/useMapRecomendPlace.js";
34
34
  import { useWalkingRoute } from "./hooks/useWalkingRoute.js";
35
+ import { inChina, inHongkong, inKorean, inMacau, inTaiwan } from "./hooks/useMapInChina.js";
35
36
  import { CenterPlaceStatus } from "./types/interface.js";
36
37
  import { MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT, patchMiniprogramRedirectTo } from "./utils/patchMiniprogram.js";
37
38
  export {
@@ -56,6 +57,11 @@ export {
56
57
  WalkingLine,
57
58
  WalkingRoute,
58
59
  WaveCircle,
60
+ inChina,
61
+ inHongkong,
62
+ inKorean,
63
+ inMacau,
64
+ inTaiwan,
59
65
  isCoordinatePointEqual,
60
66
  patchMiniprogramRedirectTo,
61
67
  useBusinessAlarm,
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.15.0-sgn1";
3
+ const pkgVersion = "2.15.5-drivingCorrect2";
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
@@ -2,10 +2,10 @@ import { createVNode } from "vue";
2
2
  import { defineComponent, ref } from "vue-demi";
3
3
  import { DemoBusinessQuoting } from "./Demo/DemoBusinessQuoting.js";
4
4
  import { MapProvider } from "./components/MapProvider/MapProvider.js";
5
- const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
6
- const gmapId = "d0af0c05331af64a";
7
- const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
8
- const amapApiSecret = "11ad0e3d585b80d18b1ada5b0d947c4a";
5
+ const gmapApiKey = {}.VITE_GMAP_API_KEY;
6
+ const gmapId = {}.VITE_GMAP_MAP_ID;
7
+ const amapApiKey = {}.VITE_AMAP_API_KEY;
8
+ const amapApiSecret = {}.VITE_AMAP_API_SECRET;
9
9
  const App = /* @__PURE__ */ defineComponent({
10
10
  setup() {
11
11
  const supplierRef = ref("amap");
@@ -13,7 +13,7 @@ const useADrivingRoute = (props) => {
13
13
  steps: [],
14
14
  trafficJams: void 0
15
15
  });
16
- const amapDriving = new AMap.Driving({});
16
+ const amapDriving = new AMap.Driving({ ferry: 1 });
17
17
  const apiMapDrivingRoute = (from, to, waypoints = []) => {
18
18
  return googleRoutesProxyUrl && inTaiwan(from) ? googleServiceApiDrivingRoute(from, to, waypoints, googleRoutesProxyUrl) : amapJsApiDrivingRoute(from, to, waypoints, amapDriving);
19
19
  };
@@ -31,6 +31,7 @@ export { useMapGeometry } from "./hooks/useMapGeometry";
31
31
  export { useMapPlace } from "./hooks/useMapPlace";
32
32
  export { useMapRecomendPlace } from "./hooks/useMapRecomendPlace";
33
33
  export { useWalkingRoute } from "./hooks/useWalkingRoute";
34
+ export * from "./hooks/useMapInChina";
34
35
  export * from "./types/global";
35
36
  export * from "./types/interface";
36
37
  export * from "./utils/patchMiniprogram";
package/dist/v3/index.js CHANGED
@@ -32,6 +32,7 @@ import { useMapGeometry } from "./hooks/useMapGeometry.js";
32
32
  import { useMapPlace } from "./hooks/useMapPlace.js";
33
33
  import { useMapRecomendPlace } from "./hooks/useMapRecomendPlace.js";
34
34
  import { useWalkingRoute } from "./hooks/useWalkingRoute.js";
35
+ import { inChina, inHongkong, inKorean, inMacau, inTaiwan } from "./hooks/useMapInChina.js";
35
36
  import { CenterPlaceStatus } from "./types/interface.js";
36
37
  import { MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT, patchMiniprogramRedirectTo } from "./utils/patchMiniprogram.js";
37
38
  export {
@@ -56,6 +57,11 @@ export {
56
57
  WalkingLine,
57
58
  WalkingRoute,
58
59
  WaveCircle,
60
+ inChina,
61
+ inHongkong,
62
+ inKorean,
63
+ inMacau,
64
+ inTaiwan,
59
65
  isCoordinatePointEqual,
60
66
  patchMiniprogramRedirectTo,
61
67
  useBusinessAlarm,
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.15.0-sgn1";
3
+ const pkgVersion = "2.15.5-drivingCorrect2";
4
4
  const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
5
5
  const enableSessionLogKey = (key) => {
6
6
  const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "2.15.5-drivingCorrect",
3
+ "version": "2.15.5-drivingCorrect2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js",