@heycar/heycars-map 2.11.0 → 2.12.0-color2
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/README.md +20 -0
- package/dist/v2/App.js +25 -3
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +1 -1
- package/dist/v2/api/cdn.d.ts +2 -2
- package/dist/v2/api/cdn.js +2 -2
- package/dist/v2/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +10 -9
- package/dist/v2/business-components/AddressLocator/AddressLocator.js +4 -3
- package/dist/v2/business-components/AuxiliaryLine/AuxiliaryLine.js +1 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +1 -1
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +2 -2
- package/dist/v2/business-components/DrivingLine/DrivingLine.d.ts +3 -0
- package/dist/v2/business-components/DrivingLine/DrivingLine.js +54 -41
- package/dist/v2/business-components/GreenZone/GreenZone.d.ts +5 -1
- package/dist/v2/business-components/GreenZone/GreenZone.js +50 -10
- package/dist/v2/business-components/PassengerCircle/PassengerCircle.js +7 -6
- package/dist/v2/business-components/PlaceCircle/PlaceCircle.js +7 -6
- package/dist/v2/business-components/StartEndPoint/StartEndPoint.js +15 -14
- package/dist/v2/business-components/TaxiCar/TaxiCar.js +1 -1
- package/dist/v2/business-components/WalkingLine/WalkingLine.d.ts +1 -0
- package/dist/v2/business-components/WalkingLine/WalkingLine.js +19 -5
- package/dist/v2/business-components/WaveCircle/WaveCircle.js +6 -5
- package/dist/v2/chunks/{BusinessRecomendPlaceMap.7b67c30c.js → BusinessRecomendPlaceMap.18b28e1b.js} +1 -1
- package/dist/v2/chunks/{Loading.492acbc2.js → Loading.cf79a3ca.js} +3 -2
- package/dist/v2/chunks/{StartEndPoint.css.9e64a1ee.js → StartEndPoint.css.ab24b521.js} +1 -1
- package/dist/v2/chunks/address-locator.072592a8.js +4 -0
- package/dist/v2/chunks/arrow-right.c4bcf4de.js +4 -0
- package/dist/v2/chunks/index.767c33d5.js +254 -0
- package/dist/v2/components/Loading/Loading.js +2 -1
- package/dist/v2/components/Loading/index.js +1 -1
- package/dist/v2/components/MapProvider/MapProvider.d.ts +1 -1
- package/dist/v2/components/MapProvider/MapProvider.js +9 -5
- package/dist/v2/components/SvgInline/SvgInline.css.d.ts +1 -0
- package/dist/v2/components/SvgInline/SvgInline.d.ts +7 -0
- package/dist/v2/components/SvgInline/SvgInline.js +326 -0
- package/dist/v2/components/SvgInline/SvgInline.web-component.d.ts +13 -0
- package/dist/v2/components/SvgInline/SvgInline.web-component.js +119 -0
- package/dist/v2/components/SvgInline/index.d.ts +1 -0
- package/dist/v2/components/SvgInline/index.js +5 -0
- package/dist/v2/css/{AbsoluteAddressBox-7502ed45.css → AbsoluteAddressBox-16283edf.css} +5 -4
- package/dist/v2/css/{PlaceCircle-3c051f4e.css → PlaceCircle-26c94cef.css} +2 -2
- package/dist/v2/css/{StartEndPoint-73c01544.css → StartEndPoint-df56efcb.css} +2 -2
- package/dist/v2/css/SvgInline-bee6339d.css +10 -0
- package/dist/v2/hooks/useMapSupplier.d.ts +2 -1
- package/dist/v2/hooks-business/useBusinessAlarm.js +1 -37
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v2/index.d.ts +0 -1
- package/dist/v2/index.js +1 -3
- package/dist/v2/types/interface.d.ts +12 -0
- package/dist/v2/utils/dom.js +3 -1
- package/dist/v2/utils/log.js +1 -1
- package/dist/v2/utils/transform.d.ts +2 -1
- package/dist/v2/utils/transform.js +6 -0
- package/dist/v3/App.js +25 -3
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +1 -1
- package/dist/v3/api/cdn.d.ts +2 -2
- package/dist/v3/api/cdn.js +2 -2
- package/dist/v3/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +10 -9
- package/dist/v3/business-components/AddressLocator/AddressLocator.js +4 -3
- package/dist/v3/business-components/AuxiliaryLine/AuxiliaryLine.js +1 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +1 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +1 -1
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +2 -2
- package/dist/v3/business-components/DrivingLine/DrivingLine.d.ts +3 -0
- package/dist/v3/business-components/DrivingLine/DrivingLine.js +54 -41
- package/dist/v3/business-components/GreenZone/GreenZone.d.ts +5 -1
- package/dist/v3/business-components/GreenZone/GreenZone.js +50 -10
- package/dist/v3/business-components/PassengerCircle/PassengerCircle.js +7 -6
- package/dist/v3/business-components/PlaceCircle/PlaceCircle.js +7 -6
- package/dist/v3/business-components/StartEndPoint/StartEndPoint.js +15 -14
- package/dist/v3/business-components/TaxiCar/TaxiCar.js +1 -1
- package/dist/v3/business-components/WalkingLine/WalkingLine.d.ts +1 -0
- package/dist/v3/business-components/WalkingLine/WalkingLine.js +19 -5
- package/dist/v3/business-components/WaveCircle/WaveCircle.js +6 -5
- package/dist/v3/chunks/{BusinessRecomendPlaceMap.8ce05cf5.js → BusinessRecomendPlaceMap.4c5e8b4a.js} +1 -1
- package/dist/v3/chunks/{Loading.21d8e759.js → Loading.cd3d3611.js} +3 -2
- package/dist/v3/chunks/{StartEndPoint.css.9e64a1ee.js → StartEndPoint.css.ab24b521.js} +1 -1
- package/dist/v3/chunks/address-locator.072592a8.js +4 -0
- package/dist/v3/chunks/arrow-right.c4bcf4de.js +4 -0
- package/dist/v3/chunks/index.767c33d5.js +254 -0
- package/dist/v3/components/Loading/Loading.js +2 -1
- package/dist/v3/components/Loading/index.js +1 -1
- package/dist/v3/components/MapProvider/MapProvider.d.ts +1 -1
- package/dist/v3/components/MapProvider/MapProvider.js +9 -5
- package/dist/v3/components/SvgInline/SvgInline.css.d.ts +1 -0
- package/dist/v3/components/SvgInline/SvgInline.d.ts +11 -0
- package/dist/v3/components/SvgInline/SvgInline.js +320 -0
- package/dist/v3/components/SvgInline/SvgInline.web-component.d.ts +13 -0
- package/dist/v3/components/SvgInline/SvgInline.web-component.js +119 -0
- package/dist/v3/components/SvgInline/index.d.ts +1 -0
- package/dist/v3/components/SvgInline/index.js +5 -0
- package/dist/v3/css/{AbsoluteAddressBox-7502ed45.css → AbsoluteAddressBox-16283edf.css} +5 -4
- package/dist/v3/css/{PlaceCircle-3c051f4e.css → PlaceCircle-26c94cef.css} +2 -2
- package/dist/v3/css/{StartEndPoint-73c01544.css → StartEndPoint-df56efcb.css} +2 -2
- package/dist/v3/css/SvgInline-bee6339d.css +10 -0
- package/dist/v3/hooks/useMapSupplier.d.ts +2 -1
- package/dist/v3/hooks-business/useBusinessAlarm.js +1 -37
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v3/index.d.ts +0 -1
- package/dist/v3/index.js +1 -3
- package/dist/v3/types/interface.d.ts +12 -0
- package/dist/v3/utils/dom.js +3 -1
- package/dist/v3/utils/log.js +1 -1
- package/dist/v3/utils/transform.d.ts +2 -1
- package/dist/v3/utils/transform.js +6 -0
- package/package.json +1 -1
- package/dist/v2/business-components/AddressBox/AddressBox.css.d.ts +0 -7
- package/dist/v2/business-components/AddressBox/AddressBox.d.ts +0 -8
- package/dist/v2/business-components/AddressBox/AddressBox.js +0 -99
- package/dist/v2/business-components/AddressBox/index.d.ts +0 -1
- package/dist/v2/business-components/AddressBox/index.js +0 -6
- package/dist/v2/chunks/address-locator.98305e58.js +0 -4
- package/dist/v2/chunks/arrow-right.eedc7433.js +0 -4
- package/dist/v2/chunks/place-circle.64383a4c.js +0 -4
- package/dist/v2/css/AddressBox-7839a1ac.css +0 -47
- package/dist/v3/business-components/AddressBox/AddressBox.css.d.ts +0 -7
- package/dist/v3/business-components/AddressBox/AddressBox.d.ts +0 -14
- package/dist/v3/business-components/AddressBox/AddressBox.js +0 -91
- package/dist/v3/business-components/AddressBox/index.d.ts +0 -1
- package/dist/v3/business-components/AddressBox/index.js +0 -6
- package/dist/v3/chunks/address-locator.98305e58.js +0 -4
- package/dist/v3/chunks/arrow-right.eedc7433.js +0 -4
- package/dist/v3/chunks/place-circle.64383a4c.js +0 -4
- package/dist/v3/css/AddressBox-7839a1ac.css +0 -47
package/README.md
CHANGED
|
@@ -140,6 +140,26 @@ export type RecommendType = "Restricted" | "Forbidden" | "Recommend";
|
|
|
140
140
|
googleDirectionsProxyUrl="/overseas/maps/directions/json"
|
|
141
141
|
// 可选,谷歌路由服务代理地址
|
|
142
142
|
googleRoutesProxyUrl="/overseas/maps/routes/directions"
|
|
143
|
+
// 可选,自定义地图颜色
|
|
144
|
+
themeVariables={{
|
|
145
|
+
TRAFFIC_UNKNOWN_BACKGROUND_COLOR: "#00C875",
|
|
146
|
+
TRAFFIC_UNKNOWN_BORDER_COLOR: "#008559",
|
|
147
|
+
TRAFFIC_NORMAL_BACKGROUND_COLOR: "#00C875",
|
|
148
|
+
TRAFFIC_NORMAL_BORDER_COLOR: "#008559",
|
|
149
|
+
TRAFFIC_SLOW_BACKGROUND_COLOR: "#F9D100",
|
|
150
|
+
TRAFFIC_SLOW_BORDER_COLOR: "#B29400",
|
|
151
|
+
TRAFFIC_TRAFFIC_JAM_BACKGROUND_COLOR: "#EB0E33",
|
|
152
|
+
TRAFFIC_TRAFFIC_JAM_BORDER_COLOR: "#990D24",
|
|
153
|
+
TRAFFIC_HEAVY_TRAFFIC_JAM_BACKGROUND_COLOR: "#99001A",
|
|
154
|
+
TRAFFIC_HEAVY_TRAFFIC_JAM_BORDER_COLOR: "#4D000D",
|
|
155
|
+
TRAFFIC_DONE_BACKGROUND_COLOR: "#96B2CA",
|
|
156
|
+
TRAFFIC_DONE_BORDER_COLOR: "#7693AF",
|
|
157
|
+
WALKING_LINE_COLOR: "#38A3FE",
|
|
158
|
+
ZONE_RESTRICTED_BACKGROUND_COLOR: "#C7E5FB",
|
|
159
|
+
ZONE_RESTRICTED_BORDER_COLOR: "#4BA7FF",
|
|
160
|
+
ZONE_FORBIDDEN_BACKGROUND_COLOR: "#F27878",
|
|
161
|
+
ZONE_FORBIDDEN_BORDER_COLOR: "#F41717",
|
|
162
|
+
}}
|
|
143
163
|
// 地图加载失败时显示的标题
|
|
144
164
|
renderLoadFailedTitle={() => (supplier === "gmap" ? "未能成功访问谷歌地图" : "高德地图加载失败")}
|
|
145
165
|
// 地图加载失败时显示的描述
|
package/dist/v2/App.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { defineComponent, ref } from "vue-demi";
|
|
3
|
-
import {
|
|
3
|
+
import { DemoBusinessRecomendPlace } from "./Demo/DemoBusinessRecomendPlace.js";
|
|
4
4
|
import { MapProvider } from "./components/MapProvider/MapProvider.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
@@ -8,7 +8,7 @@ const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
|
8
8
|
const amapApiSecret = "11ad0e3d585b80d18b1ada5b0d947c4a";
|
|
9
9
|
const App = defineComponent({
|
|
10
10
|
setup() {
|
|
11
|
-
const supplierRef = ref("
|
|
11
|
+
const supplierRef = ref("amap");
|
|
12
12
|
window.supplierRef = supplierRef;
|
|
13
13
|
return () => h(MapProvider, {
|
|
14
14
|
"attrs": {
|
|
@@ -20,6 +20,28 @@ const App = defineComponent({
|
|
|
20
20
|
"supplier": supplierRef.value,
|
|
21
21
|
"googleSnapRoadProxyUrl": "/overseas/maps/snapToRoads",
|
|
22
22
|
"googleRoutesProxyUrl": "/overseas/maps/routes/directions",
|
|
23
|
+
"themeVariables": {
|
|
24
|
+
// 红区色
|
|
25
|
+
FORBIDDEN_HUE: 0,
|
|
26
|
+
// 副品牌色
|
|
27
|
+
SECONDARY_BAND_HUE: 20,
|
|
28
|
+
// 副品牌补充色A
|
|
29
|
+
SECONDARY_BAND_A_HUE: 30,
|
|
30
|
+
// 交通缓慢色
|
|
31
|
+
TRAFFIC_SLOW_HUE: 50,
|
|
32
|
+
// 交通通畅色
|
|
33
|
+
TRAFFIC_NORMAL_HUE: 155,
|
|
34
|
+
// 交通通畅补充色A
|
|
35
|
+
TRAFFIC_NORMAL_A_HUE: 160,
|
|
36
|
+
// 主品牌补充色B
|
|
37
|
+
PRIMARY_BAND_B_HUE: 206,
|
|
38
|
+
// 主品牌补充色A
|
|
39
|
+
PRIMARY_BAND_A_HUE: 220,
|
|
40
|
+
// 主品牌色
|
|
41
|
+
PRIMARY_BAND_HUE: 226,
|
|
42
|
+
// 交通拥堵色
|
|
43
|
+
TRAFFIC_JAM_HUE: 350
|
|
44
|
+
},
|
|
23
45
|
"renderLoadFailedTitle": () => supplierRef.value === "gmap" ? "未能成功访问谷歌地图" : "高德地图加载失败",
|
|
24
46
|
"renderLoadFailedDescription": () => supplierRef.value === "gmap" ? "请确认您的网络能正常访问谷歌地图, \n或切回高德地图" : void 0
|
|
25
47
|
},
|
|
@@ -28,7 +50,7 @@ const App = defineComponent({
|
|
|
28
50
|
"fail": () => console.log(`${supplierRef.value} load failed`),
|
|
29
51
|
"downloadOptimizeEnd": () => console.log(`${supplierRef.value} load download optimize end`)
|
|
30
52
|
}
|
|
31
|
-
}, [h(
|
|
53
|
+
}, [h(DemoBusinessRecomendPlace)]);
|
|
32
54
|
}
|
|
33
55
|
});
|
|
34
56
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.
|
|
2
|
+
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.18b28e1b.js";
|
|
3
3
|
import { useBusinessRecomendPlaceMap } from "../hooks-business/useBusinessRecomendPlaceMap.js";
|
|
4
4
|
import { defineSetup } from "../types/helper.js";
|
|
5
5
|
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
package/dist/v2/api/cdn.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const AMAP_DEFAULT_MARKER_ICON_URL = "https://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png";
|
|
2
2
|
export declare const ICON_FULL_SCREEN_URL = "https://overseas-oss.heycars.cn/heycar-map/png/fullscreen.png";
|
|
3
|
-
export declare const ICON_START_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/start-point-en.svg";
|
|
4
|
-
export declare const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/
|
|
3
|
+
export declare const ICON_START_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/tmp/start-point-en.20250512.svg";
|
|
4
|
+
export declare const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/tmp/start-point-en.20250512.svg";
|
|
5
5
|
export declare const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/end-point-zh-TW.svg";
|
|
6
6
|
export declare const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
|
|
7
7
|
export declare const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
|
package/dist/v2/api/cdn.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const AMAP_DEFAULT_MARKER_ICON_URL = "https://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png";
|
|
2
2
|
const ICON_FULL_SCREEN_URL = "https://overseas-oss.heycars.cn/heycar-map/png/fullscreen.png";
|
|
3
|
-
const ICON_START_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/start-point-en.svg";
|
|
4
|
-
const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/
|
|
3
|
+
const ICON_START_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/tmp/start-point-en.20250512.svg";
|
|
4
|
+
const ICON_END_POINT_EN_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/tmp/start-point-en.20250512.svg";
|
|
5
5
|
const ICON_END_POINT_ZH_TW_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/end-point-zh-TW.svg";
|
|
6
6
|
const ICON_TAXI_CAR_URL = "https://overseas-oss.heycars.cn/heycar-map/svg/taxi-car.svg";
|
|
7
7
|
const ICON_DOT_LOADING_URL = "https://overseas-oss.heycars.cn/heycar-map/gif/dot-loading.gif";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "../../css/AbsoluteAddressBox-
|
|
1
|
+
import "../../css/AbsoluteAddressBox-16283edf.css";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import { computed } from "vue-demi";
|
|
4
4
|
import { ICON_DOT_LOADING_URL } from "../../api/cdn.js";
|
|
5
|
-
import { i as imgAddressLocator } from "../../chunks/address-locator.
|
|
6
|
-
import { i as imgArrowRight } from "../../chunks/arrow-right.
|
|
5
|
+
import { i as imgAddressLocator } from "../../chunks/address-locator.072592a8.js";
|
|
6
|
+
import { i as imgArrowRight } from "../../chunks/arrow-right.c4bcf4de.js";
|
|
7
|
+
import { SvgInlineWebComponentTag } from "../../components/SvgInline/SvgInline.web-component.js";
|
|
7
8
|
import { defineSetup } from "../../types/helper.js";
|
|
8
9
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
9
|
-
const imgBubbleRightArc = "data:image/svg+xml;base64,
|
|
10
|
-
const imgGuideArrow = "data:image/svg+xml;base64,
|
|
10
|
+
const imgBubbleRightArc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAxOCAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwaDIuMTMxYTEwIDEwIDAgMDE5LjY5NiA3LjU1MkwxOCAzMkguMDQyTDAgMHoiIGZpbGw9ImhzbCh2YXIoLS1IRVlDQVJfTUFQX1RIRU1FX1ZBUl9QUkFNQVJZX0JBTkRfQV9IVUUsIDIyMCksIDU0JSwgMzElKSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+";
|
|
11
|
+
const imgGuideArrow = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHdpZHRoPSIyIiBoZWlnaHQ9IjYiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyIDYiPgogIDxwYXRoIGQ9Ik0uNTE2IDEuMTAzQS4zLjMgMCAwMDAgMS4zMXYyLjY2OGEuMy4zIDAgMDAuNTE2LjIwOEwxLjggMi44NTNhLjMuMyAwIDAwMC0uNDE2TC41MTYgMS4xMDN6IiBmaWxsPSIjRkZGIiAvPgo8L3N2Zz4=";
|
|
11
12
|
const AbsoluteAddressBox_css_ts_vanilla = "";
|
|
12
13
|
var absoluteAddressBox = "n8tgem1";
|
|
13
14
|
var absoluteAddressBoxLayout = "n8tgem0";
|
|
@@ -54,7 +55,7 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
54
55
|
if (type === "locator")
|
|
55
56
|
return h("div", {
|
|
56
57
|
"class": absoluteAddressBoxLayout
|
|
57
|
-
}, [h(
|
|
58
|
+
}, [h(SvgInlineWebComponentTag, {
|
|
58
59
|
"class": locatorIcon,
|
|
59
60
|
"attrs": {
|
|
60
61
|
"src": imgAddressLocator
|
|
@@ -84,7 +85,7 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
84
85
|
"class": boxHeader
|
|
85
86
|
}, [h("div", {
|
|
86
87
|
"class": boxHeaderText
|
|
87
|
-
}, [description]), h(
|
|
88
|
+
}, [description]), h(SvgInlineWebComponentTag, {
|
|
88
89
|
"class": boxHeaderIcon,
|
|
89
90
|
"attrs": {
|
|
90
91
|
"src": imgBubbleRightArc
|
|
@@ -108,7 +109,7 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
108
109
|
}
|
|
109
110
|
}, [h("div", {
|
|
110
111
|
"class": boxPhotoDescription
|
|
111
|
-
}, [photo.title]), h(
|
|
112
|
+
}, [photo.title]), h(SvgInlineWebComponentTag, {
|
|
112
113
|
"class": boxPhotoArrow,
|
|
113
114
|
"attrs": {
|
|
114
115
|
"src": imgGuideArrow
|
|
@@ -127,7 +128,7 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
127
128
|
"attrs": {
|
|
128
129
|
"value": title
|
|
129
130
|
}
|
|
130
|
-
})]), withArrow && h(
|
|
131
|
+
})]), withArrow && h(SvgInlineWebComponentTag, {
|
|
131
132
|
"class": arrowRight,
|
|
132
133
|
"attrs": {
|
|
133
134
|
"src": imgArrowRight
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "../../css/AddressLocator-321d2936.css";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import { computed } from "vue-demi";
|
|
4
|
-
import { i as imgAddressLocator } from "../../chunks/address-locator.
|
|
4
|
+
import { i as imgAddressLocator } from "../../chunks/address-locator.072592a8.js";
|
|
5
5
|
import { AmapMarker } from "../../components/AmapMarker/AmapMarker.js";
|
|
6
6
|
import { GmapAdvancedMarkerElement } from "../../components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js";
|
|
7
|
+
import { SvgInlineWebComponentTag } from "../../components/SvgInline/SvgInline.web-component.js";
|
|
7
8
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
8
9
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
9
10
|
import { defineSetup } from "../../types/helper.js";
|
|
@@ -13,7 +14,7 @@ const AddressLocator_css_ts_vanilla = "";
|
|
|
13
14
|
var addressLocator = "rgf09w0";
|
|
14
15
|
const AAddressLocator = defineSetup("AAddressLocator", function(props) {
|
|
15
16
|
const contentRef = computed(() => `
|
|
16
|
-
|
|
17
|
+
<${SvgInlineWebComponentTag} src="${imgAddressLocator}" class="${addressLocator}">
|
|
17
18
|
`);
|
|
18
19
|
return () => h(AmapMarker, {
|
|
19
20
|
"attrs": {
|
|
@@ -24,7 +25,7 @@ const AAddressLocator = defineSetup("AAddressLocator", function(props) {
|
|
|
24
25
|
});
|
|
25
26
|
});
|
|
26
27
|
const GAddressLocator = defineSetup("GAddressLocator", function(props) {
|
|
27
|
-
const contentRef = computed(() => createDom(
|
|
28
|
+
const contentRef = computed(() => createDom(SvgInlineWebComponentTag, {
|
|
28
29
|
class: addressLocator,
|
|
29
30
|
src: imgAddressLocator
|
|
30
31
|
}));
|
|
@@ -11,7 +11,7 @@ import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
|
11
11
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
12
12
|
import { defineSetup } from "../../types/helper.js";
|
|
13
13
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
14
|
-
const imgMarkerRed = "data:image/svg+xml;base64,
|
|
14
|
+
const imgMarkerRed = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMGE4IDggMCAwMC04IDhjMCAxLjQyMS4zODIgMi43NSAxLjAzMSAzLjkwNi4xMDguMTkyLjIyMS4zODEuMzQ0LjU2M0wxMiAyNGw2LjYyNS0xMS41MzFjLjEwMi0uMTUxLjE5LS4zMTEuMjgxLS40NjlsLjA2My0uMDk0QTcuOTU0IDcuOTU0IDAgMDAyMCA4YTggOCAwIDAwLTgtOHptMCA0YTQgNCAwIDExMCA4IDQgNCAwIDAxMC04eiIgZmlsbD0iaHNsKHZhcigtLUhFWUNBUl9NQVBfVEhFTUVfVkFSX0ZPUkJJRERFTl9IVUUsIDYpLCA3OCUsIDU3JSkiLz48cGF0aCBkPSJNMTIgM2E1IDUgMCAxMDAgMTAgNSA1IDAgMDAwLTEwem0wIDJhMyAzIDAgMTEwIDYgMyAzIDAgMDEwLTZ6IiBmaWxsPSJoc2wodmFyKC0tSEVZQ0FSX01BUF9USEVNRV9WQVJfRk9SQklEREVOX0hVRSwgNiksIDYzJSwgNDYlKSIvPjwvc3ZnPg==";
|
|
15
15
|
const AAuxiliaryLine = defineSetup("AAuxiliaryLine", function(props) {
|
|
16
16
|
const defaultMarkerSize = 36;
|
|
17
17
|
const redIcon = new AMap.Icon({
|
|
@@ -27,7 +27,7 @@ import "../GreenZone/GreenZone.js";
|
|
|
27
27
|
import "../PassengerCircle/PassengerCircle.js";
|
|
28
28
|
import "../PickupPoints/PickupPoints.js";
|
|
29
29
|
import "./useCacheCenterPlace.js";
|
|
30
|
-
import { B, f, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.
|
|
30
|
+
import { B, f, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.18b28e1b.js";
|
|
31
31
|
export {
|
|
32
32
|
B as BusinessRecomendPlaceMap,
|
|
33
33
|
f as BusinessRecomendPlaceMapInner,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, f, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.
|
|
1
|
+
import { B, f, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.18b28e1b.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BusinessRecomendPlaceMap,
|
|
4
4
|
f as BusinessRecomendPlaceMapInner,
|
|
@@ -21,7 +21,7 @@ import { detectBrowserPlatform } from "../../utils/platform.js";
|
|
|
21
21
|
import { place2point, isPlaceEqual, isZoneEqual, geoPositionError2businessTimeout, pipeDefer } from "../../utils/transform.js";
|
|
22
22
|
import { toCoordinatePlaceType, toCoordinatePointType, toCoordinateRecommendZonePlacesType } from "../../utils/typeChecking.js";
|
|
23
23
|
import { AbsoluteAddressBox } from "../AbsoluteAddressBox/AbsoluteAddressBox.js";
|
|
24
|
-
import { E as EMPTY_PLACE, m as memoize, R as RECOMMEND_PLACE_DRAG_LIMIT, a as RECOMMEND_PLACE_LARGE_LIMIT, b as RECOMMEND_PLACE_ZONE_ICON_MIN, c as RECOMMEND_PLACE_ICON_ZOOM_MIN, d as RECOMMEND_PLACE_ZONE_TEXT_MIN, e as RECOMMEND_PLACE_TEXT_ZOOM_MIN, D as DEFAULT_ZOOM, Z as ZONE_FITVIEW_PANDING } from "../../chunks/BusinessRecomendPlaceMap.
|
|
24
|
+
import { E as EMPTY_PLACE, m as memoize, R as RECOMMEND_PLACE_DRAG_LIMIT, a as RECOMMEND_PLACE_LARGE_LIMIT, b as RECOMMEND_PLACE_ZONE_ICON_MIN, c as RECOMMEND_PLACE_ICON_ZOOM_MIN, d as RECOMMEND_PLACE_ZONE_TEXT_MIN, e as RECOMMEND_PLACE_TEXT_ZOOM_MIN, D as DEFAULT_ZOOM, Z as ZONE_FITVIEW_PANDING } from "../../chunks/BusinessRecomendPlaceMap.18b28e1b.js";
|
|
25
25
|
import { DeviceOrientation } from "../DeviceOrientation/DeviceOrientation.js";
|
|
26
26
|
import { GreenZone } from "../GreenZone/GreenZone.js";
|
|
27
27
|
import { PassengerCircle } from "../PassengerCircle/PassengerCircle.js";
|
|
@@ -308,7 +308,7 @@ const BusinessReselectPlaceMapInner = defineSetup("BusinessReselectPlaceMapInner
|
|
|
308
308
|
}
|
|
309
309
|
}, [((_b = zoneRef.value) == null ? void 0 : _b.path.length) && h(GreenZone, {
|
|
310
310
|
"attrs": {
|
|
311
|
-
"
|
|
311
|
+
"type": isForbidden ? "Forbidden" : "Restricted",
|
|
312
312
|
"path": (_c = zoneRef.value) == null ? void 0 : _c.path
|
|
313
313
|
}
|
|
314
314
|
}), !geoLoading.value && !geoError.value && h(DeviceOrientation, {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { TrafficStatus } from "../../types/interface";
|
|
2
2
|
type DrivingLineStatus = TrafficStatus | "DONE";
|
|
3
|
+
type DrivingLineColors = Record<DrivingLineStatus, string>;
|
|
3
4
|
export interface DrivingLineProps {
|
|
4
5
|
status?: DrivingLineStatus;
|
|
5
6
|
path: [number, number][];
|
|
6
7
|
lineCap?: AMap.LineSharedOptions["lineCap"];
|
|
8
|
+
backgroundColors?: DrivingLineColors;
|
|
9
|
+
borderColors?: DrivingLineColors;
|
|
7
10
|
}
|
|
8
11
|
export declare const ADrivingLine: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<DrivingLineProps>, 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<DrivingLineProps, Required<DrivingLineProps>>, never, DrivingLineProps>;
|
|
9
12
|
export declare const GDrivingLine: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<DrivingLineProps>, 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<DrivingLineProps, Required<DrivingLineProps>>, never, DrivingLineProps>;
|
|
@@ -7,38 +7,38 @@ import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
|
7
7
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
8
8
|
import { defineSetup } from "../../types/helper.js";
|
|
9
9
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// UNKNOWN: "#4175F1",
|
|
21
|
-
UNKNOWN: "#008559",
|
|
22
|
-
NORMAL: "#008559",
|
|
23
|
-
SLOW: "#B29400",
|
|
24
|
-
TRAFFIC_JAM: "#990D24",
|
|
25
|
-
HEAVY_TRAFFIC_JAM: "#4D000D",
|
|
26
|
-
DONE: "#7693AF"
|
|
10
|
+
const createBackgroundColors = (theme) => {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12
|
+
return {
|
|
13
|
+
UNKNOWN: `hsl(${(_a = theme == null ? void 0 : theme.TRAFFIC_NORMAL_HUE) != null ? _a : 155}, 100%, 39%)`,
|
|
14
|
+
NORMAL: `hsl(${(_b = theme == null ? void 0 : theme.TRAFFIC_NORMAL_HUE) != null ? _b : 155}, 100%, 39%)`,
|
|
15
|
+
SLOW: `hsl(${(_c = theme == null ? void 0 : theme.TRAFFIC_SLOW_HUE) != null ? _c : 50}, 100%, 49%)`,
|
|
16
|
+
TRAFFIC_JAM: `hsl(${(_d = theme == null ? void 0 : theme.TRAFFIC_JAM_HUE) != null ? _d : 350}, 89%, 49%)`,
|
|
17
|
+
HEAVY_TRAFFIC_JAM: `hsl(${(_e = theme == null ? void 0 : theme.TRAFFIC_JAM_HUE) != null ? _e : 350}, 100%, 30%)`,
|
|
18
|
+
DONE: `hsl(${(_f = theme == null ? void 0 : theme.PRIMARY_BAND_B_HUE) != null ? _f : 206}, 34%, 70%)`
|
|
19
|
+
};
|
|
27
20
|
};
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
const createBorderColors = (theme) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f;
|
|
23
|
+
return {
|
|
24
|
+
UNKNOWN: `hsl(${(_a = theme == null ? void 0 : theme.TRAFFIC_NORMAL_A_HUE) != null ? _a : 160}, 100%, 26%)`,
|
|
25
|
+
NORMAL: `hsl(${(_b = theme == null ? void 0 : theme.TRAFFIC_NORMAL_A_HUE) != null ? _b : 160}, 100%, 26%)`,
|
|
26
|
+
SLOW: `hsl(${(_c = theme == null ? void 0 : theme.TRAFFIC_SLOW_HUE) != null ? _c : 50}, 100%, 35%)`,
|
|
27
|
+
TRAFFIC_JAM: `hsl(${(_d = theme == null ? void 0 : theme.TRAFFIC_JAM_HUE) != null ? _d : 350}, 84%, 33%)`,
|
|
28
|
+
HEAVY_TRAFFIC_JAM: `hsl(${(_e = theme == null ? void 0 : theme.TRAFFIC_JAM_HUE) != null ? _e : 350}, 100%, 15%)`,
|
|
29
|
+
DONE: `hsl(${(_f = theme == null ? void 0 : theme.PRIMARY_BAND_B_HUE) != null ? _f : 206}, 27%, 59%)`
|
|
30
|
+
};
|
|
36
31
|
};
|
|
32
|
+
const defaultBackgroundColors = createBackgroundColors();
|
|
33
|
+
const defaultBorderColors = createBorderColors();
|
|
37
34
|
const ADrivingLine = defineSetup("ADrivingLine", function(props) {
|
|
38
35
|
return () => {
|
|
36
|
+
var _a, _b;
|
|
39
37
|
const {
|
|
40
38
|
status = "UNKNOWN",
|
|
41
|
-
lineCap = "round"
|
|
39
|
+
lineCap = "round",
|
|
40
|
+
backgroundColors,
|
|
41
|
+
borderColors
|
|
42
42
|
} = props;
|
|
43
43
|
const vw = window.innerWidth * 0.01;
|
|
44
44
|
const strokeWidth = 1 * vw;
|
|
@@ -46,15 +46,14 @@ const ADrivingLine = defineSetup("ADrivingLine", function(props) {
|
|
|
46
46
|
const dirWidth = 0.24 * vw;
|
|
47
47
|
const outlineWidth = 0.4 * vw;
|
|
48
48
|
const dashLength = 0.3 * vw;
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const strokeColorBorder = trafficBorderColors[status];
|
|
49
|
+
const backgroundColor = (_a = backgroundColors == null ? void 0 : backgroundColors[status]) != null ? _a : defaultBackgroundColors[status];
|
|
50
|
+
const borderColor = (_b = borderColors == null ? void 0 : borderColors[status]) != null ? _b : defaultBorderColors[status];
|
|
52
51
|
return h("div", [h(AmapPolyline, {
|
|
53
52
|
"attrs": {
|
|
54
53
|
"path": props.path,
|
|
55
54
|
"strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
|
|
56
55
|
"strokeOpacity": 1,
|
|
57
|
-
"strokeColor":
|
|
56
|
+
"strokeColor": borderColor,
|
|
58
57
|
"lineJoin": "round",
|
|
59
58
|
"lineCap": lineCap,
|
|
60
59
|
"zIndex": ZINDEX_LINE_LAYER
|
|
@@ -64,7 +63,7 @@ const ADrivingLine = defineSetup("ADrivingLine", function(props) {
|
|
|
64
63
|
"path": props.path,
|
|
65
64
|
"strokeWeight": strokeWidth + 2 * borderWidth,
|
|
66
65
|
"strokeOpacity": 1,
|
|
67
|
-
"strokeColor":
|
|
66
|
+
"strokeColor": backgroundColor,
|
|
68
67
|
"lineJoin": "round",
|
|
69
68
|
"lineCap": lineCap,
|
|
70
69
|
"strokeStyle": "dashed",
|
|
@@ -76,7 +75,7 @@ const ADrivingLine = defineSetup("ADrivingLine", function(props) {
|
|
|
76
75
|
"path": props.path,
|
|
77
76
|
"strokeWeight": strokeWidth,
|
|
78
77
|
"strokeOpacity": 1,
|
|
79
|
-
"strokeColor":
|
|
78
|
+
"strokeColor": backgroundColor,
|
|
80
79
|
"lineJoin": "round",
|
|
81
80
|
"lineCap": lineCap,
|
|
82
81
|
"zIndex": ZINDEX_LINE_LAYER
|
|
@@ -98,8 +97,11 @@ const ADrivingLine = defineSetup("ADrivingLine", function(props) {
|
|
|
98
97
|
const GDrivingLine = defineSetup("GDrivingLine", function(props) {
|
|
99
98
|
const pathRef = computed(() => props.path.map(vec2lnglat));
|
|
100
99
|
return () => {
|
|
100
|
+
var _a, _b;
|
|
101
101
|
const {
|
|
102
|
-
status = "UNKNOWN"
|
|
102
|
+
status = "UNKNOWN",
|
|
103
|
+
backgroundColors,
|
|
104
|
+
borderColors
|
|
103
105
|
} = props;
|
|
104
106
|
const vw = window.innerWidth * 0.01;
|
|
105
107
|
const repeat = 10 * vw;
|
|
@@ -107,15 +109,14 @@ const GDrivingLine = defineSetup("GDrivingLine", function(props) {
|
|
|
107
109
|
const borderWidth = 0.175 * vw * 0.65;
|
|
108
110
|
const dirStrokeWeight = 0.375 * vw * 0.65;
|
|
109
111
|
const outlineWidth = 0.45 * vw * 0.65;
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const strokeColorBorder = trafficBorderColors[status];
|
|
112
|
+
const backgroundColor = (_a = backgroundColors == null ? void 0 : backgroundColors[status]) != null ? _a : defaultBackgroundColors[status];
|
|
113
|
+
const borderColor = (_b = borderColors == null ? void 0 : borderColors[status]) != null ? _b : defaultBorderColors[status];
|
|
113
114
|
return h("div", [h(GmapPolyline, {
|
|
114
115
|
"attrs": {
|
|
115
116
|
"path": pathRef.value,
|
|
116
117
|
"strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
|
|
117
118
|
"strokeOpacity": 1,
|
|
118
|
-
"strokeColor":
|
|
119
|
+
"strokeColor": borderColor,
|
|
119
120
|
"zIndex": ZINDEX_LINE_LAYER
|
|
120
121
|
}
|
|
121
122
|
}), h(GmapPolyline, {
|
|
@@ -125,8 +126,8 @@ const GDrivingLine = defineSetup("GDrivingLine", function(props) {
|
|
|
125
126
|
icon: {
|
|
126
127
|
path: `M 0,-0.5 0,0.5`,
|
|
127
128
|
strokeWeight: strokeWidth + 2 * borderWidth,
|
|
128
|
-
strokeColor:
|
|
129
|
-
fillColor:
|
|
129
|
+
strokeColor: backgroundColor,
|
|
130
|
+
fillColor: backgroundColor,
|
|
130
131
|
scale: 1
|
|
131
132
|
},
|
|
132
133
|
repeat: `${strokeWidth}px`,
|
|
@@ -139,7 +140,7 @@ const GDrivingLine = defineSetup("GDrivingLine", function(props) {
|
|
|
139
140
|
"path": pathRef.value,
|
|
140
141
|
"strokeWeight": strokeWidth,
|
|
141
142
|
"strokeOpacity": 1,
|
|
142
|
-
"strokeColor":
|
|
143
|
+
"strokeColor": backgroundColor,
|
|
143
144
|
"icons": [{
|
|
144
145
|
icon: {
|
|
145
146
|
path: google.maps.SymbolPath.FORWARD_OPEN_ARROW,
|
|
@@ -159,8 +160,20 @@ const DrivingLine = defineSetup("DrivingLine", function(props) {
|
|
|
159
160
|
return () => {
|
|
160
161
|
if (!props.path.length)
|
|
161
162
|
return null;
|
|
163
|
+
const backgroundColors = {
|
|
164
|
+
...createBackgroundColors(payload.themeVariables),
|
|
165
|
+
...props.backgroundColors
|
|
166
|
+
};
|
|
167
|
+
const borderColors = {
|
|
168
|
+
...createBorderColors(payload.themeVariables),
|
|
169
|
+
...props.borderColors
|
|
170
|
+
};
|
|
162
171
|
return createElement(payload.supplier === "gmap" ? GDrivingLine : ADrivingLine, {
|
|
163
|
-
attrs:
|
|
172
|
+
attrs: {
|
|
173
|
+
...props,
|
|
174
|
+
backgroundColors,
|
|
175
|
+
borderColors
|
|
176
|
+
}
|
|
164
177
|
});
|
|
165
178
|
};
|
|
166
179
|
});
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { GmapOverlay, MapRegisterOverlayProps } from "../../hooks/useOverlay";
|
|
2
2
|
import type { Point } from "../../types/interface";
|
|
3
|
+
export type GreenZoneType = "Restricted" | "Forbidden";
|
|
4
|
+
type GreenZoneColors = Record<GreenZoneType, string>;
|
|
3
5
|
interface GreenZoneProps<T> extends MapRegisterOverlayProps<T> {
|
|
4
|
-
|
|
6
|
+
type?: GreenZoneType;
|
|
5
7
|
path: Point[];
|
|
8
|
+
backgroundColors?: GreenZoneColors;
|
|
9
|
+
borderColors?: GreenZoneColors;
|
|
6
10
|
}
|
|
7
11
|
export declare const AGreenZone: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<GreenZoneProps<{
|
|
8
12
|
_needUpdate: boolean;
|
|
@@ -8,12 +8,24 @@ import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
|
8
8
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
9
9
|
import { defineSetup } from "../../types/helper.js";
|
|
10
10
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
11
|
-
const
|
|
11
|
+
const createBackgroundColors = (theme) => {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
return {
|
|
14
|
+
Restricted: `hsl(${(_a = theme == null ? void 0 : theme.PRIMARY_BAND_B_HUE) != null ? _a : 206}, 87%, 88%)`,
|
|
15
|
+
Forbidden: `hsl(${(_b = theme == null ? void 0 : theme.FORBIDDEN_HUE) != null ? _b : 0}, 82%, 71%)`
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const createBorderColors = (theme) => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return {
|
|
21
|
+
Restricted: `hsl(${(_a = theme == null ? void 0 : theme.PRIMARY_BAND_B_HUE) != null ? _a : 206}, 100%, 65%)`,
|
|
22
|
+
Forbidden: `hsl(${(_b = theme == null ? void 0 : theme.FORBIDDEN_HUE) != null ? _b : 0}, 91%, 52%)`
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const defaultBackgroundColors = createBackgroundColors();
|
|
26
|
+
const defaultBorderColors = createBorderColors();
|
|
12
27
|
const GREEN_ZONE_FILL_OPACITY = 0.5;
|
|
13
|
-
const GREEN_ZONE_STROKE_COLOR = "#4BA7FF";
|
|
14
28
|
const GREEN_ZONE_STROKE_WEIGHT_VW = 1;
|
|
15
|
-
const GREEN_ZONE_FILL_COLOR_RED = "#F27878";
|
|
16
|
-
const GREEN_ZONE_STROKE_COLOR_RED = "#F41717";
|
|
17
29
|
const toClosedPath = (path) => {
|
|
18
30
|
const first = path[0];
|
|
19
31
|
if (!first)
|
|
@@ -26,14 +38,22 @@ const toClosedPath = (path) => {
|
|
|
26
38
|
const AGreenZone = defineSetup("AGreenZone", function(props) {
|
|
27
39
|
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
28
40
|
return () => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
const {
|
|
43
|
+
backgroundColors,
|
|
44
|
+
borderColors,
|
|
45
|
+
type = "Restricted"
|
|
46
|
+
} = props;
|
|
47
|
+
const backgroundColor = (_a = backgroundColors == null ? void 0 : backgroundColors[type]) != null ? _a : defaultBackgroundColors[type];
|
|
48
|
+
const borderColor = (_b = borderColors == null ? void 0 : borderColors[type]) != null ? _b : defaultBorderColors[type];
|
|
29
49
|
return h(AmapPolygon, {
|
|
30
50
|
"attrs": {
|
|
31
51
|
"registerOverlay": props.registerOverlay,
|
|
32
52
|
"path": props.path,
|
|
33
|
-
"strokeColor":
|
|
53
|
+
"strokeColor": borderColor,
|
|
34
54
|
"strokeStyle": "dashed",
|
|
35
55
|
"strokeWeight": strokeWeight,
|
|
36
|
-
"fillColor":
|
|
56
|
+
"fillColor": backgroundColor,
|
|
37
57
|
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
38
58
|
"zIndex": ZINDEX_GREEN_ZONE
|
|
39
59
|
}
|
|
@@ -49,23 +69,31 @@ const GGreenZone = defineSetup("GGreenZone", function(props) {
|
|
|
49
69
|
scale: 4
|
|
50
70
|
};
|
|
51
71
|
return () => {
|
|
72
|
+
var _a, _b;
|
|
73
|
+
const {
|
|
74
|
+
backgroundColors,
|
|
75
|
+
borderColors,
|
|
76
|
+
type = "Restricted"
|
|
77
|
+
} = props;
|
|
78
|
+
const backgroundColor = (_a = backgroundColors == null ? void 0 : backgroundColors[type]) != null ? _a : defaultBackgroundColors[type];
|
|
79
|
+
const borderColor = (_b = borderColors == null ? void 0 : borderColors[type]) != null ? _b : defaultBorderColors[type];
|
|
52
80
|
const path = pathRef.value;
|
|
53
81
|
const closedPath = toClosedPath(path);
|
|
54
82
|
return h("div", [h(GmapPolygon, {
|
|
55
83
|
"attrs": {
|
|
56
84
|
"registerOverlay": props.registerOverlay,
|
|
57
85
|
"paths": path,
|
|
58
|
-
"strokeColor":
|
|
86
|
+
"strokeColor": borderColor,
|
|
59
87
|
"strokeOpacity": 0,
|
|
60
88
|
"strokeWeight": strokeWeight,
|
|
61
|
-
"fillColor":
|
|
89
|
+
"fillColor": backgroundColor,
|
|
62
90
|
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
63
91
|
"zIndex": ZINDEX_GREEN_ZONE
|
|
64
92
|
}
|
|
65
93
|
}), h(GmapPolyline, {
|
|
66
94
|
"attrs": {
|
|
67
95
|
"path": closedPath,
|
|
68
|
-
"strokeColor":
|
|
96
|
+
"strokeColor": borderColor,
|
|
69
97
|
"strokeWeight": GREEN_ZONE_STROKE_WEIGHT_VW,
|
|
70
98
|
"strokeOpacity": 0,
|
|
71
99
|
"icons": [{
|
|
@@ -83,8 +111,20 @@ const GreenZone = defineSetup("GreenZone", function(props) {
|
|
|
83
111
|
return () => {
|
|
84
112
|
if (!props.path.length)
|
|
85
113
|
return null;
|
|
114
|
+
const backgroundColors = {
|
|
115
|
+
...createBackgroundColors(payload.themeVariables),
|
|
116
|
+
...props.backgroundColors
|
|
117
|
+
};
|
|
118
|
+
const borderColors = {
|
|
119
|
+
...createBorderColors(payload.themeVariables),
|
|
120
|
+
...props.borderColors
|
|
121
|
+
};
|
|
86
122
|
return createElement(payload.supplier === "gmap" ? GGreenZone : AGreenZone, {
|
|
87
|
-
attrs:
|
|
123
|
+
attrs: {
|
|
124
|
+
...props,
|
|
125
|
+
backgroundColors,
|
|
126
|
+
borderColors
|
|
127
|
+
}
|
|
88
128
|
});
|
|
89
129
|
};
|
|
90
130
|
});
|
|
@@ -4,6 +4,7 @@ import { computed } from "vue-demi";
|
|
|
4
4
|
import { ZINDEX_PASSENGER_LAYER } from "../../api/contants.js";
|
|
5
5
|
import { AmapMarker } from "../../components/AmapMarker/AmapMarker.js";
|
|
6
6
|
import { GmapAdvancedMarkerElement } from "../../components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js";
|
|
7
|
+
import { SvgInlineWebComponentTag } from "../../components/SvgInline/SvgInline.web-component.js";
|
|
7
8
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
8
9
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
9
10
|
import { defineSetup } from "../../types/helper.js";
|
|
@@ -11,10 +12,10 @@ import { createDom } from "../../utils/dom.js";
|
|
|
11
12
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
12
13
|
import { FitViewOnce } from "../FitView/FitView.js";
|
|
13
14
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
14
|
-
const imgPassengerCircleArrow = "data:image/svg+xml;base64,
|
|
15
|
-
const imgPassengerCircle = "data:image/svg+xml;base64,
|
|
16
|
-
const imgPassengerSmallArrow = "data:image/svg+xml;base64,
|
|
17
|
-
const imgPassengerSmall = "data:image/svg+xml;base64,
|
|
15
|
+
const imgPassengerCircleArrow = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciB4PSItMjguNiUiIHk9Ii0yOC42JSIgd2lkdGg9IjE1Ny4xJSIgaGVpZ2h0PSIxNTcuMSUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9InByZWZpeF9fYSI+PGZlT2Zmc2V0IGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dPZmZzZXRPdXRlcjEiLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIyIiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXR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Q29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjI0IDAiIGluPSJzaGFkb3dCbHVyT3V0ZXIxIi8+PC9maWx0ZXI+PGNpcmNsZSBpZD0icGFzc2VuZ2VyLXNtYWxsX3ByZWZpeF9fYiIgY3g9IjE1NyIgY3k9IjM1MiIgcj0iMTAiLz48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE0MyAtMzM4KSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwYXNzZW5nZXItc21hbGxfcHJlZml4X19hKSIgeGxpbms6aHJlZj0iI3Bhc3Nlbmdlci1zbWFsbF9wcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSJoc2wodmFyKC0tSEVZQ0FSX01BUF9USEVNRV9WQVJfUFJBTUFSWV9CQU5EX0hVRSwgMjI2KSwgMTAwJSwgNjMlKSIgY3g9IjE1NyIgY3k9IjM1MiIgcj0iOC44Ii8+PC9nPjwvc3ZnPg==";
|
|
18
19
|
const PassengerCircle_css_ts_vanilla = "";
|
|
19
20
|
var passengerCircle = createRuntimeFn({ defaultClassName: "_1l6offo0", variantClassNames: { type: { small: "_1l6offo1", smallArrow: "_1l6offo2", large: "_1l6offo3", largeArrow: "_1l6offo4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
20
21
|
const APassengerCircle = defineSetup("APassengerCircle", function(props) {
|
|
@@ -27,7 +28,7 @@ const APassengerCircle = defineSetup("APassengerCircle", function(props) {
|
|
|
27
28
|
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
28
29
|
const type = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
29
30
|
return `
|
|
30
|
-
|
|
31
|
+
<${SvgInlineWebComponentTag} class="APassengerCircle ${passengerCircle({
|
|
31
32
|
type
|
|
32
33
|
})}" style="${style}" src="${src}">
|
|
33
34
|
`;
|
|
@@ -53,7 +54,7 @@ const GPassengerCircle = defineSetup("GPassengerCircle", function(props) {
|
|
|
53
54
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
54
55
|
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
55
56
|
const type = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
56
|
-
return createDom(
|
|
57
|
+
return createDom(SvgInlineWebComponentTag, {
|
|
57
58
|
class: `GPassengerCircle ${passengerCircle({
|
|
58
59
|
type
|
|
59
60
|
})}`,
|