@heycar/heycars-map 0.7.8 → 0.7.10
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 +306 -60
- package/dist/index.cjs +486 -112
- package/dist/index.js +488 -114
- package/dist/{Demo → src/Demo}/DemoBusinessTaxiService.d.ts +1 -1
- package/dist/{api → src/api}/contants.d.ts +2 -0
- package/dist/src/business-components/GreenZone/GreenZone.d.ts +8 -0
- package/dist/src/business-components/GreenZone/index.d.ts +1 -0
- package/dist/{business-components → src/business-components}/PassengerCircle/PassengerCircle.d.ts +8 -8
- package/dist/{business-components → src/business-components}/PlaceCircle/PlaceCircle.css.d.ts +2 -0
- package/dist/{business-components → src/business-components}/StartEndPoint/StartEndPoint.d.ts +8 -8
- package/dist/{business-components → src/business-components}/TaxiCar/TaxiCar.d.ts +8 -8
- package/dist/src/components/AmapPolygon/AmapPolygon.d.ts +7 -0
- package/dist/{hooks → src/hooks}/useMapFitView.d.ts +1 -1
- package/dist/{hooks → src/hooks}/useMapRecomendPlace.d.ts +18 -9
- package/dist/{hooks-business → src/hooks-business}/useBusinessQuotingMap.d.ts +1 -1
- package/dist/{hooks-business → src/hooks-business}/useBusinessRecomendPlaceMap.d.ts +7 -1
- package/dist/{hooks-business → src/hooks-business}/useBusinessTaxiServiceMap.d.ts +1 -1
- package/dist/{types → src/types}/interface.d.ts +9 -0
- package/dist/src/types/mapHelper.d.ts +10 -0
- package/dist/{utils → src/utils}/log.d.ts +1 -0
- package/dist/style.css +9 -0
- package/package.json +1 -1
- package/todo.md +1 -0
- package/dist/components/AmapPolygon/AmapPolygon.d.ts +0 -2
- package/dist/types/mapHelper.d.ts +0 -3
- /package/dist/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/{Demo → src/Demo}/Demo.css.d.ts +0 -0
- /package/dist/{Demo → src/Demo}/Demo.d.ts +0 -0
- /package/dist/{Demo → src/Demo}/DemoBusinessQuoting.d.ts +0 -0
- /package/dist/{Demo → src/Demo}/DemoBusinessRecomendPlace.d.ts +0 -0
- /package/dist/{Demo → src/Demo}/DemoBusinessTaxiEnd.d.ts +0 -0
- /package/dist/{api → src/api}/driving.d.ts +0 -0
- /package/dist/{api → src/api}/geocoder.d.ts +0 -0
- /package/dist/{api → src/api}/geometry.d.ts +0 -0
- /package/dist/{api → src/api}/place.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/AbsoluteAddressBox.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AbsoluteAddressBox/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressBox/AddressBox.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressBox/AddressBox.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressBox/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressLocator/AddressLocator.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressLocator/AddressLocator.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/AddressLocator/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessQuotingMap/BusinessQuotingMap.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessQuotingMap/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessRecomendPlaceMap/useFirstWorkflowRecomendLoading.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessTaxiEndMap/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/BusinessTaxiServiceMap/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/DrivingLine/DrivingLine.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/DrivingLine/DrivingLine.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/DrivingLine/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/DrivingRoute/DrivingRoute.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/DrivingRoute/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/FitView/FitView.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/FitView/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PassengerCircle/PassengerCircle.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PassengerCircle/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PickupPoints/PickupPoints.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PickupPoints/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PlaceCircle/PlaceCircle.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/PlaceCircle/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/StartEndPoint/StartEndPoint.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/StartEndPoint/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/TaxiCar/TaxiCar.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/TaxiCar/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WalkingLine/WalkingLine.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WalkingLine/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WalkingRoute/WalkingRoute.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WalkingRoute/index.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WaveCircle/WaveCircle.css.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WaveCircle/WaveCircle.d.ts +0 -0
- /package/dist/{business-components → src/business-components}/WaveCircle/index.d.ts +0 -0
- /package/dist/{components → src/components}/Amap/Amap.css.d.ts +0 -0
- /package/dist/{components → src/components}/Amap/Amap.d.ts +0 -0
- /package/dist/{components → src/components}/Amap/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapInfoWindow/AmapInfoWindow.d.ts +0 -0
- /package/dist/{components → src/components}/AmapInfoWindow/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapLoader/AmapLoader.d.ts +0 -0
- /package/dist/{components → src/components}/AmapLoader/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapMarker/AmapMarker.d.ts +0 -0
- /package/dist/{components → src/components}/AmapMarker/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapPolygon/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapPolyline/AmapPolyline.d.ts +0 -0
- /package/dist/{components → src/components}/AmapPolyline/index.d.ts +0 -0
- /package/dist/{components → src/components}/AmapText/AmapText.d.ts +0 -0
- /package/dist/{components → src/components}/AmapText/index.d.ts +0 -0
- /package/dist/{components → src/components}/Gmap/Gmap.css.d.ts +0 -0
- /package/dist/{components → src/components}/Gmap/Gmap.d.ts +0 -0
- /package/dist/{components → src/components}/Gmap/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapAdvancedMarkerView/GmapAdvancedMarkerView.d.ts +0 -0
- /package/dist/{components → src/components}/GmapAdvancedMarkerView/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapInfoWindow/GmapInfoWindow.d.ts +0 -0
- /package/dist/{components → src/components}/GmapInfoWindow/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapLoader/GmapLoader.d.ts +0 -0
- /package/dist/{components → src/components}/GmapLoader/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapMarker/GmapMarker.d.ts +0 -0
- /package/dist/{components → src/components}/GmapMarker/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapPolygon/GmapPolygon.d.ts +0 -0
- /package/dist/{components → src/components}/GmapPolygon/index.d.ts +0 -0
- /package/dist/{components → src/components}/GmapPolyline/GmapPolyline.d.ts +0 -0
- /package/dist/{components → src/components}/GmapPolyline/index.d.ts +0 -0
- /package/dist/{components → src/components}/Loading/Loading.css.d.ts +0 -0
- /package/dist/{components → src/components}/Loading/Loading.d.ts +0 -0
- /package/dist/{components → src/components}/Loading/index.d.ts +0 -0
- /package/dist/{components → src/components}/MapProvider/MapProvider.d.ts +0 -0
- /package/dist/{components → src/components}/MapProvider/index.d.ts +0 -0
- /package/dist/{components → src/components}/MapZoom/MapZoom.d.ts +0 -0
- /package/dist/{components → src/components}/MapZoom/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDeviceOrientation.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDrivingRoute.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useDrivingTrackCorrection.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useGeoLocation.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useHeycarMap.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMap.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapAngle.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapDrag.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapEventSource.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapGCJ02.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapGeometry.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapGestureZoomCenter.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapInChina.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapLngLatToVw.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapLoader.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapPlace.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapSupplier.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapTouchStartCenter.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapWheelZoomCenter.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMapZoom.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useOverlay.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/usePlacesLabelDirection.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useResizeObserver.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useUdate.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useVisibilityState.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useWaitTimer.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useWalkingRoute.d.ts +0 -0
- /package/dist/{hooks-business → src/hooks-business}/useBusinessAlarm.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{types → src/types}/amap/marker.d.ts +0 -0
- /package/dist/{types → src/types}/helper.d.ts +0 -0
- /package/dist/{types → src/types}/wx.d.ts +0 -0
- /package/dist/{utils → src/utils}/SingleGeoWatch.d.ts +0 -0
- /package/dist/{utils → src/utils}/compare.d.ts +0 -0
- /package/dist/{utils → src/utils}/compatibleWatchPosition.d.ts +0 -0
- /package/dist/{utils → src/utils}/dom.d.ts +0 -0
- /package/dist/{utils → src/utils}/easeAnimate.d.ts +0 -0
- /package/dist/{utils → src/utils}/helper.d.ts +0 -0
- /package/dist/{utils → src/utils}/platform.d.ts +0 -0
- /package/dist/{utils → src/utils}/transform.d.ts +0 -0
- /package/dist/{utils → src/utils}/waitQueue.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -8,6 +8,114 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
9
|
const Vue = require("vue");
|
|
10
10
|
const style = "";
|
|
11
|
+
const name = "@heycar/heycars-map";
|
|
12
|
+
const version = "0.7.10";
|
|
13
|
+
const type = "module";
|
|
14
|
+
const scripts = {
|
|
15
|
+
dev: "vite -c vite.config.dev.ts",
|
|
16
|
+
"dev:lib": 'concurrently "vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false" "tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch"',
|
|
17
|
+
build: "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
|
|
18
|
+
lint: "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
|
|
19
|
+
};
|
|
20
|
+
const types = "./dist/index.d.ts";
|
|
21
|
+
const module$1 = "./dist/index.js";
|
|
22
|
+
const main = "./dist/index.cjs";
|
|
23
|
+
const exports$1 = {
|
|
24
|
+
".": {
|
|
25
|
+
types: "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js",
|
|
27
|
+
require: "./dist/index.cjs"
|
|
28
|
+
},
|
|
29
|
+
"./dist/style.css": {
|
|
30
|
+
"import": "./dist/style.css",
|
|
31
|
+
require: "./dist/style.css"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const dependencies = {
|
|
35
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
36
|
+
"@amap/amap-jsapi-types": "^0.0.13",
|
|
37
|
+
"@googlemaps/js-api-loader": "^1.15.1",
|
|
38
|
+
"@googlemaps/typescript-guards": "^2.0.3",
|
|
39
|
+
"@use-gesture/vanilla": "^10.2.26",
|
|
40
|
+
"fast-equals": "^3.0.3",
|
|
41
|
+
"lodash-es": "^4.17.21",
|
|
42
|
+
"vue-demi": "^0.13.11"
|
|
43
|
+
};
|
|
44
|
+
const peerDependencies = {
|
|
45
|
+
"@vue/composition-api": "^1.0.0-rc.1",
|
|
46
|
+
vue: "^2.7.0 || >=3.0.0"
|
|
47
|
+
};
|
|
48
|
+
const peerDependenciesMeta = {
|
|
49
|
+
"@vue/composition-api": {
|
|
50
|
+
optional: true
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const devDependencies = {
|
|
54
|
+
"@types/google.maps": "^3.52.0",
|
|
55
|
+
"@types/lodash-es": "^4.17.6",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
57
|
+
"@typescript-eslint/parser": "^5.52.0",
|
|
58
|
+
"@vanilla-extract/css": "^1.9.5",
|
|
59
|
+
"@vanilla-extract/esbuild-plugin": "^2.2.1",
|
|
60
|
+
"@vanilla-extract/recipes": "^0.3.0",
|
|
61
|
+
"@vanilla-extract/vite-plugin": "^3.8.0",
|
|
62
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
63
|
+
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
|
64
|
+
"@vitejs/plugin-vue2": "^1.1.2",
|
|
65
|
+
"@vitejs/plugin-vue2-jsx": "^1.0.2",
|
|
66
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
67
|
+
concurrently: "^7.6.0",
|
|
68
|
+
eslint: "^8.34.0",
|
|
69
|
+
"eslint-config-prettier": "^8.6.0",
|
|
70
|
+
"eslint-plugin-import": "^2.27.5",
|
|
71
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
72
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
73
|
+
prettier: "^2.8.4",
|
|
74
|
+
typescript: "^4.9.3",
|
|
75
|
+
"unplugin-vue-jsx": "^0.1.2",
|
|
76
|
+
vite: "^4.1.0",
|
|
77
|
+
"vite-plugin-checker": "^0.5.6",
|
|
78
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
79
|
+
vue: "2.7.14",
|
|
80
|
+
"vue-tsc": "^1.0.24"
|
|
81
|
+
};
|
|
82
|
+
const publishConfig = {
|
|
83
|
+
registry: "https://registry.npmjs.com"
|
|
84
|
+
};
|
|
85
|
+
const packageManager = "pnpm@7.18.1";
|
|
86
|
+
const engines = {
|
|
87
|
+
node: ">=16.0.0"
|
|
88
|
+
};
|
|
89
|
+
const pkg = {
|
|
90
|
+
name,
|
|
91
|
+
version,
|
|
92
|
+
type,
|
|
93
|
+
scripts,
|
|
94
|
+
types,
|
|
95
|
+
module: module$1,
|
|
96
|
+
main,
|
|
97
|
+
exports: exports$1,
|
|
98
|
+
dependencies,
|
|
99
|
+
peerDependencies,
|
|
100
|
+
peerDependenciesMeta,
|
|
101
|
+
devDependencies,
|
|
102
|
+
publishConfig,
|
|
103
|
+
packageManager,
|
|
104
|
+
engines
|
|
105
|
+
};
|
|
106
|
+
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
107
|
+
const isEnableLog = (name2) => {
|
|
108
|
+
const searchParam = new URLSearchParams(location.search);
|
|
109
|
+
return searchParam.has(`log-${name2}`);
|
|
110
|
+
};
|
|
111
|
+
window.availableLogKeys = availableLogKeys;
|
|
112
|
+
const spaceLog = (logKey, ...args) => {
|
|
113
|
+
availableLogKeys.add(logKey);
|
|
114
|
+
if (!isEnableLog(logKey))
|
|
115
|
+
return;
|
|
116
|
+
console.log(logKey, ...args);
|
|
117
|
+
};
|
|
118
|
+
const logVersion = () => console.log(`package name: ${pkg.name} version: ${pkg.version}`);
|
|
11
119
|
Vue.util.warn;
|
|
12
120
|
const imgDotLoading$1 = "data:image/gif;base64,R0lGODlhVAASAIABAP///////yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LjE2NDc1MywgMjAyMS8wMi8xNS0xMTo1MjoxMyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiI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WLdlFPdlQii4w3YDl3i4tljDpzJVGGc1KYQVpZQ5F/G3GSPYKXfZ6agTWcpXGtk1xmopqzOIkUVbS5mrWFQAACH5BAkCAAEALAAAAABUABIAAAKYjB+Qi+0Po5xKSYCztvOuynQUlpAcAqah+HAuG6kqutUZjH76jNv2IdutYC9DEScMunw/pFLYM0krpqT1RARqjc7rjsnMPnkisM8b7G1DWNb4a66J0cPO7T6lp8vrY5ui9xGnMff2dzF4F4jE1scYuJTIaFg3QnVZgkX52MjFyfVGY/YZ+jjYYvXpqJqzB6HIqgUSC5rpUAAAIfkECQIAAQAsAAAAAFQAEgAAApWMH5CL7Q+jnEpJgLO2867KdBSWkBxSmaoYcS7bfvJZbjYJH+A+5/q90fV4NJ+RMuwZgEwfMZnL1KbSlJVqOr6WwmiSyGyynuRo+PaFHteQMvhsg7mVctW1ir1nx93QVp72BocjMsdjNphlyMbYFuiXWNSxKHlhl4eid7X2Vwk4l3nGBqoVFoKi1qj6UOYYtEqn+tRQAAAh+QQFAgABACwAAAAAVAASAAACmYwfoIntD6OcDEyF86LS+spRWLJYjlemIWQyRrs23+we2p3FNkh/OokK1oSj4u8Y6vGGuCaMo1TGiiki8Er16Vrc3XQpdTpXUfCUWAWms1ek+1HuiZtks5S8XmPz2u/LW5NkBzanURcH8sW2uIf29igzqFWYsyUZCMXX9oImhNT194b4ROmG+Kn59McG2QpnxqKmaprYendQAAAh+QQJAgABACwxAAMAAQABAAACAkwBACH5BAUCAAEALAAAAABUABIAAAIyjI+py+0Po5y02gBONvv6D4biSJbmiabdqqXuC8fyTNcMy7X2zvf+D/zgMMGi8YhMkgoAOw==";
|
|
13
121
|
const imgAddressLocator = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
@@ -97,8 +205,8 @@ function baseTrim(string) {
|
|
|
97
205
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
98
206
|
}
|
|
99
207
|
function isObject(value) {
|
|
100
|
-
var
|
|
101
|
-
return value != null && (
|
|
208
|
+
var type2 = typeof value;
|
|
209
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
102
210
|
}
|
|
103
211
|
var NAN = 0 / 0;
|
|
104
212
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
@@ -506,9 +614,9 @@ function defineSetup(setup) {
|
|
|
506
614
|
originEmit(kebabName, data);
|
|
507
615
|
};
|
|
508
616
|
const proxiedSlots = new Proxy(slots, {
|
|
509
|
-
get(target,
|
|
617
|
+
get(target, name2, receiver) {
|
|
510
618
|
var _a;
|
|
511
|
-
return (_a = Reflect.get(target,
|
|
619
|
+
return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
|
|
512
620
|
}
|
|
513
621
|
});
|
|
514
622
|
return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
|
|
@@ -533,9 +641,9 @@ function defineLagecySetup(setup) {
|
|
|
533
641
|
originEmit(kebabName, data);
|
|
534
642
|
};
|
|
535
643
|
const proxiedSlots = new Proxy(slots, {
|
|
536
|
-
get(target,
|
|
644
|
+
get(target, name2, receiver) {
|
|
537
645
|
var _a;
|
|
538
|
-
return (_a = Reflect.get(target,
|
|
646
|
+
return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
|
|
539
647
|
}
|
|
540
648
|
});
|
|
541
649
|
return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
|
|
@@ -569,11 +677,11 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
|
|
|
569
677
|
const handleClick = () => emit("click");
|
|
570
678
|
return () => {
|
|
571
679
|
const {
|
|
572
|
-
type,
|
|
680
|
+
type: type2,
|
|
573
681
|
title,
|
|
574
682
|
description
|
|
575
683
|
} = props;
|
|
576
|
-
if (
|
|
684
|
+
if (type2 === "locator")
|
|
577
685
|
return Vue.h("div", {
|
|
578
686
|
"class": absoluteAddressBoxLayout
|
|
579
687
|
}, [Vue.h("img", {
|
|
@@ -582,7 +690,7 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
|
|
|
582
690
|
"src": imgAddressLocator
|
|
583
691
|
}
|
|
584
692
|
})]);
|
|
585
|
-
if (
|
|
693
|
+
if (type2 === "loading")
|
|
586
694
|
return Vue.h("div", {
|
|
587
695
|
"class": absoluteAddressBoxLayout
|
|
588
696
|
}, [Vue.h("div", {
|
|
@@ -988,13 +1096,13 @@ const isGeoPositionEqual = (p1, p2) => {
|
|
|
988
1096
|
return false;
|
|
989
1097
|
return p1.coords.longitude === p2.coords.longitude && p1.coords.latitude === p2.coords.latitude;
|
|
990
1098
|
};
|
|
991
|
-
const amapPlaceName2DisplayName = (
|
|
1099
|
+
const amapPlaceName2DisplayName = (name2, options) => {
|
|
992
1100
|
const { isChina, province, city, district, township } = options;
|
|
993
|
-
if (!
|
|
994
|
-
return
|
|
1101
|
+
if (!name2)
|
|
1102
|
+
return name2;
|
|
995
1103
|
if (!isChina)
|
|
996
|
-
return
|
|
997
|
-
let result =
|
|
1104
|
+
return name2.split(",")[0];
|
|
1105
|
+
let result = name2;
|
|
998
1106
|
for (const item of [province, city, district, township]) {
|
|
999
1107
|
if (result.trim() === item)
|
|
1000
1108
|
return item;
|
|
@@ -1070,12 +1178,12 @@ function watchEffectForDeepOption(getOption, callback, watchOptions) {
|
|
|
1070
1178
|
...watchOptions
|
|
1071
1179
|
});
|
|
1072
1180
|
}
|
|
1073
|
-
function name2setterName(
|
|
1074
|
-
return `set${
|
|
1181
|
+
function name2setterName(name2) {
|
|
1182
|
+
return `set${name2.charAt(0).toUpperCase()}${name2.slice(1)}`;
|
|
1075
1183
|
}
|
|
1076
1184
|
function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptions) {
|
|
1077
1185
|
const deps = nameOptions.map(
|
|
1078
|
-
({ name }) => () => props[
|
|
1186
|
+
({ name: name2 }) => () => props[name2]
|
|
1079
1187
|
);
|
|
1080
1188
|
Vue.watch(
|
|
1081
1189
|
deps,
|
|
@@ -1084,10 +1192,10 @@ function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptio
|
|
|
1084
1192
|
if (!target)
|
|
1085
1193
|
return;
|
|
1086
1194
|
for (const [idx, value] of values.entries()) {
|
|
1087
|
-
const { name, defaultValue } = nameOptions[idx];
|
|
1195
|
+
const { name: name2, defaultValue } = nameOptions[idx];
|
|
1088
1196
|
const prev = prevValues[idx];
|
|
1089
1197
|
if (!deepCompareEqualsForMaps(value, prev)) {
|
|
1090
|
-
target[name2setterName(
|
|
1198
|
+
target[name2setterName(name2)](value != null ? value : defaultValue);
|
|
1091
1199
|
}
|
|
1092
1200
|
}
|
|
1093
1201
|
},
|
|
@@ -1110,9 +1218,9 @@ function watchPostEffectForAMapEvent(targetRef, props, emit, propertyNames) {
|
|
|
1110
1218
|
if (!target)
|
|
1111
1219
|
return;
|
|
1112
1220
|
const cleanList = [];
|
|
1113
|
-
for (const
|
|
1114
|
-
const emitEventName = property2emitEventName(
|
|
1115
|
-
const eventName = property2mapEventName(
|
|
1221
|
+
for (const name2 of propertyNames) {
|
|
1222
|
+
const emitEventName = property2emitEventName(name2);
|
|
1223
|
+
const eventName = property2mapEventName(name2);
|
|
1116
1224
|
const handler = (e) => emit(emitEventName, e);
|
|
1117
1225
|
target.on(eventName, handler);
|
|
1118
1226
|
cleanList.push(() => target == null ? void 0 : target.off(eventName, handler));
|
|
@@ -1129,9 +1237,9 @@ function watchPostEffectForGMapEvent(targetRef, props, emit, propertyNames) {
|
|
|
1129
1237
|
if (!target)
|
|
1130
1238
|
return;
|
|
1131
1239
|
const cleanList = [];
|
|
1132
|
-
for (const
|
|
1133
|
-
const emitEventName = property2emitEventName(
|
|
1134
|
-
const eventName = property2mapEventName(
|
|
1240
|
+
for (const name2 of propertyNames) {
|
|
1241
|
+
const emitEventName = property2emitEventName(name2);
|
|
1242
|
+
const eventName = property2mapEventName(name2);
|
|
1135
1243
|
const handler = (e) => emit(emitEventName, { ...e, target });
|
|
1136
1244
|
const listener = target.addListener(eventName, handler);
|
|
1137
1245
|
cleanList.push(() => google.maps.event.removeListener(listener));
|
|
@@ -1183,7 +1291,7 @@ const GmapAdvancedMarkerView = defineSetup(function GmapAdvancedMarkerView2(prop
|
|
|
1183
1291
|
const { registerOverlay } = props;
|
|
1184
1292
|
const markerRef = Vue.shallowRef();
|
|
1185
1293
|
const mapRef = useGmap();
|
|
1186
|
-
const handleClick = (
|
|
1294
|
+
const handleClick = (name2) => emit(name2, { target: markerRef.value });
|
|
1187
1295
|
Vue.onMounted(() => {
|
|
1188
1296
|
const { registerOverlay: registerOverlay2, ...markerViewProps } = props;
|
|
1189
1297
|
markerRef.value = new google.maps.marker.AdvancedMarkerView({ ...markerViewProps });
|
|
@@ -1602,7 +1710,7 @@ class Loader {
|
|
|
1602
1710
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1603
1711
|
* ```
|
|
1604
1712
|
*/
|
|
1605
|
-
constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version }) {
|
|
1713
|
+
constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version: version2 }) {
|
|
1606
1714
|
this.CALLBACK = "__googleMapsCallback";
|
|
1607
1715
|
this.callbacks = [];
|
|
1608
1716
|
this.done = false;
|
|
@@ -1620,7 +1728,7 @@ class Loader {
|
|
|
1620
1728
|
this.region = region;
|
|
1621
1729
|
this.retries = retries;
|
|
1622
1730
|
this.url = url;
|
|
1623
|
-
this.version =
|
|
1731
|
+
this.version = version2;
|
|
1624
1732
|
if (Loader.instance) {
|
|
1625
1733
|
if (!fastDeepEqual(this.options, Loader.instance.options)) {
|
|
1626
1734
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`);
|
|
@@ -1840,8 +1948,8 @@ const useAmapLoader = (props) => {
|
|
|
1840
1948
|
/* LOADING */
|
|
1841
1949
|
);
|
|
1842
1950
|
const optionsRef = Vue.computed(() => {
|
|
1843
|
-
const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version, ...options } = props;
|
|
1844
|
-
return { ...options, key: apiKey, version:
|
|
1951
|
+
const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version: version2, ...options } = props;
|
|
1952
|
+
return { ...options, key: apiKey, version: version2 != null ? version2 : "2.0.5.16" };
|
|
1845
1953
|
});
|
|
1846
1954
|
watchPostEffectForDeepOption(
|
|
1847
1955
|
() => optionsRef.value,
|
|
@@ -1989,9 +2097,9 @@ function detectWebGL() {
|
|
|
1989
2097
|
const canvas = document.createElement("canvas");
|
|
1990
2098
|
const names = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
|
|
1991
2099
|
let context2 = null;
|
|
1992
|
-
for (const
|
|
2100
|
+
for (const name2 of names) {
|
|
1993
2101
|
try {
|
|
1994
|
-
context2 = canvas.getContext(
|
|
2102
|
+
context2 = canvas.getContext(name2);
|
|
1995
2103
|
if (context2 && typeof context2.getParameter === "function") {
|
|
1996
2104
|
return "ENABLED";
|
|
1997
2105
|
}
|
|
@@ -2011,6 +2119,8 @@ const ZINDEX_START_END_LOGO_LAYER = 40;
|
|
|
2011
2119
|
const ZINDEX_PLACE_LAYER = 30;
|
|
2012
2120
|
const ZINDEX_CAR_LAYER = 21;
|
|
2013
2121
|
const ZINDEX_PASSENGER_LAYER = 20;
|
|
2122
|
+
const ZINDEX_LINE_LAYER = 12;
|
|
2123
|
+
const ZINDEX_GREEN_ZONE = 10;
|
|
2014
2124
|
const useAmapLngLatToVw = (props) => {
|
|
2015
2125
|
const apiMapLngLatToVw = (point) => {
|
|
2016
2126
|
const amap2 = props.mapRef.value;
|
|
@@ -2323,12 +2433,12 @@ const Gmap = defineSetup(function Gmap2(props, { slots, emit }) {
|
|
|
2323
2433
|
const mapRef = Vue.shallowRef();
|
|
2324
2434
|
const { executeMapApi } = useMapEventSource();
|
|
2325
2435
|
const { touchstartCenterRef } = useGmapTouchStartCenter({ mapRef, elementRef });
|
|
2326
|
-
const handleDrag = (
|
|
2327
|
-
emit(
|
|
2436
|
+
const handleDrag = (name2) => {
|
|
2437
|
+
emit(name2, { target: mapRef.value });
|
|
2328
2438
|
};
|
|
2329
|
-
const handleZoom = (
|
|
2439
|
+
const handleZoom = (name2) => {
|
|
2330
2440
|
var _a;
|
|
2331
|
-
emit(
|
|
2441
|
+
emit(name2, { target: mapRef.value });
|
|
2332
2442
|
const center = touchstartCenterRef.value;
|
|
2333
2443
|
if (center)
|
|
2334
2444
|
(_a = mapRef.value) == null ? void 0 : _a.setCenter(vec2lnglat(center));
|
|
@@ -2394,12 +2504,12 @@ const MapProvider = defineLagecySetup(function MapProvider2(props, {
|
|
|
2394
2504
|
readyPromise
|
|
2395
2505
|
} = useMapLoader(props);
|
|
2396
2506
|
const context2 = new Proxy(props, {
|
|
2397
|
-
get(target,
|
|
2398
|
-
if (
|
|
2507
|
+
get(target, name2, receiver) {
|
|
2508
|
+
if (name2 === "status")
|
|
2399
2509
|
return statusRef.value;
|
|
2400
|
-
if (
|
|
2510
|
+
if (name2 === "readyPromise")
|
|
2401
2511
|
return readyPromise;
|
|
2402
|
-
return Reflect.get(target,
|
|
2512
|
+
return Reflect.get(target, name2, receiver);
|
|
2403
2513
|
}
|
|
2404
2514
|
});
|
|
2405
2515
|
provideMapSupplier(context2);
|
|
@@ -2575,7 +2685,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2575
2685
|
"strokeOpacity": 1,
|
|
2576
2686
|
"strokeColor": strokeColorOuter,
|
|
2577
2687
|
"lineJoin": "round",
|
|
2578
|
-
"lineCap": "round"
|
|
2688
|
+
"lineCap": "round",
|
|
2689
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2579
2690
|
}
|
|
2580
2691
|
}), Vue.h(AmapPolyline, {
|
|
2581
2692
|
"attrs": {
|
|
@@ -2586,7 +2697,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2586
2697
|
"lineJoin": "round",
|
|
2587
2698
|
"lineCap": "round",
|
|
2588
2699
|
"strokeStyle": "dashed",
|
|
2589
|
-
"strokeDasharray": [dashLength, dashLength * 0.5]
|
|
2700
|
+
"strokeDasharray": [dashLength, dashLength * 0.5],
|
|
2701
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2590
2702
|
}
|
|
2591
2703
|
}), Vue.h(AmapPolyline, {
|
|
2592
2704
|
"attrs": {
|
|
@@ -2595,7 +2707,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2595
2707
|
"strokeOpacity": 1,
|
|
2596
2708
|
"strokeColor": strokeColorInner,
|
|
2597
2709
|
"lineJoin": "round",
|
|
2598
|
-
"lineCap": "round"
|
|
2710
|
+
"lineCap": "round",
|
|
2711
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2599
2712
|
}
|
|
2600
2713
|
}), Vue.h(AmapPolyline, {
|
|
2601
2714
|
"attrs": {
|
|
@@ -2605,7 +2718,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2605
2718
|
"strokeOpacity": 1,
|
|
2606
2719
|
"strokeColor": "transparent",
|
|
2607
2720
|
"lineJoin": "round",
|
|
2608
|
-
"lineCap": "round"
|
|
2721
|
+
"lineCap": "round",
|
|
2722
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2609
2723
|
}
|
|
2610
2724
|
})]);
|
|
2611
2725
|
};
|
|
@@ -2627,7 +2741,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2627
2741
|
"path": pathRef.value,
|
|
2628
2742
|
"strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
|
|
2629
2743
|
"strokeOpacity": 1,
|
|
2630
|
-
"strokeColor": strokeColorOuter
|
|
2744
|
+
"strokeColor": strokeColorOuter,
|
|
2745
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2631
2746
|
}
|
|
2632
2747
|
}), Vue.h(GmapPolyline, {
|
|
2633
2748
|
"attrs": {
|
|
@@ -2642,7 +2757,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2642
2757
|
},
|
|
2643
2758
|
repeat: `${strokeWidth}px`,
|
|
2644
2759
|
offset: `${strokeWidth / 2}px`
|
|
2645
|
-
}]
|
|
2760
|
+
}],
|
|
2761
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2646
2762
|
}
|
|
2647
2763
|
}), Vue.h(GmapPolyline, {
|
|
2648
2764
|
"attrs": {
|
|
@@ -2658,7 +2774,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2658
2774
|
scale: 0.7
|
|
2659
2775
|
},
|
|
2660
2776
|
repeat: `${repeat}px`
|
|
2661
|
-
}]
|
|
2777
|
+
}],
|
|
2778
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2662
2779
|
}
|
|
2663
2780
|
})]);
|
|
2664
2781
|
};
|
|
@@ -2872,18 +2989,6 @@ const DrivingRoute = defineSetup(function DrivingRoute2(props, {
|
|
|
2872
2989
|
scopedSlots: slots
|
|
2873
2990
|
});
|
|
2874
2991
|
});
|
|
2875
|
-
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2876
|
-
const isEnableLog = (name) => {
|
|
2877
|
-
const searchParam = new URLSearchParams(location.search);
|
|
2878
|
-
return searchParam.has(`log-${name}`);
|
|
2879
|
-
};
|
|
2880
|
-
window.availableLogKeys = availableLogKeys;
|
|
2881
|
-
const spaceLog = (logKey, ...args) => {
|
|
2882
|
-
availableLogKeys.add(logKey);
|
|
2883
|
-
if (!isEnableLog(logKey))
|
|
2884
|
-
return;
|
|
2885
|
-
console.log(logKey, ...args);
|
|
2886
|
-
};
|
|
2887
2992
|
const GOOGLE_MAP_ZOOM_CHANGE_DEBOUNCE_TIMEOUT$1 = 20;
|
|
2888
2993
|
const useAmapFitView = (props) => {
|
|
2889
2994
|
const { mapRef, autoFitTimeout } = props;
|
|
@@ -5272,23 +5377,23 @@ const useAmapPlace = (props) => {
|
|
|
5272
5377
|
switch (status) {
|
|
5273
5378
|
case "complete": {
|
|
5274
5379
|
const { formattedAddress, addressComponent } = result.regeocode;
|
|
5275
|
-
const
|
|
5276
|
-
const displayName = amapPlaceName2DisplayName(
|
|
5277
|
-
place.name =
|
|
5380
|
+
const name2 = formattedAddress ? formattedAddress : emptyPlaceName;
|
|
5381
|
+
const displayName = amapPlaceName2DisplayName(name2, { isChina, ...addressComponent });
|
|
5382
|
+
place.name = name2;
|
|
5278
5383
|
place.displayName = displayName;
|
|
5279
5384
|
place.lng = lng;
|
|
5280
5385
|
place.lat = lat;
|
|
5281
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5386
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5282
5387
|
return;
|
|
5283
5388
|
}
|
|
5284
5389
|
case "no_data": {
|
|
5285
|
-
const
|
|
5390
|
+
const name2 = emptyPlaceName;
|
|
5286
5391
|
const displayName = emptyPlaceName;
|
|
5287
|
-
place.name =
|
|
5392
|
+
place.name = name2;
|
|
5288
5393
|
place.displayName = displayName;
|
|
5289
5394
|
place.lng = lng;
|
|
5290
5395
|
place.lat = lat;
|
|
5291
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5396
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5292
5397
|
return;
|
|
5293
5398
|
}
|
|
5294
5399
|
case "error":
|
|
@@ -5328,13 +5433,13 @@ const useGmapPlace = (props) => {
|
|
|
5328
5433
|
const geocoder = new google.maps.Geocoder();
|
|
5329
5434
|
const [lng, lat] = pointRef.value;
|
|
5330
5435
|
const { results } = await geocoder.geocode({ language: LANGUAGE, location: { lng, lat } });
|
|
5331
|
-
const
|
|
5332
|
-
const displayName =
|
|
5436
|
+
const name2 = results[0].formatted_address ? results[0].formatted_address : emptyPlaceName;
|
|
5437
|
+
const displayName = name2;
|
|
5333
5438
|
place.lng = lng;
|
|
5334
5439
|
place.lat = lat;
|
|
5335
|
-
place.name =
|
|
5440
|
+
place.name = name2;
|
|
5336
5441
|
place.displayName = displayName;
|
|
5337
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5442
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5338
5443
|
}
|
|
5339
5444
|
);
|
|
5340
5445
|
return { place, updatePlace, setPlace };
|
|
@@ -5371,7 +5476,8 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5371
5476
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5372
5477
|
const availableRef = Vue.ref(true);
|
|
5373
5478
|
const placeCandidatesRef = Vue.ref([]);
|
|
5374
|
-
const
|
|
5479
|
+
const zoneRef = Vue.ref();
|
|
5480
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5375
5481
|
const { readyPromise } = useMapSupplier();
|
|
5376
5482
|
const { place, updatePlace, setPlace } = useAmapPlace({
|
|
5377
5483
|
emptyPlaceName,
|
|
@@ -5386,49 +5492,76 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5386
5492
|
);
|
|
5387
5493
|
});
|
|
5388
5494
|
const updatePlaceCandidates = async (place2) => {
|
|
5389
|
-
|
|
5495
|
+
var _a;
|
|
5496
|
+
const {
|
|
5497
|
+
places: inputPlaceCandidates,
|
|
5498
|
+
zone,
|
|
5499
|
+
available
|
|
5500
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5390
5501
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5391
|
-
availableRef.value =
|
|
5502
|
+
availableRef.value = !!available;
|
|
5503
|
+
zoneRef.value = zone;
|
|
5504
|
+
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5505
|
+
};
|
|
5506
|
+
const updateRecommendPlace = (place2) => {
|
|
5507
|
+
setPlace(place2);
|
|
5508
|
+
updateRecommendPlaceKey();
|
|
5509
|
+
};
|
|
5510
|
+
const setPlaceCandidatesAndZone = ({
|
|
5511
|
+
zone,
|
|
5512
|
+
places: inputPlaceCandidates
|
|
5513
|
+
}) => {
|
|
5514
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5515
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5392
5516
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5393
5517
|
};
|
|
5394
5518
|
Vue.watch(
|
|
5395
5519
|
() => recomendPlaceKey.value,
|
|
5396
5520
|
async () => {
|
|
5521
|
+
var _a;
|
|
5397
5522
|
await readyPromise;
|
|
5398
|
-
const
|
|
5523
|
+
const {
|
|
5524
|
+
places: inputPlaceCandidates,
|
|
5525
|
+
zone,
|
|
5526
|
+
available
|
|
5527
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5399
5528
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5400
|
-
if (
|
|
5401
|
-
availableRef.value =
|
|
5529
|
+
if (!available || !placeCandidates) {
|
|
5530
|
+
availableRef.value = !!available;
|
|
5531
|
+
zoneRef.value = zone;
|
|
5402
5532
|
placeCandidatesRef.value = [];
|
|
5403
5533
|
Object.assign(recomendPlace, { ...place });
|
|
5404
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5534
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5405
5535
|
return;
|
|
5406
5536
|
}
|
|
5407
5537
|
const { shortestPlace, shortestDistance } = findAmapNearestPlace(place, placeCandidates);
|
|
5408
5538
|
const limit = getLimit(context2);
|
|
5409
|
-
const resultPlace = shortestDistance
|
|
5410
|
-
availableRef.value =
|
|
5539
|
+
const resultPlace = zone || shortestDistance <= limit ? shortestPlace : place;
|
|
5540
|
+
availableRef.value = !!available;
|
|
5541
|
+
zoneRef.value = zone;
|
|
5411
5542
|
placeCandidatesRef.value = placeCandidates;
|
|
5412
5543
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5413
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5544
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5414
5545
|
}
|
|
5415
5546
|
);
|
|
5416
5547
|
return {
|
|
5548
|
+
zoneRef,
|
|
5417
5549
|
recomendPlace,
|
|
5418
5550
|
placeCandidates: placeCandidatesRef,
|
|
5419
5551
|
availableRef,
|
|
5420
5552
|
isElectedRef,
|
|
5421
|
-
|
|
5553
|
+
updateRecommendPlace,
|
|
5422
5554
|
updatePlaceCandidates,
|
|
5423
5555
|
updatePlace,
|
|
5424
|
-
|
|
5556
|
+
setPlaceCandidatesAndZone
|
|
5425
5557
|
};
|
|
5426
5558
|
};
|
|
5427
5559
|
const useGmapRecomendPlace = (props) => {
|
|
5428
5560
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5429
5561
|
const availableRef = Vue.ref(true);
|
|
5430
5562
|
const placeCandidatesRef = Vue.ref([]);
|
|
5431
|
-
const
|
|
5563
|
+
const zoneRef = Vue.ref();
|
|
5564
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5432
5565
|
const { readyPromise } = useMapSupplier();
|
|
5433
5566
|
const { place, updatePlace, setPlace } = useGmapPlace({
|
|
5434
5567
|
emptyPlaceName,
|
|
@@ -5443,40 +5576,64 @@ const useGmapRecomendPlace = (props) => {
|
|
|
5443
5576
|
);
|
|
5444
5577
|
});
|
|
5445
5578
|
const updatePlaceCandidates = async (place2) => {
|
|
5446
|
-
|
|
5447
|
-
|
|
5579
|
+
var _a;
|
|
5580
|
+
const {
|
|
5581
|
+
places: inputPlaceCandidates,
|
|
5582
|
+
zone,
|
|
5583
|
+
available
|
|
5584
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5585
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5586
|
+
availableRef.value = !!available;
|
|
5587
|
+
zoneRef.value = zone;
|
|
5448
5588
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5449
5589
|
};
|
|
5590
|
+
const updateRecommendPlace = (place2) => {
|
|
5591
|
+
setPlace(place2);
|
|
5592
|
+
updateRecommendPlaceKey();
|
|
5593
|
+
};
|
|
5594
|
+
const setPlaceCandidatesAndZone = ({ zone, places }) => {
|
|
5595
|
+
placeCandidatesRef.value = places != null ? places : [];
|
|
5596
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5597
|
+
};
|
|
5450
5598
|
Vue.watch(
|
|
5451
5599
|
() => recomendPlaceKey.value,
|
|
5452
5600
|
async () => {
|
|
5601
|
+
var _a;
|
|
5453
5602
|
await readyPromise;
|
|
5454
|
-
const
|
|
5455
|
-
|
|
5456
|
-
|
|
5603
|
+
const {
|
|
5604
|
+
places: inputPlaceCandidates,
|
|
5605
|
+
zone,
|
|
5606
|
+
available
|
|
5607
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5608
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5609
|
+
if (!available || !placeCandidates) {
|
|
5610
|
+
availableRef.value = !!available;
|
|
5611
|
+
zoneRef.value = zone;
|
|
5457
5612
|
placeCandidatesRef.value = [];
|
|
5458
5613
|
Object.assign(recomendPlace, { ...place });
|
|
5459
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5614
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5460
5615
|
return;
|
|
5461
5616
|
}
|
|
5462
5617
|
const { shortestPlace, shortestDistance } = findGmapNearestPlace(place, placeCandidates);
|
|
5463
5618
|
const limit = getLimit(context2);
|
|
5464
5619
|
const resultPlace = shortestDistance > limit ? place : shortestPlace;
|
|
5465
|
-
availableRef.value =
|
|
5620
|
+
availableRef.value = !!available;
|
|
5621
|
+
zoneRef.value = zone;
|
|
5466
5622
|
placeCandidatesRef.value = placeCandidates;
|
|
5467
5623
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5468
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5624
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5469
5625
|
}
|
|
5470
5626
|
);
|
|
5471
5627
|
return {
|
|
5628
|
+
zoneRef,
|
|
5472
5629
|
recomendPlace,
|
|
5473
5630
|
placeCandidates: placeCandidatesRef,
|
|
5474
5631
|
availableRef,
|
|
5475
5632
|
isElectedRef,
|
|
5476
|
-
|
|
5633
|
+
updateRecommendPlace,
|
|
5477
5634
|
updatePlaceCandidates,
|
|
5478
5635
|
updatePlace,
|
|
5479
|
-
|
|
5636
|
+
setPlaceCandidatesAndZone
|
|
5480
5637
|
};
|
|
5481
5638
|
};
|
|
5482
5639
|
const useMapRecomendPlace = (props) => {
|
|
@@ -5530,6 +5687,169 @@ const useMapZoom = (props) => {
|
|
|
5530
5687
|
const { supplier } = useMapSupplier();
|
|
5531
5688
|
return supplier === "gmap" ? useGmapZoom(props) : useAmapZoom(props);
|
|
5532
5689
|
};
|
|
5690
|
+
const AmapPolygon = defineSetup(function AmapPolygon2(props) {
|
|
5691
|
+
const polygonRef = Vue.shallowRef();
|
|
5692
|
+
const mapRef = useAmap();
|
|
5693
|
+
Vue.onMounted(() => {
|
|
5694
|
+
polygonRef.value = new AMap.Polygon();
|
|
5695
|
+
polygonRef.value.setOptions(props);
|
|
5696
|
+
});
|
|
5697
|
+
Vue.onUnmounted(() => {
|
|
5698
|
+
var _a;
|
|
5699
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5700
|
+
});
|
|
5701
|
+
useAmapFixBugPolygonDrag(polygonRef);
|
|
5702
|
+
Vue.watchPostEffect(() => {
|
|
5703
|
+
var _a;
|
|
5704
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5705
|
+
if (!map)
|
|
5706
|
+
return;
|
|
5707
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5708
|
+
});
|
|
5709
|
+
watchNoneImmediatePostEffectForMapProperty(polygonRef, props, [
|
|
5710
|
+
{ name: "path", defaultValue: [[0, 0]] },
|
|
5711
|
+
{ name: "extData", defaultValue: void 0 },
|
|
5712
|
+
{ name: "draggable", defaultValue: false }
|
|
5713
|
+
]);
|
|
5714
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5715
|
+
() => {
|
|
5716
|
+
const { path, extData, draggable, ...otherOptions } = props;
|
|
5717
|
+
return otherOptions;
|
|
5718
|
+
},
|
|
5719
|
+
(otherOptions) => {
|
|
5720
|
+
var _a;
|
|
5721
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...otherOptions });
|
|
5722
|
+
}
|
|
5723
|
+
);
|
|
5724
|
+
return () => null;
|
|
5725
|
+
});
|
|
5726
|
+
const useAmapFixBugPolygonDrag = (polygonRef) => {
|
|
5727
|
+
let dragStatus = "UNSTARTED";
|
|
5728
|
+
const onTouchStart = () => {
|
|
5729
|
+
dragStatus = "WAITING_DRAG_START";
|
|
5730
|
+
};
|
|
5731
|
+
const onTouchMove = (_, event) => {
|
|
5732
|
+
if (dragStatus !== "WAITING_DRAG_START")
|
|
5733
|
+
return;
|
|
5734
|
+
const { target, lnglat, pixel, originEvent } = event;
|
|
5735
|
+
dragStatus = "WAITING_DRAG_END";
|
|
5736
|
+
const amap2 = target.getMap();
|
|
5737
|
+
amap2 == null ? void 0 : amap2.emit("dragstart", { type: "dragstart", target: amap2, lnglat, pixel, originEvent });
|
|
5738
|
+
};
|
|
5739
|
+
const onTouchEnd = (_, event) => {
|
|
5740
|
+
if (dragStatus !== "WAITING_DRAG_END")
|
|
5741
|
+
return;
|
|
5742
|
+
const { target, lnglat, pixel, originEvent } = event;
|
|
5743
|
+
dragStatus = "UNSTARTED";
|
|
5744
|
+
const amap2 = target.getMap();
|
|
5745
|
+
amap2 == null ? void 0 : amap2.emit("dragend", { type: "dragend", target: amap2, lnglat, pixel, originEvent });
|
|
5746
|
+
};
|
|
5747
|
+
watchPostEffectForAMapEvent(
|
|
5748
|
+
polygonRef,
|
|
5749
|
+
{},
|
|
5750
|
+
onTouchStart,
|
|
5751
|
+
["onTouchStart"]
|
|
5752
|
+
);
|
|
5753
|
+
watchPostEffectForAMapEvent(
|
|
5754
|
+
polygonRef,
|
|
5755
|
+
{},
|
|
5756
|
+
onTouchMove,
|
|
5757
|
+
["onTouchMove"]
|
|
5758
|
+
);
|
|
5759
|
+
watchPostEffectForAMapEvent(polygonRef, {}, onTouchEnd, [
|
|
5760
|
+
"onTouchEnd"
|
|
5761
|
+
]);
|
|
5762
|
+
};
|
|
5763
|
+
const GmapPolygon = defineSetup(function GmapPolygon2(props) {
|
|
5764
|
+
const polygonRef = Vue.shallowRef();
|
|
5765
|
+
const mapRef = useGmap();
|
|
5766
|
+
Vue.onMounted(() => {
|
|
5767
|
+
polygonRef.value = new google.maps.Polygon({ ...props });
|
|
5768
|
+
});
|
|
5769
|
+
Vue.onUnmounted(() => {
|
|
5770
|
+
var _a;
|
|
5771
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5772
|
+
});
|
|
5773
|
+
Vue.watchPostEffect(() => {
|
|
5774
|
+
var _a;
|
|
5775
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5776
|
+
if (!map)
|
|
5777
|
+
return;
|
|
5778
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5779
|
+
});
|
|
5780
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5781
|
+
() => ({ ...props }),
|
|
5782
|
+
(props2) => {
|
|
5783
|
+
var _a;
|
|
5784
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...props2 });
|
|
5785
|
+
}
|
|
5786
|
+
);
|
|
5787
|
+
return () => null;
|
|
5788
|
+
});
|
|
5789
|
+
const GREEN_ZONE_FILL_COLOR = "#C7E5FB";
|
|
5790
|
+
const GREEN_ZONE_FILL_OPACITY = 0.5;
|
|
5791
|
+
const GREEN_ZONE_STROKE_COLOR = "#4BA7FF";
|
|
5792
|
+
const GREEN_ZONE_STROKE_WEIGHT_VW = 1;
|
|
5793
|
+
const AGreenZone = defineSetup(function AGreenZone2(props) {
|
|
5794
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5795
|
+
return () => {
|
|
5796
|
+
return Vue.h(AmapPolygon, {
|
|
5797
|
+
"attrs": {
|
|
5798
|
+
"path": props.path,
|
|
5799
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5800
|
+
"strokeStyle": "dashed",
|
|
5801
|
+
"strokeWeight": strokeWeight,
|
|
5802
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5803
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5804
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5805
|
+
}
|
|
5806
|
+
});
|
|
5807
|
+
};
|
|
5808
|
+
});
|
|
5809
|
+
const GGreenZone = defineSetup(function GGreenZone2(props) {
|
|
5810
|
+
const pathRef = Vue.computed(() => props.path.map(vec2lnglat));
|
|
5811
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5812
|
+
const lineSymbol = {
|
|
5813
|
+
path: "M 0,-1 0,1",
|
|
5814
|
+
strokeOpacity: 1,
|
|
5815
|
+
scale: 4
|
|
5816
|
+
};
|
|
5817
|
+
return () => {
|
|
5818
|
+
const path = pathRef.value;
|
|
5819
|
+
return Vue.h("div", [Vue.h(GmapPolygon, {
|
|
5820
|
+
"attrs": {
|
|
5821
|
+
"paths": path,
|
|
5822
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5823
|
+
"strokeOpacity": 0,
|
|
5824
|
+
"strokeWeight": strokeWeight,
|
|
5825
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5826
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5827
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5828
|
+
}
|
|
5829
|
+
}), Vue.h(GmapPolyline, {
|
|
5830
|
+
"attrs": {
|
|
5831
|
+
"path": path,
|
|
5832
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5833
|
+
"strokeWeight": GREEN_ZONE_STROKE_WEIGHT_VW,
|
|
5834
|
+
"icons": [{
|
|
5835
|
+
icon: lineSymbol,
|
|
5836
|
+
offset: "0",
|
|
5837
|
+
repeat: "20px"
|
|
5838
|
+
}]
|
|
5839
|
+
}
|
|
5840
|
+
})]);
|
|
5841
|
+
};
|
|
5842
|
+
});
|
|
5843
|
+
const GreenZone = defineSetup(function GreenZone2(props) {
|
|
5844
|
+
const payload = useMapSupplier();
|
|
5845
|
+
return () => {
|
|
5846
|
+
if (!props.path.length)
|
|
5847
|
+
return null;
|
|
5848
|
+
return createElement(payload.supplier === "gmap" ? GGreenZone : AGreenZone, {
|
|
5849
|
+
attrs: props
|
|
5850
|
+
});
|
|
5851
|
+
};
|
|
5852
|
+
});
|
|
5533
5853
|
const imgPassengerCircleArrow = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTI4LjYlIiB5PSItMjguNiUiIHdpZHRoPSIxNTcuMSUiIGhlaWdodD0iMTU3LjElIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2EiPjxmZU9mZnNldCBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMiIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGF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ik0xNC40ODEgMGw2LjYwMyAxMy4xODFINy44Nzl6Ii8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCkiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSIjNDg3MUYxIiBjeD0iMTAuNSIgY3k9IjE5LjUiIHI9IjkuMyIvPjwvZz48L2c+PC9zdmc+";
|
|
@@ -5544,10 +5864,10 @@ const APassengerCircle = defineSetup(function APassengerCircle2(props) {
|
|
|
5544
5864
|
} = props;
|
|
5545
5865
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
5546
5866
|
const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
5547
|
-
const
|
|
5867
|
+
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
5548
5868
|
return `
|
|
5549
5869
|
<img class="APassengerCircle ${passengerCircle({
|
|
5550
|
-
type
|
|
5870
|
+
type: type2
|
|
5551
5871
|
})}" style="${style2}" src="${src}">
|
|
5552
5872
|
`;
|
|
5553
5873
|
});
|
|
@@ -5571,10 +5891,10 @@ const GPassengerCircle = defineSetup(function GPassengerCircle2(props) {
|
|
|
5571
5891
|
} = props;
|
|
5572
5892
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
5573
5893
|
const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
5574
|
-
const
|
|
5894
|
+
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
5575
5895
|
return createDom("img", {
|
|
5576
5896
|
class: `GPassengerCircle ${passengerCircle({
|
|
5577
|
-
type
|
|
5897
|
+
type: type2
|
|
5578
5898
|
})}`,
|
|
5579
5899
|
src,
|
|
5580
5900
|
style: style2
|
|
@@ -5690,7 +6010,9 @@ var AnchorType = /* @__PURE__ */ ((AnchorType2) => {
|
|
|
5690
6010
|
const PlaceCircle_css_ts_vanilla = "";
|
|
5691
6011
|
var amapPlaceIconLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5692
6012
|
var gmapPlaceIconLayout = createRuntimeFn({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5693
|
-
var label = "
|
|
6013
|
+
var label = "fhyw8c";
|
|
6014
|
+
var labelLayout = "fhyw8b";
|
|
6015
|
+
var labelStroke = "fhyw8d fhyw8c";
|
|
5694
6016
|
var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5695
6017
|
var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5696
6018
|
const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
@@ -5713,7 +6035,10 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
|
5713
6035
|
})} ${amapPlaceIconLayout({
|
|
5714
6036
|
textAlign: textAlignRef.value
|
|
5715
6037
|
})}" src="${imgPlaceCircle}">
|
|
5716
|
-
<div class="${
|
|
6038
|
+
<div class="${labelLayout}">
|
|
6039
|
+
<div class="${labelStroke}">${props.label}</div>
|
|
6040
|
+
<div class="${label}">${props.label}</div>
|
|
6041
|
+
</div>
|
|
5717
6042
|
</div>
|
|
5718
6043
|
`;
|
|
5719
6044
|
});
|
|
@@ -5727,7 +6052,8 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
|
5727
6052
|
textAlign: textAlignRef.value
|
|
5728
6053
|
})}" src="${imgPlaceCircle}">`;
|
|
5729
6054
|
});
|
|
5730
|
-
const handleClick = () => {
|
|
6055
|
+
const handleClick = (e) => {
|
|
6056
|
+
console.log("AmapMarker click e = ", e);
|
|
5731
6057
|
emit("click", props.position);
|
|
5732
6058
|
};
|
|
5733
6059
|
return () => {
|
|
@@ -5765,7 +6091,10 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
|
|
|
5765
6091
|
<img class="${placeIcon({
|
|
5766
6092
|
hideIcon
|
|
5767
6093
|
})}" src="${imgPlaceCircle}">
|
|
5768
|
-
<div class="${
|
|
6094
|
+
<div class="${labelLayout}">
|
|
6095
|
+
<div class="${labelStroke}">${props.label}</div>
|
|
6096
|
+
<div class="${label}">${props.label}</div>
|
|
6097
|
+
</div>
|
|
5769
6098
|
`);
|
|
5770
6099
|
});
|
|
5771
6100
|
const contentWithoutLabelRef = Vue.computed(() => {
|
|
@@ -5879,7 +6208,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5879
6208
|
const centerSource = {
|
|
5880
6209
|
source: "geo"
|
|
5881
6210
|
};
|
|
5882
|
-
const
|
|
6211
|
+
const updateCenterPlaceByPoint = (point) => {
|
|
5883
6212
|
centerSource.source = "api";
|
|
5884
6213
|
updatePlace(point);
|
|
5885
6214
|
};
|
|
@@ -5893,7 +6222,20 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5893
6222
|
emit("changePlace", {
|
|
5894
6223
|
...place
|
|
5895
6224
|
});
|
|
5896
|
-
|
|
6225
|
+
updateRecommendPlace(place);
|
|
6226
|
+
};
|
|
6227
|
+
const setCenterPlaceByUserSpecifiedInZone = ({
|
|
6228
|
+
place,
|
|
6229
|
+
recommends
|
|
6230
|
+
}) => {
|
|
6231
|
+
centerPlace.lng = place.lng;
|
|
6232
|
+
centerPlace.lat = place.lat;
|
|
6233
|
+
centerPlace.name = place.name;
|
|
6234
|
+
centerPlace.displayName = place.displayName;
|
|
6235
|
+
setPlaceCandidatesAndZone(recommends);
|
|
6236
|
+
emit("changePlace", {
|
|
6237
|
+
...place
|
|
6238
|
+
});
|
|
5897
6239
|
};
|
|
5898
6240
|
const panToCenterByPlace = async (place) => {
|
|
5899
6241
|
centerSource.source = "api";
|
|
@@ -5905,6 +6247,15 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5905
6247
|
emit("changePlace", {
|
|
5906
6248
|
...place
|
|
5907
6249
|
});
|
|
6250
|
+
emit("changeRecomandPlace", {
|
|
6251
|
+
place: {
|
|
6252
|
+
...place
|
|
6253
|
+
},
|
|
6254
|
+
inputPlace: {
|
|
6255
|
+
...place
|
|
6256
|
+
},
|
|
6257
|
+
isInZone: !!zoneRef.value
|
|
6258
|
+
});
|
|
5908
6259
|
};
|
|
5909
6260
|
const defaultCenterPlacePromise = new Promise((resolve) => {
|
|
5910
6261
|
getDefaultCenterPlace().then(resolve).catch(() => resolve(void 0));
|
|
@@ -5943,10 +6294,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5943
6294
|
}
|
|
5944
6295
|
});
|
|
5945
6296
|
mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
|
|
6297
|
+
mapContext.setCenterPlaceByUserSpecifiedInZone = setCenterPlaceByUserSpecifiedInZone;
|
|
5946
6298
|
mapContext.panToGeoPositionByRecomend = () => {
|
|
5947
6299
|
if (geoError.value)
|
|
5948
6300
|
return false;
|
|
5949
|
-
|
|
6301
|
+
updateCenterPlaceByPoint(geoPosition.value);
|
|
5950
6302
|
return true;
|
|
5951
6303
|
};
|
|
5952
6304
|
const {
|
|
@@ -5961,9 +6313,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5961
6313
|
});
|
|
5962
6314
|
const {
|
|
5963
6315
|
updatePlace,
|
|
5964
|
-
|
|
5965
|
-
|
|
6316
|
+
updateRecommendPlace,
|
|
6317
|
+
setPlaceCandidatesAndZone,
|
|
5966
6318
|
placeCandidates,
|
|
6319
|
+
zoneRef,
|
|
5967
6320
|
availableRef,
|
|
5968
6321
|
isElectedRef
|
|
5969
6322
|
} = useMapRecomendPlace({
|
|
@@ -5986,18 +6339,26 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5986
6339
|
},
|
|
5987
6340
|
onChangePlace: (place) => {
|
|
5988
6341
|
if (centerSource.source !== "recomend") {
|
|
5989
|
-
|
|
6342
|
+
updateRecommendPlace(place);
|
|
5990
6343
|
}
|
|
5991
6344
|
emit("changePlace", place);
|
|
5992
6345
|
},
|
|
5993
|
-
onChange: async (
|
|
6346
|
+
onChange: async ({
|
|
6347
|
+
place,
|
|
6348
|
+
inputPlace,
|
|
6349
|
+
isInZone
|
|
6350
|
+
}) => {
|
|
5994
6351
|
centerSource.source = "recomend";
|
|
5995
6352
|
if (isPlaceEqual(place, centerPlace))
|
|
5996
6353
|
panTo(place2point(place));
|
|
5997
6354
|
Object.assign(centerPlace, {
|
|
5998
6355
|
...place
|
|
5999
6356
|
});
|
|
6000
|
-
emit("changeRecomandPlace",
|
|
6357
|
+
emit("changeRecomandPlace", {
|
|
6358
|
+
place,
|
|
6359
|
+
inputPlace,
|
|
6360
|
+
isInZone
|
|
6361
|
+
});
|
|
6001
6362
|
}
|
|
6002
6363
|
});
|
|
6003
6364
|
Vue.watchEffect(() => {
|
|
@@ -6009,6 +6370,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
6009
6370
|
mapContext.onChangeRecomendPlaces([...placeCandidates.value]);
|
|
6010
6371
|
});
|
|
6011
6372
|
return () => {
|
|
6373
|
+
var _a2, _b2;
|
|
6012
6374
|
const {
|
|
6013
6375
|
geoLoadingTitle: geoLoadingTitle2,
|
|
6014
6376
|
recomendDescription,
|
|
@@ -6025,7 +6387,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
6025
6387
|
"fallback": slots.fallback,
|
|
6026
6388
|
"loading": slots.loading
|
|
6027
6389
|
}
|
|
6028
|
-
}, [
|
|
6390
|
+
}, [((_a2 = zoneRef.value) == null ? void 0 : _a2.path.length) && Vue.h(GreenZone, {
|
|
6391
|
+
"attrs": {
|
|
6392
|
+
"path": (_b2 = zoneRef.value) == null ? void 0 : _b2.path
|
|
6393
|
+
}
|
|
6394
|
+
}), !geoLoading.value && !geoError.value && Vue.h(PassengerCircle, {
|
|
6029
6395
|
"attrs": {
|
|
6030
6396
|
"position": geoPosition.value,
|
|
6031
6397
|
"angle": orientation.cssRotationVariableName
|
|
@@ -6208,7 +6574,8 @@ const AWalkingLine = defineSetup(function AWalkingLine2(props) {
|
|
|
6208
6574
|
"strokeStyle": "dashed",
|
|
6209
6575
|
"strokeDasharray": [strokeWidth, strokeWidth * 1.5],
|
|
6210
6576
|
"lineJoin": "round",
|
|
6211
|
-
"lineCap": "round"
|
|
6577
|
+
"lineCap": "round",
|
|
6578
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6212
6579
|
}
|
|
6213
6580
|
});
|
|
6214
6581
|
};
|
|
@@ -6244,7 +6611,8 @@ const GWalkingLine = defineSetup(function GWalkingLine2(props) {
|
|
|
6244
6611
|
scale: 1
|
|
6245
6612
|
},
|
|
6246
6613
|
repeat: `${strokeWidth * 2}px`
|
|
6247
|
-
}]
|
|
6614
|
+
}],
|
|
6615
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6248
6616
|
}
|
|
6249
6617
|
});
|
|
6250
6618
|
};
|
|
@@ -7170,6 +7538,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7170
7538
|
const { inChina } = useMapInChina();
|
|
7171
7539
|
const panToGeoPositionByRecomend = (value) => mapContext.panToGeoPositionByRecomend(value);
|
|
7172
7540
|
const setCenterPlaceByUserSpecified = (value) => mapContext.setCenterPlaceByUserSpecified(value);
|
|
7541
|
+
const setCenterPlaceByUserSpecifiedInZone = (value) => mapContext.setCenterPlaceByUserSpecifiedInZone(value);
|
|
7173
7542
|
const mapContext = {
|
|
7174
7543
|
panToGeoPositionByRecomend: () => {
|
|
7175
7544
|
throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
|
|
@@ -7177,6 +7546,9 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7177
7546
|
setCenterPlaceByUserSpecified: () => {
|
|
7178
7547
|
throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
|
|
7179
7548
|
},
|
|
7549
|
+
setCenterPlaceByUserSpecifiedInZone: () => {
|
|
7550
|
+
throw new Error("MyError: setCenterPlaceByUserSpecifiedInZone used before assigned");
|
|
7551
|
+
},
|
|
7180
7552
|
onChangeCenterPlace: (place) => {
|
|
7181
7553
|
Object.assign(centerPlace, { ...place });
|
|
7182
7554
|
},
|
|
@@ -7190,6 +7562,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7190
7562
|
placeCandidates,
|
|
7191
7563
|
panToGeoPositionByRecomend,
|
|
7192
7564
|
setCenterPlaceByUserSpecified,
|
|
7565
|
+
setCenterPlaceByUserSpecifiedInZone,
|
|
7193
7566
|
apiMapDistance,
|
|
7194
7567
|
apiMapInChina: inChina
|
|
7195
7568
|
};
|
|
@@ -7203,6 +7576,7 @@ const useBusinessTaxiServiceMap = () => {
|
|
|
7203
7576
|
});
|
|
7204
7577
|
return { setMap, registerFitVeiw, setFitView };
|
|
7205
7578
|
};
|
|
7579
|
+
logVersion();
|
|
7206
7580
|
exports.AbsoluteAddressBox = AbsoluteAddressBox;
|
|
7207
7581
|
exports.AddressBox = AddressBox;
|
|
7208
7582
|
exports.BusinessQuotingMap = BusinessQuotingMap;
|