@heycar/heycars-map 0.9.27-google1 → 0.9.27-google2

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.
@@ -19,10 +19,10 @@ export declare const amapPlaceIconLayout: import("@vanilla-extract/recipes").Run
19
19
  export declare const gmapPlaceIconLayout: import("@vanilla-extract/recipes").RuntimeFn<{
20
20
  textAlign: {
21
21
  left: {
22
- marginRight: "calc(50% - 2.265vw)";
22
+ transform: "translate(calc(-50% + 2.265vw), 50%)";
23
23
  };
24
24
  right: {
25
- marginLeft: "calc(50% - 2.265vw)";
25
+ transform: "translate(calc(50% - 2.265vw), 50%)";
26
26
  };
27
27
  };
28
28
  }>;
@@ -1,4 +1,4 @@
1
- import "../../css/PlaceCircle-752cc049.css";
1
+ import "../../css/PlaceCircle-2369f992.css";
2
2
  import { computed, h } from "vue";
3
3
  import "../../chunks/index.fbc1adc8.js";
4
4
  import { ZINDEX_PLACE_LAYER } from "../../api/contants.js";
@@ -0,0 +1,27 @@
1
+ import "../css/Loading-523061b9.css";
2
+ import { h } from "vue";
3
+ import { AbsoluteAddressBox } from "../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
4
+ import { defineSetup } from "../types/helper.js";
5
+ const imgGrid = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzg1IiBoZWlnaHQ9IjgxNyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBzdHJva2U9IiNEOERCRTIiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWRhc2hhcnJheT0iMSI+PHBhdGggZD0iTS41IDgxN1YwTTI0LjUgODE3VjBNNDguNSA4MTdWME03Mi41IDgxN1YwTTk2LjUgODE3VjBNMTIwLjUgODE3VjBNMTQ0LjUgODE3VjBNMTY4LjUgODE3VjBNMTkyLjUgODE3VjBNMjE2LjUgODE3VjBNMjQwLjUgODE3VjBNMjY0LjUgODE3VjBNMjg4LjUgODE3VjBNMzEyLjUgODE3VjBNMzM2LjUgODE3VjBNMzYwLjUgODE3VjBNMzg0LjUgODE3VjBNMCAuNWgzODVNMCAyNC41aDM4NU0wIDQ4LjVoMzg1TTAgNzIuNWgzODVNMCA5Ni41aDM4NU0wIDEyMC41aDM4NU0wIDE0NC41aDM4NU0wIDE2OC41aDM4NU0wIDE5Mi41aDM4NU0wIDIxNi41aDM4NU0wIDI0MC41aDM4NU0wIDI2NC41aDM4NU0wIDI4OC41aDM4NU0wIDMxMi41aDM4NU0wIDMzNi41aDM4NU0wIDM2MC41aDM4NU0wIDM4NC41aDM4NU0wIDQwOC41aDM4NU0wIDQzMi41aDM4NU0wIDQ1Ni41aDM4NU0wIDQ4MC41aDM4NU0wIDUwNC41aDM4NU0wIDUyOC41aDM4NU0wIDU1Mi41aDM4NU0wIDU3Ni41aDM4NU0wIDYwMC41aDM4NU0wIDYyNC41aDM4NU0wIDY0OC41aDM4NU0wIDY3Mi41aDM4NU0wIDY5Ni41aDM4NU0wIDcyMC41aDM4NU0wIDc0NC41aDM4NU0wIDc2OC41aDM4NU0wIDc5Mi41aDM4NU0wIDgxNi41aDM4NSIvPjwvZz48L3N2Zz4=";
6
+ const Loading_css_ts_vanilla = "";
7
+ var loadingBg = "_17ify491";
8
+ var loadingLayout = "_17ify490";
9
+ const Loading = defineSetup(function Loading2() {
10
+ return () => h("div", {
11
+ "class": loadingLayout
12
+ }, [h("img", {
13
+ "class": loadingBg,
14
+ "attrs": {
15
+ "src": imgGrid
16
+ }
17
+ }), h(AbsoluteAddressBox, {
18
+ "attrs": {
19
+ "type": "loading",
20
+ "title": ""
21
+ }
22
+ })]);
23
+ });
24
+ export {
25
+ Loading as L,
26
+ imgGrid as i
27
+ };
@@ -1,26 +1,7 @@
1
- import "../../css/Loading-523061b9.css";
2
- import { h } from "vue";
3
- import { AbsoluteAddressBox } from "../../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
4
- import { defineSetup } from "../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const Loading_css_ts_vanilla = "";
7
- var loadingBg = "_17ify491";
8
- var loadingLayout = "_17ify490";
9
- const Loading = defineSetup(function Loading2() {
10
- return () => h("div", {
11
- "class": loadingLayout
12
- }, [h("img", {
13
- "class": loadingBg,
14
- "attrs": {
15
- "src": imgGrid
16
- }
17
- }), h(AbsoluteAddressBox, {
18
- "attrs": {
19
- "type": "loading",
20
- "title": ""
21
- }
22
- })]);
23
- });
1
+ import "vue";
2
+ import { L } from "../../chunks/Loading.38dc81fd.js";
3
+ import "../../business-components/AbsoluteAddressBox/AbsoluteAddressBox.js";
4
+ import "../../types/helper.js";
24
5
  export {
25
- Loading
6
+ L as Loading
26
7
  };
