@heycar/heycars-map 2.26.0-setLimitBounds → 2.27.0-footPrint2
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 +2 -2
- package/dist/v2/Demo/DemoBusinessFootPrintMap.d.ts +3 -0
- package/dist/v2/Demo/DemoBusinessFootPrintMap.js +30 -0
- package/dist/v2/business-components/BusinessFootPrintMap/BusinessFootPrintMap.d.ts +5 -0
- package/dist/v2/business-components/BusinessFootPrintMap/BusinessFootPrintMap.js +50 -0
- package/dist/v2/business-components/BusinessFootPrintMap/index.d.ts +1 -0
- package/dist/v2/business-components/BusinessFootPrintMap/index.js +5 -0
- package/dist/v2/components/Amap/Amap.js +5 -1
- package/dist/v2/components/AmapCountryBorder/AmapCountryBorder.d.ts +4 -0
- package/dist/v2/components/AmapCountryBorder/AmapCountryBorder.js +37 -0
- package/dist/v2/components/AmapCountryBorder/index.d.ts +1 -0
- package/dist/v2/components/AmapCountryBorder/index.js +4 -0
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/index.js +2 -0
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/App.js +2 -2
- package/dist/v3/Demo/DemoBusinessFootPrintMap.d.ts +3 -0
- package/dist/v3/Demo/DemoBusinessFootPrintMap.js +26 -0
- package/dist/v3/business-components/BusinessFootPrintMap/BusinessFootPrintMap.d.ts +9 -0
- package/dist/v3/business-components/BusinessFootPrintMap/BusinessFootPrintMap.js +48 -0
- package/dist/v3/business-components/BusinessFootPrintMap/index.d.ts +1 -0
- package/dist/v3/business-components/BusinessFootPrintMap/index.js +5 -0
- package/dist/v3/components/Amap/Amap.js +5 -1
- package/dist/v3/components/AmapCountryBorder/AmapCountryBorder.d.ts +6 -0
- package/dist/v3/components/AmapCountryBorder/AmapCountryBorder.js +37 -0
- package/dist/v3/components/AmapCountryBorder/index.d.ts +1 -0
- package/dist/v3/components/AmapCountryBorder/index.js +4 -0
- package/dist/v3/index.d.ts +1 -0
- package/dist/v3/index.js +2 -0
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
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 { DemoBusinessFootPrint } from "./Demo/DemoBusinessFootPrintMap.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
7
7
|
const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
@@ -52,7 +52,7 @@ const App = defineComponent({
|
|
|
52
52
|
"fail": () => console.log(`${supplierRef.value} load failed`),
|
|
53
53
|
"downloadOptimizeEnd": () => console.log(`${supplierRef.value} load download optimize end`)
|
|
54
54
|
}
|
|
55
|
-
}, [h(
|
|
55
|
+
}, [h(DemoBusinessFootPrint)]);
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DemoBusinessFootPrint: import("vue-demi").DefineComponent<{}, unknown, {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { h } from "vue";
|
|
2
|
+
import { defineComponent } from "vue-demi";
|
|
3
|
+
import { BusinessFootPrintMap } from "../business-components/BusinessFootPrintMap/BusinessFootPrintMap.js";
|
|
4
|
+
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
5
|
+
const DemoBusinessFootPrint = defineComponent({
|
|
6
|
+
name: "DemoBusinessFootPrint",
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
socList: ["CHN", "JPN"]
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
render() {
|
|
13
|
+
const {
|
|
14
|
+
socList
|
|
15
|
+
} = this;
|
|
16
|
+
return h("div", [h("div", {
|
|
17
|
+
"on": {
|
|
18
|
+
"click": () => this.socList = ["JPN"]
|
|
19
|
+
}
|
|
20
|
+
}, ["改国家"]), h(BusinessFootPrintMap, {
|
|
21
|
+
"class": demo,
|
|
22
|
+
"attrs": {
|
|
23
|
+
"socList": socList
|
|
24
|
+
}
|
|
25
|
+
})]);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
DemoBusinessFootPrint
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface BusinessFootPrintMapProps {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare const BusinessFootPrintMapInner: import("vue/types/v3-define-component").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessFootPrintMapProps>, 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<BusinessFootPrintMapProps, Required<BusinessFootPrintMapProps>>, never, BusinessFootPrintMapProps>;
|
|
5
|
+
export declare const BusinessFootPrintMap: import("vue/types/v3-define-component").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessFootPrintMapProps>, 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<BusinessFootPrintMapProps, Required<BusinessFootPrintMapProps>>, never, BusinessFootPrintMapProps>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { h } from "vue";
|
|
2
|
+
import { HeycarMap } from "../../components/MapProvider/MapProvider.js";
|
|
3
|
+
import { useHeycarMap } from "../../hooks/useHeycarMap.js";
|
|
4
|
+
import { defineSetup } from "../../types/helper.js";
|
|
5
|
+
import { AmapCountryBorder } from "../../components/AmapCountryBorder/AmapCountryBorder.js";
|
|
6
|
+
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
7
|
+
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
8
|
+
const BusinessFootPrintMapInner = defineSetup("BusinessFootPrintMapInner", function(props, {
|
|
9
|
+
attrs
|
|
10
|
+
}) {
|
|
11
|
+
const {
|
|
12
|
+
setMap
|
|
13
|
+
} = useHeycarMap();
|
|
14
|
+
return () => {
|
|
15
|
+
console.log(props.socList);
|
|
16
|
+
return h(HeycarMap, {
|
|
17
|
+
"class": attrs.class,
|
|
18
|
+
"style": attrs.style,
|
|
19
|
+
"attrs": {
|
|
20
|
+
"touchZoomCenter": true,
|
|
21
|
+
"zoom": 1,
|
|
22
|
+
"mapRef": setMap
|
|
23
|
+
}
|
|
24
|
+
}, [h(AmapCountryBorder, {
|
|
25
|
+
"attrs": {
|
|
26
|
+
"socList": props.socList
|
|
27
|
+
}
|
|
28
|
+
})]);
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
const BusinessFootPrintMap = defineSetup("BusinessFootPrintMap", function(props, {
|
|
32
|
+
attrs
|
|
33
|
+
}) {
|
|
34
|
+
const payload = useMapSupplier();
|
|
35
|
+
const instanceNo = Date.now();
|
|
36
|
+
return () => createElement(BusinessFootPrintMapInner, {
|
|
37
|
+
...attrs.class ? {
|
|
38
|
+
class: attrs.class
|
|
39
|
+
} : {},
|
|
40
|
+
...attrs.style ? {
|
|
41
|
+
style: attrs.style
|
|
42
|
+
} : {},
|
|
43
|
+
attrs: props,
|
|
44
|
+
key: `${payload.supplier}${instanceNo}`
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
BusinessFootPrintMap,
|
|
49
|
+
BusinessFootPrintMapInner
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BusinessFootPrintMap";
|
|
@@ -57,7 +57,11 @@ const Amap = defineSetup("Amap", function(props, { slots, emit, attrs }) {
|
|
|
57
57
|
const map = new SafeAmap(elementRef.value, {
|
|
58
58
|
...defaultOptions,
|
|
59
59
|
scrollWheel: defaultOptions.touchZoomCenter ? false : defaultOptions.scrollWheel,
|
|
60
|
-
doubleClickZoom: defaultOptions.touchZoomCenter ? false : defaultOptions.doubleClickZoom
|
|
60
|
+
doubleClickZoom: defaultOptions.touchZoomCenter ? false : defaultOptions.doubleClickZoom,
|
|
61
|
+
WebGLParams: {
|
|
62
|
+
preserveDrawingBuffer: true
|
|
63
|
+
// 强制开启,截图必备
|
|
64
|
+
}
|
|
61
65
|
});
|
|
62
66
|
window.GlobalAmap = map;
|
|
63
67
|
defaultOptions.defaultZooms && map.setZooms(defaultOptions.defaultZooms);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export interface AmapCountryBorderProps {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare const AmapCountryBorder: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<AmapCountryBorderProps>, 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<AmapCountryBorderProps, Required<AmapCountryBorderProps>>, never, AmapCountryBorderProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { watchPostEffect } from "vue-demi";
|
|
2
|
+
import { useAmap } from "../../hooks/useMap.js";
|
|
3
|
+
import { defineSetup } from "../../types/helper.js";
|
|
4
|
+
const getWorld = (list) => new AMap.DistrictLayer.World({
|
|
5
|
+
zIndex: 10,
|
|
6
|
+
zooms: [1, 10],
|
|
7
|
+
styles: {
|
|
8
|
+
// fill回调:每个国家执行一次,props.SOC就是国家SOC编码
|
|
9
|
+
fill: function(prop) {
|
|
10
|
+
if (list == null ? void 0 : list.includes(prop.SOC)) {
|
|
11
|
+
return "rgba(0, 0, 200, 1)";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const AmapCountryBorder = defineSetup(
|
|
17
|
+
"AmapCountryBorder",
|
|
18
|
+
function(props) {
|
|
19
|
+
const mapRef = useAmap();
|
|
20
|
+
watchPostEffect((onCleanup) => {
|
|
21
|
+
var _a;
|
|
22
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
23
|
+
if (!(map == null ? void 0 : map.amap))
|
|
24
|
+
return;
|
|
25
|
+
const world = getWorld(props.socList);
|
|
26
|
+
(_a = map.amap) == null ? void 0 : _a.add(world);
|
|
27
|
+
onCleanup(() => {
|
|
28
|
+
var _a2;
|
|
29
|
+
return (_a2 = map.amap) == null ? void 0 : _a2.remove(world);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return () => null;
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
export {
|
|
36
|
+
AmapCountryBorder
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapCountryBorder";
|
package/dist/v2/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { BusinessRecomendPlaceMap } from "./business-components/BusinessRecomend
|
|
|
5
5
|
export { BusinessReselectPlaceMap } from "./business-components/BusinessReselectPlaceMap";
|
|
6
6
|
export { BusinessTaxiEndMap } from "./business-components/BusinessTaxiEndMap";
|
|
7
7
|
export { BusinessTaxiServiceMap } from "./business-components/BusinessTaxiServiceMap";
|
|
8
|
+
export { BusinessFootPrintMap } from "./business-components/BusinessFootPrintMap";
|
|
8
9
|
export { DrivingLine } from "./business-components/DrivingLine";
|
|
9
10
|
export { DrivingRoute } from "./business-components/DrivingRoute";
|
|
10
11
|
export { PassengerCircle } from "./business-components/PassengerCircle";
|
package/dist/v2/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { B } from "./chunks/BusinessRecomendPlaceMap.965338be.js";
|
|
|
6
6
|
import { BusinessReselectPlaceMap } from "./business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js";
|
|
7
7
|
import { BusinessTaxiEndMap } from "./business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js";
|
|
8
8
|
import { BusinessTaxiServiceMap } from "./business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js";
|
|
9
|
+
import { BusinessFootPrintMap } from "./business-components/BusinessFootPrintMap/BusinessFootPrintMap.js";
|
|
9
10
|
import { DrivingLine } from "./business-components/DrivingLine/DrivingLine.js";
|
|
10
11
|
import { DrivingRoute } from "./business-components/DrivingRoute/DrivingRoute.js";
|
|
11
12
|
import { PassengerCircle } from "./business-components/PassengerCircle/PassengerCircle.js";
|
|
@@ -37,6 +38,7 @@ import { CenterPlaceStatus, PointSource } from "./types/interface.js";
|
|
|
37
38
|
import { MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT, patchMiniprogramRedirectTo } from "./utils/patchMiniprogram.js";
|
|
38
39
|
export {
|
|
39
40
|
AbsoluteAddressBox,
|
|
41
|
+
BusinessFootPrintMap,
|
|
40
42
|
BusinessQuotingMap,
|
|
41
43
|
B as BusinessRecomendPlaceMap,
|
|
42
44
|
BusinessReselectPlaceMap,
|
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.27.0-footPrint2";
|
|
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 { DemoBusinessFootPrint } from "./Demo/DemoBusinessFootPrintMap.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
7
7
|
const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
@@ -49,7 +49,7 @@ const App = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
"onDownloadOptimizeEnd": () => console.log(`${supplierRef.value} load download optimize end`),
|
|
50
50
|
"reportLog": () => console.log("reportLog function is called")
|
|
51
51
|
}, {
|
|
52
|
-
default: () => [createVNode(
|
|
52
|
+
default: () => [createVNode(DemoBusinessFootPrint, null, null)]
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DemoBusinessFootPrint: import("vue-demi").DefineComponent<{}, {}, {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").PublicProps, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { defineComponent } from "vue-demi";
|
|
3
|
+
import { BusinessFootPrintMap } from "../business-components/BusinessFootPrintMap/BusinessFootPrintMap.js";
|
|
4
|
+
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
5
|
+
const DemoBusinessFootPrint = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "DemoBusinessFootPrint",
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
socList: ["CHN", "JPN"]
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
render() {
|
|
13
|
+
const {
|
|
14
|
+
socList
|
|
15
|
+
} = this;
|
|
16
|
+
return createVNode("div", null, [createVNode("div", {
|
|
17
|
+
"onClick": () => this.socList = ["JPN"]
|
|
18
|
+
}, [createTextVNode("改国家")]), createVNode(BusinessFootPrintMap, {
|
|
19
|
+
"class": demo,
|
|
20
|
+
"socList": socList
|
|
21
|
+
}, null)]);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
DemoBusinessFootPrint
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface BusinessFootPrintMapProps {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare const BusinessFootPrintMapInner: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessFootPrintMapProps>, 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<BusinessFootPrintMapProps, Required<BusinessFootPrintMapProps>>, never, import("@vue/runtime-core").PublicProps, BusinessFootPrintMapProps, BusinessFootPrintMapProps, import("@vue/runtime-core").SlotsType<{} & {
|
|
5
|
+
default?: import("../../demi-polyfill").Slot | undefined;
|
|
6
|
+
}>>;
|
|
7
|
+
export declare const BusinessFootPrintMap: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessFootPrintMapProps>, 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<BusinessFootPrintMapProps, Required<BusinessFootPrintMapProps>>, never, import("@vue/runtime-core").PublicProps, BusinessFootPrintMapProps, BusinessFootPrintMapProps, import("@vue/runtime-core").SlotsType<{} & {
|
|
8
|
+
default?: import("../../demi-polyfill").Slot | undefined;
|
|
9
|
+
}>>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createVNode } from "vue";
|
|
2
|
+
import { HeycarMap } from "../../components/MapProvider/MapProvider.js";
|
|
3
|
+
import { useHeycarMap } from "../../hooks/useHeycarMap.js";
|
|
4
|
+
import { defineSetup } from "../../types/helper.js";
|
|
5
|
+
import { AmapCountryBorder } from "../../components/AmapCountryBorder/AmapCountryBorder.js";
|
|
6
|
+
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
7
|
+
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
8
|
+
const BusinessFootPrintMapInner = defineSetup("BusinessFootPrintMapInner", function(props, {
|
|
9
|
+
attrs
|
|
10
|
+
}) {
|
|
11
|
+
const {
|
|
12
|
+
setMap
|
|
13
|
+
} = useHeycarMap();
|
|
14
|
+
return () => {
|
|
15
|
+
console.log(props.socList);
|
|
16
|
+
return createVNode(HeycarMap, {
|
|
17
|
+
"class": attrs.class,
|
|
18
|
+
"style": attrs.style,
|
|
19
|
+
"touchZoomCenter": true,
|
|
20
|
+
"zoom": 1,
|
|
21
|
+
"mapRef": setMap
|
|
22
|
+
}, {
|
|
23
|
+
default: () => [createVNode(AmapCountryBorder, {
|
|
24
|
+
"socList": props.socList
|
|
25
|
+
}, null)]
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
const BusinessFootPrintMap = defineSetup("BusinessFootPrintMap", function(props, {
|
|
30
|
+
attrs
|
|
31
|
+
}) {
|
|
32
|
+
const payload = useMapSupplier();
|
|
33
|
+
const instanceNo = Date.now();
|
|
34
|
+
return () => createElement(BusinessFootPrintMapInner, {
|
|
35
|
+
...attrs.class ? {
|
|
36
|
+
class: attrs.class
|
|
37
|
+
} : {},
|
|
38
|
+
...attrs.style ? {
|
|
39
|
+
style: attrs.style
|
|
40
|
+
} : {},
|
|
41
|
+
attrs: props,
|
|
42
|
+
key: `${payload.supplier}${instanceNo}`
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
BusinessFootPrintMap,
|
|
47
|
+
BusinessFootPrintMapInner
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BusinessFootPrintMap";
|
|
@@ -57,7 +57,11 @@ const Amap = defineSetup("Amap", function(props, { slots, emit, attrs }) {
|
|
|
57
57
|
const map = new SafeAmap(elementRef.value, {
|
|
58
58
|
...defaultOptions,
|
|
59
59
|
scrollWheel: defaultOptions.touchZoomCenter ? false : defaultOptions.scrollWheel,
|
|
60
|
-
doubleClickZoom: defaultOptions.touchZoomCenter ? false : defaultOptions.doubleClickZoom
|
|
60
|
+
doubleClickZoom: defaultOptions.touchZoomCenter ? false : defaultOptions.doubleClickZoom,
|
|
61
|
+
WebGLParams: {
|
|
62
|
+
preserveDrawingBuffer: true
|
|
63
|
+
// 强制开启,截图必备
|
|
64
|
+
}
|
|
61
65
|
});
|
|
62
66
|
window.GlobalAmap = map;
|
|
63
67
|
defaultOptions.defaultZooms && map.setZooms(defaultOptions.defaultZooms);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface AmapCountryBorderProps {
|
|
2
|
+
socList: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare const AmapCountryBorder: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<AmapCountryBorderProps>, 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<AmapCountryBorderProps, Required<AmapCountryBorderProps>>, never, import("vue-demi").PublicProps, AmapCountryBorderProps, AmapCountryBorderProps, import("vue-demi").SlotsType<{} & {
|
|
5
|
+
default?: import("../../demi-polyfill").Slot | undefined;
|
|
6
|
+
}>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { watchPostEffect } from "vue-demi";
|
|
2
|
+
import { useAmap } from "../../hooks/useMap.js";
|
|
3
|
+
import { defineSetup } from "../../types/helper.js";
|
|
4
|
+
const getWorld = (list) => new AMap.DistrictLayer.World({
|
|
5
|
+
zIndex: 10,
|
|
6
|
+
zooms: [1, 10],
|
|
7
|
+
styles: {
|
|
8
|
+
// fill回调:每个国家执行一次,props.SOC就是国家SOC编码
|
|
9
|
+
fill: function(prop) {
|
|
10
|
+
if (list == null ? void 0 : list.includes(prop.SOC)) {
|
|
11
|
+
return "rgba(0, 0, 200, 1)";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const AmapCountryBorder = defineSetup(
|
|
17
|
+
"AmapCountryBorder",
|
|
18
|
+
function(props) {
|
|
19
|
+
const mapRef = useAmap();
|
|
20
|
+
watchPostEffect((onCleanup) => {
|
|
21
|
+
var _a;
|
|
22
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
23
|
+
if (!(map == null ? void 0 : map.amap))
|
|
24
|
+
return;
|
|
25
|
+
const world = getWorld(props.socList);
|
|
26
|
+
(_a = map.amap) == null ? void 0 : _a.add(world);
|
|
27
|
+
onCleanup(() => {
|
|
28
|
+
var _a2;
|
|
29
|
+
return (_a2 = map.amap) == null ? void 0 : _a2.remove(world);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return () => null;
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
export {
|
|
36
|
+
AmapCountryBorder
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AmapCountryBorder";
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { BusinessRecomendPlaceMap } from "./business-components/BusinessRecomend
|
|
|
5
5
|
export { BusinessReselectPlaceMap } from "./business-components/BusinessReselectPlaceMap";
|
|
6
6
|
export { BusinessTaxiEndMap } from "./business-components/BusinessTaxiEndMap";
|
|
7
7
|
export { BusinessTaxiServiceMap } from "./business-components/BusinessTaxiServiceMap";
|
|
8
|
+
export { BusinessFootPrintMap } from "./business-components/BusinessFootPrintMap";
|
|
8
9
|
export { DrivingLine } from "./business-components/DrivingLine";
|
|
9
10
|
export { DrivingRoute } from "./business-components/DrivingRoute";
|
|
10
11
|
export { PassengerCircle } from "./business-components/PassengerCircle";
|
package/dist/v3/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { B } from "./chunks/BusinessRecomendPlaceMap.420c091a.js";
|
|
|
6
6
|
import { BusinessReselectPlaceMap } from "./business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js";
|
|
7
7
|
import { BusinessTaxiEndMap } from "./business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js";
|
|
8
8
|
import { BusinessTaxiServiceMap } from "./business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js";
|
|
9
|
+
import { BusinessFootPrintMap } from "./business-components/BusinessFootPrintMap/BusinessFootPrintMap.js";
|
|
9
10
|
import { DrivingLine } from "./business-components/DrivingLine/DrivingLine.js";
|
|
10
11
|
import { DrivingRoute } from "./business-components/DrivingRoute/DrivingRoute.js";
|
|
11
12
|
import { PassengerCircle } from "./business-components/PassengerCircle/PassengerCircle.js";
|
|
@@ -37,6 +38,7 @@ import { CenterPlaceStatus, PointSource } from "./types/interface.js";
|
|
|
37
38
|
import { MINI_PROGRAM_WEB_VIEW_CLOSE_EVENT, MINI_PROGRAM_WEB_VIEW_CLOSE_TIMEOUT, patchMiniprogramRedirectTo } from "./utils/patchMiniprogram.js";
|
|
38
39
|
export {
|
|
39
40
|
AbsoluteAddressBox,
|
|
41
|
+
BusinessFootPrintMap,
|
|
40
42
|
BusinessQuotingMap,
|
|
41
43
|
B as BusinessRecomendPlaceMap,
|
|
42
44
|
BusinessReselectPlaceMap,
|
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.27.0-footPrint2";
|
|
4
4
|
const spaceLogSessionKey = "wiajlf;jwiatitruiq3jrlw";
|
|
5
5
|
const enableSessionLogKey = (key) => {
|
|
6
6
|
const sessionParam = new URLSearchParams(sessionStorage.getItem(spaceLogSessionKey) || void 0);
|