@heycar/heycars-map 0.9.27-google1 → 0.9.27-google3
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/business-components/PlaceCircle/PlaceCircle.css.d.ts +2 -2
- package/dist/business-components/PlaceCircle/PlaceCircle.js +1 -1
- package/dist/chunks/Loading.38dc81fd.js +27 -0
- package/dist/components/Loading/Loading.js +5 -24
- package/dist/components/Loading/index.js +2 -2
- package/dist/components/MapProvider/MapProvider.css.d.ts +1 -0
- package/dist/components/MapProvider/MapProvider.js +14 -6
- package/dist/css/{MapProvider-b7c6d8be.css → MapProvider-156bfd53.css} +10 -0
- package/dist/css/{PlaceCircle-752cc049.css → PlaceCircle-2369f992.css} +2 -2
- package/dist/utils/log.js +1 -1
- package/dist/utils/transform.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
22
|
+
transform: "translate(calc(-50% + 2.265vw), 50%)";
|
|
23
23
|
};
|
|
24
24
|
right: {
|
|
25
|
-
|
|
25
|
+
transform: "translate(calc(50% - 2.265vw), 50%)";
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
}>;
|
|
@@ -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 "
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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
|
-
});
|
|
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,17 +1,18 @@
|
|
|
1
|
-
import "../../css/MapProvider-
|
|
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]),
|
|
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
|
}
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
width: max-content;
|
|
17
17
|
}
|
|
18
18
|
.fhyw86 {
|
|
19
|
-
|
|
19
|
+
transform: translate(calc(-50% + 2.265vw), 50%);
|
|
20
20
|
}
|
|
21
21
|
.fhyw87 {
|
|
22
|
-
|
|
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-
|
|
3
|
+
const pkgVersion = "0.9.27-google3";
|
|
4
4
|
const isEnableLog = (name) => {
|
|
5
5
|
const searchParam = new URLSearchParams(location.search);
|
|
6
6
|
return searchParam.has(`log-${name}`);
|
package/dist/utils/transform.js
CHANGED
|
@@ -107,7 +107,7 @@ function amapPlaceName2DisplayNameOutChina(name, options) {
|
|
|
107
107
|
if (street || streetNumber)
|
|
108
108
|
return `${street} ${streetNumber}`;
|
|
109
109
|
const idxs = [];
|
|
110
|
-
for (const token of [
|
|
110
|
+
for (const token of [adcode, province, city, district, township]) {
|
|
111
111
|
if (!token)
|
|
112
112
|
continue;
|
|
113
113
|
if (idxs.length === 2)
|