@@ -1,4 +1,4 @@
1
- import { Loading } from "./Loading.js";
1
+ import { L } from "../../chunks/Loading.38dc81fd.js";
2
2
  export {
3
- Loading
3
+ L as Loading
4
4
  };
@@ -1 +1,2 @@
1
1
  export declare const heycarMap: string;
2
+ export declare const heycarGmapBackgroundDefaultLoadingImage: string;
@@ -1,17 +1,18 @@
1
- import "../../css/MapProvider-b7c6d8be.css";
1
+ import "../../css/MapProvider-156bfd53.css";
2
2
  import { h } from "vue";
3
+ import { L as Loading, i as imgGrid } from "../../chunks/Loading.38dc81fd.js";
3
4
  import { useMapLoader, Status } from "../../hooks/useMapLoader.js";
4
5
  import { provideMapSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
5
6
  import { defineLagecySetup } from "../../types/helper.js";
6
7
  import "../../utils/alipayPolyfill.js";
7
8
  import { loadTraditionalChineseConvertOnce } from "../../utils/cn2tw.js";
8
- import { detectWebGL, WEBGL_STATUS, detectBrowserPlatform, BRWOSER_PLATFORM } from "../../utils/platform.js";
9
+ import { detectWebGL, WEBGL_STATUS, detectBrowserPlatform, OS_PLATFORM, BRWOSER_PLATFORM, detectOSPlatform } from "../../utils/platform.js";
9
10
  import { language2vectorMapForeign, vec2lnglat } from "../../utils/transform.js";
10
11
  import { Amap } from "../Amap/Amap.js";
11
12
  import { Gmap } from "../Gmap/Gmap.js";
12
- import { Loading } from "../Loading/Loading.js";
13
13
  const style_css_ts_vanilla = "";
14
14
  const MapProvider_css_ts_vanilla = "";
15
+ var heycarGmapBackgroundDefaultLoadingImage = "_16q981k1";
15
16
  var heycarMap = "_16q981k0";
16
17
  window.movingDraw = !new URLSearchParams(location.search).has("disableMovingDraw");
17
18
  if (detectWebGL() === WEBGL_STATUS.ENABLED) {
@@ -110,13 +111,19 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
110
111
  "disableDoubleClickZoom": !touchEnable,
111
112
  "gestureHandling": touchEnable ? "greedy" : "none",
112
113
  "keyboardShortcuts": touchEnable,
113
- "touchZoomCenter": touchZoomCenter
114
+ "touchZoomCenter": touchZoomCenter,
115
+ "backgroundColor": "transparent"
114
116
  },
115
117
  "on": {
116
118
  "dragEnd": gmapHandleDargEnd,
117
119
  "resize": handleResize
118
120
  }
119
- }, [children]), outArea]);
121
+ }, [children]), h("img", {
122
+ "class": heycarGmapBackgroundDefaultLoadingImage,
123
+ "attrs": {
124
+ "src": imgGrid
125
+ }
126
+ }), outArea]);
120
127
  default:
121
128
  return h("div", {
122
129
  "class": heycarMap,
@@ -154,8 +161,9 @@ function patchGmapIdForAlipayCompatible(props) {
154
161
  touchEnable,
155
162
  touchZoomCenter
156
163
  } = props;
164
+ const os = detectOSPlatform();
157
165
  const platform = detectBrowserPlatform();
158
- if (platform !== BRWOSER_PLATFORM.ALIPAY_MINIPROGRAM)
166
+ if (os !== OS_PLATFORM.ANDROID || platform !== BRWOSER_PLATFORM.ALIPAY_MINIPROGRAM)
159
167
  return gmapId;
160
168
  return touchEnable && !touchZoomCenter ? gmapRasterId : gmapId;
161
169
  }
@@ -6,4 +6,14 @@
6
6
  position: relative;
7
7
  user-select: none;
8
8
  -webkit-touch-callout: none;
9
+ }
10
+ ._16q981k1 {
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ height: 100%;
16
+ object-fit: cover;
17
+ background-color: #EDF1F5;
18
+ z-index: -1;
9
19
  }
@@ -16,10 +16,10 @@
16
16
  width: max-content;
17
17
  }
18
18
  .fhyw86 {
19
- margin-right: calc(50% - 2.265vw);
19
+ transform: translate(calc(-50% + 2.265vw), 50%);
20
20
  }
21
21
  .fhyw87 {
22
- margin-left: calc(50% - 2.265vw);
22
+ transform: translate(calc(50% - 2.265vw), 50%);
23
23
  }
24
24
  .fhyw88 {
25
25
  display: flex;
package/dist/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 = "0.9.27-google1";
3
+ const pkgVersion = "0.9.27-google2";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.27-google1",
3
+ "version": "0.9.27-google2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"