@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.js
CHANGED
|
@@ -6,6 +6,114 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
|
|
8
8
|
const style = "";
|
|
9
|
+
const name = "@heycar/heycars-map";
|
|
10
|
+
const version = "0.7.10";
|
|
11
|
+
const type = "module";
|
|
12
|
+
const scripts = {
|
|
13
|
+
dev: "vite -c vite.config.dev.ts",
|
|
14
|
+
"dev:lib": 'concurrently "vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false" "tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch"',
|
|
15
|
+
build: "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
|
|
16
|
+
lint: "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
|
|
17
|
+
};
|
|
18
|
+
const types = "./dist/index.d.ts";
|
|
19
|
+
const module = "./dist/index.js";
|
|
20
|
+
const main = "./dist/index.cjs";
|
|
21
|
+
const exports = {
|
|
22
|
+
".": {
|
|
23
|
+
types: "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
require: "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./dist/style.css": {
|
|
28
|
+
"import": "./dist/style.css",
|
|
29
|
+
require: "./dist/style.css"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const dependencies = {
|
|
33
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
34
|
+
"@amap/amap-jsapi-types": "^0.0.13",
|
|
35
|
+
"@googlemaps/js-api-loader": "^1.15.1",
|
|
36
|
+
"@googlemaps/typescript-guards": "^2.0.3",
|
|
37
|
+
"@use-gesture/vanilla": "^10.2.26",
|
|
38
|
+
"fast-equals": "^3.0.3",
|
|
39
|
+
"lodash-es": "^4.17.21",
|
|
40
|
+
"vue-demi": "^0.13.11"
|
|
41
|
+
};
|
|
42
|
+
const peerDependencies = {
|
|
43
|
+
"@vue/composition-api": "^1.0.0-rc.1",
|
|
44
|
+
vue: "^2.7.0 || >=3.0.0"
|
|
45
|
+
};
|
|
46
|
+
const peerDependenciesMeta = {
|
|
47
|
+
"@vue/composition-api": {
|
|
48
|
+
optional: true
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const devDependencies = {
|
|
52
|
+
"@types/google.maps": "^3.52.0",
|
|
53
|
+
"@types/lodash-es": "^4.17.6",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
55
|
+
"@typescript-eslint/parser": "^5.52.0",
|
|
56
|
+
"@vanilla-extract/css": "^1.9.5",
|
|
57
|
+
"@vanilla-extract/esbuild-plugin": "^2.2.1",
|
|
58
|
+
"@vanilla-extract/recipes": "^0.3.0",
|
|
59
|
+
"@vanilla-extract/vite-plugin": "^3.8.0",
|
|
60
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
61
|
+
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
|
62
|
+
"@vitejs/plugin-vue2": "^1.1.2",
|
|
63
|
+
"@vitejs/plugin-vue2-jsx": "^1.0.2",
|
|
64
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
65
|
+
concurrently: "^7.6.0",
|
|
66
|
+
eslint: "^8.34.0",
|
|
67
|
+
"eslint-config-prettier": "^8.6.0",
|
|
68
|
+
"eslint-plugin-import": "^2.27.5",
|
|
69
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
70
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
71
|
+
prettier: "^2.8.4",
|
|
72
|
+
typescript: "^4.9.3",
|
|
73
|
+
"unplugin-vue-jsx": "^0.1.2",
|
|
74
|
+
vite: "^4.1.0",
|
|
75
|
+
"vite-plugin-checker": "^0.5.6",
|
|
76
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
77
|
+
vue: "2.7.14",
|
|
78
|
+
"vue-tsc": "^1.0.24"
|
|
79
|
+
};
|
|
80
|
+
const publishConfig = {
|
|
81
|
+
registry: "https://registry.npmjs.com"
|
|
82
|
+
};
|
|
83
|
+
const packageManager = "pnpm@7.18.1";
|
|
84
|
+
const engines = {
|
|
85
|
+
node: ">=16.0.0"
|
|
86
|
+
};
|
|
87
|
+
const pkg = {
|
|
88
|
+
name,
|
|
89
|
+
version,
|
|
90
|
+
type,
|
|
91
|
+
scripts,
|
|
92
|
+
types,
|
|
93
|
+
module,
|
|
94
|
+
main,
|
|
95
|
+
exports,
|
|
96
|
+
dependencies,
|
|
97
|
+
peerDependencies,
|
|
98
|
+
peerDependenciesMeta,
|
|
99
|
+
devDependencies,
|
|
100
|
+
publishConfig,
|
|
101
|
+
packageManager,
|
|
102
|
+
engines
|
|
103
|
+
};
|
|
104
|
+
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
105
|
+
const isEnableLog = (name2) => {
|
|
106
|
+
const searchParam = new URLSearchParams(location.search);
|
|
107
|
+
return searchParam.has(`log-${name2}`);
|
|
108
|
+
};
|
|
109
|
+
window.availableLogKeys = availableLogKeys;
|
|
110
|
+
const spaceLog = (logKey, ...args) => {
|
|
111
|
+
availableLogKeys.add(logKey);
|
|
112
|
+
if (!isEnableLog(logKey))
|
|
113
|
+
return;
|
|
114
|
+
console.log(logKey, ...args);
|
|
115
|
+
};
|
|
116
|
+
const logVersion = () => console.log(`package name: ${pkg.name} version: ${pkg.version}`);
|
|
9
117
|
Vue.util.warn;
|
|
10
118
|
const imgDotLoading$1 = "data:image/gif;base64,R0lGODlhVAASAIABAP///////yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LjE2NDc1MywgMjAyMS8wMi8xNS0xMTo1MjoxMyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwd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VjDSdK2Ni9h6Vet0zIx4KWLdlFPdlQii4w3YDl3i4tljDpzJVGGc1KYQVpZQ5F/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==";
|
|
11
119
|
const imgAddressLocator = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSItMzkuNzE5JSIgeTE9IjUwJSIgeDI9IjEyNi4wOTMlIiB5Mj0iNTAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjNzlBRkZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzVDOERGRiIgb2Zmc2V0PSIzMi4zNDIlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzUwN0ZGRiIgb2Zmc2V0PSI3NC44NTMlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzQ0NzFGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNSAyNGgzdjE0LjVhMS41IDEuNSAwIDAxLTMgMFYyNHoiIGZpbGw9IiM0QzgwRkYiLz48Zz48Y2lyY2xlIGZpbGw9InVybCgjcHJlZml4X19hKSIgY3g9IjEzIiBjeT0iMTMiIHI9IjEzIi8+PGNpcmNsZSBmaWxsPSIjRkZGIiBjeD0iMTMiIGN5PSIxMyIgcj0iNCIvPjwvZz48L2c+PC9zdmc+";
|
|
@@ -95,8 +203,8 @@ function baseTrim(string) {
|
|
|
95
203
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
96
204
|
}
|
|
97
205
|
function isObject(value) {
|
|
98
|
-
var
|
|
99
|
-
return value != null && (
|
|
206
|
+
var type2 = typeof value;
|
|
207
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
100
208
|
}
|
|
101
209
|
var NAN = 0 / 0;
|
|
102
210
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
@@ -504,9 +612,9 @@ function defineSetup(setup) {
|
|
|
504
612
|
originEmit(kebabName, data);
|
|
505
613
|
};
|
|
506
614
|
const proxiedSlots = new Proxy(slots, {
|
|
507
|
-
get(target,
|
|
615
|
+
get(target, name2, receiver) {
|
|
508
616
|
var _a;
|
|
509
|
-
return (_a = Reflect.get(target,
|
|
617
|
+
return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
|
|
510
618
|
}
|
|
511
619
|
});
|
|
512
620
|
return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
|
|
@@ -531,9 +639,9 @@ function defineLagecySetup(setup) {
|
|
|
531
639
|
originEmit(kebabName, data);
|
|
532
640
|
};
|
|
533
641
|
const proxiedSlots = new Proxy(slots, {
|
|
534
|
-
get(target,
|
|
642
|
+
get(target, name2, receiver) {
|
|
535
643
|
var _a;
|
|
536
|
-
return (_a = Reflect.get(target,
|
|
644
|
+
return (_a = Reflect.get(target, name2, receiver)) != null ? _a : Reflect.get(props, name2);
|
|
537
645
|
}
|
|
538
646
|
});
|
|
539
647
|
return setup(props, { ...ctx, slots: proxiedSlots, emit: emitKebab });
|
|
@@ -567,11 +675,11 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
|
|
|
567
675
|
const handleClick = () => emit("click");
|
|
568
676
|
return () => {
|
|
569
677
|
const {
|
|
570
|
-
type,
|
|
678
|
+
type: type2,
|
|
571
679
|
title,
|
|
572
680
|
description
|
|
573
681
|
} = props;
|
|
574
|
-
if (
|
|
682
|
+
if (type2 === "locator")
|
|
575
683
|
return h("div", {
|
|
576
684
|
"class": absoluteAddressBoxLayout
|
|
577
685
|
}, [h("img", {
|
|
@@ -580,7 +688,7 @@ const AbsoluteAddressBox = defineSetup(function AbsoluteAddressBox2(props, {
|
|
|
580
688
|
"src": imgAddressLocator
|
|
581
689
|
}
|
|
582
690
|
})]);
|
|
583
|
-
if (
|
|
691
|
+
if (type2 === "loading")
|
|
584
692
|
return h("div", {
|
|
585
693
|
"class": absoluteAddressBoxLayout
|
|
586
694
|
}, [h("div", {
|
|
@@ -986,13 +1094,13 @@ const isGeoPositionEqual = (p1, p2) => {
|
|
|
986
1094
|
return false;
|
|
987
1095
|
return p1.coords.longitude === p2.coords.longitude && p1.coords.latitude === p2.coords.latitude;
|
|
988
1096
|
};
|
|
989
|
-
const amapPlaceName2DisplayName = (
|
|
1097
|
+
const amapPlaceName2DisplayName = (name2, options) => {
|
|
990
1098
|
const { isChina, province, city, district, township } = options;
|
|
991
|
-
if (!
|
|
992
|
-
return
|
|
1099
|
+
if (!name2)
|
|
1100
|
+
return name2;
|
|
993
1101
|
if (!isChina)
|
|
994
|
-
return
|
|
995
|
-
let result =
|
|
1102
|
+
return name2.split(",")[0];
|
|
1103
|
+
let result = name2;
|
|
996
1104
|
for (const item of [province, city, district, township]) {
|
|
997
1105
|
if (result.trim() === item)
|
|
998
1106
|
return item;
|
|
@@ -1068,12 +1176,12 @@ function watchEffectForDeepOption(getOption, callback, watchOptions) {
|
|
|
1068
1176
|
...watchOptions
|
|
1069
1177
|
});
|
|
1070
1178
|
}
|
|
1071
|
-
function name2setterName(
|
|
1072
|
-
return `set${
|
|
1179
|
+
function name2setterName(name2) {
|
|
1180
|
+
return `set${name2.charAt(0).toUpperCase()}${name2.slice(1)}`;
|
|
1073
1181
|
}
|
|
1074
1182
|
function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptions) {
|
|
1075
1183
|
const deps = nameOptions.map(
|
|
1076
|
-
({ name }) => () => props[
|
|
1184
|
+
({ name: name2 }) => () => props[name2]
|
|
1077
1185
|
);
|
|
1078
1186
|
watch(
|
|
1079
1187
|
deps,
|
|
@@ -1082,10 +1190,10 @@ function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptio
|
|
|
1082
1190
|
if (!target)
|
|
1083
1191
|
return;
|
|
1084
1192
|
for (const [idx, value] of values.entries()) {
|
|
1085
|
-
const { name, defaultValue } = nameOptions[idx];
|
|
1193
|
+
const { name: name2, defaultValue } = nameOptions[idx];
|
|
1086
1194
|
const prev = prevValues[idx];
|
|
1087
1195
|
if (!deepCompareEqualsForMaps(value, prev)) {
|
|
1088
|
-
target[name2setterName(
|
|
1196
|
+
target[name2setterName(name2)](value != null ? value : defaultValue);
|
|
1089
1197
|
}
|
|
1090
1198
|
}
|
|
1091
1199
|
},
|
|
@@ -1108,9 +1216,9 @@ function watchPostEffectForAMapEvent(targetRef, props, emit, propertyNames) {
|
|
|
1108
1216
|
if (!target)
|
|
1109
1217
|
return;
|
|
1110
1218
|
const cleanList = [];
|
|
1111
|
-
for (const
|
|
1112
|
-
const emitEventName = property2emitEventName(
|
|
1113
|
-
const eventName = property2mapEventName(
|
|
1219
|
+
for (const name2 of propertyNames) {
|
|
1220
|
+
const emitEventName = property2emitEventName(name2);
|
|
1221
|
+
const eventName = property2mapEventName(name2);
|
|
1114
1222
|
const handler = (e) => emit(emitEventName, e);
|
|
1115
1223
|
target.on(eventName, handler);
|
|
1116
1224
|
cleanList.push(() => target == null ? void 0 : target.off(eventName, handler));
|
|
@@ -1127,9 +1235,9 @@ function watchPostEffectForGMapEvent(targetRef, props, emit, propertyNames) {
|
|
|
1127
1235
|
if (!target)
|
|
1128
1236
|
return;
|
|
1129
1237
|
const cleanList = [];
|
|
1130
|
-
for (const
|
|
1131
|
-
const emitEventName = property2emitEventName(
|
|
1132
|
-
const eventName = property2mapEventName(
|
|
1238
|
+
for (const name2 of propertyNames) {
|
|
1239
|
+
const emitEventName = property2emitEventName(name2);
|
|
1240
|
+
const eventName = property2mapEventName(name2);
|
|
1133
1241
|
const handler = (e) => emit(emitEventName, { ...e, target });
|
|
1134
1242
|
const listener = target.addListener(eventName, handler);
|
|
1135
1243
|
cleanList.push(() => google.maps.event.removeListener(listener));
|
|
@@ -1181,7 +1289,7 @@ const GmapAdvancedMarkerView = defineSetup(function GmapAdvancedMarkerView2(prop
|
|
|
1181
1289
|
const { registerOverlay } = props;
|
|
1182
1290
|
const markerRef = shallowRef();
|
|
1183
1291
|
const mapRef = useGmap();
|
|
1184
|
-
const handleClick = (
|
|
1292
|
+
const handleClick = (name2) => emit(name2, { target: markerRef.value });
|
|
1185
1293
|
onMounted(() => {
|
|
1186
1294
|
const { registerOverlay: registerOverlay2, ...markerViewProps } = props;
|
|
1187
1295
|
markerRef.value = new google.maps.marker.AdvancedMarkerView({ ...markerViewProps });
|
|
@@ -1359,9 +1467,9 @@ var dist = {
|
|
|
1359
1467
|
distExports = v;
|
|
1360
1468
|
}
|
|
1361
1469
|
};
|
|
1362
|
-
(function(
|
|
1470
|
+
(function(module2, exports2) {
|
|
1363
1471
|
(function(m, p) {
|
|
1364
|
-
|
|
1472
|
+
module2.exports = p();
|
|
1365
1473
|
})(commonjsGlobal, function() {
|
|
1366
1474
|
function m(a) {
|
|
1367
1475
|
var b2 = [];
|
|
@@ -1600,7 +1708,7 @@ class Loader {
|
|
|
1600
1708
|
* const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
|
|
1601
1709
|
* ```
|
|
1602
1710
|
*/
|
|
1603
|
-
constructor({ apiKey, authReferrerPolicy, channel, client, id = DEFAULT_ID, language, libraries = [], mapIds, nonce, region, retries = 3, url = "https://maps.googleapis.com/maps/api/js", version }) {
|
|
1711
|
+
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 }) {
|
|
1604
1712
|
this.CALLBACK = "__googleMapsCallback";
|
|
1605
1713
|
this.callbacks = [];
|
|
1606
1714
|
this.done = false;
|
|
@@ -1618,7 +1726,7 @@ class Loader {
|
|
|
1618
1726
|
this.region = region;
|
|
1619
1727
|
this.retries = retries;
|
|
1620
1728
|
this.url = url;
|
|
1621
|
-
this.version =
|
|
1729
|
+
this.version = version2;
|
|
1622
1730
|
if (Loader.instance) {
|
|
1623
1731
|
if (!fastDeepEqual(this.options, Loader.instance.options)) {
|
|
1624
1732
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`);
|
|
@@ -1838,8 +1946,8 @@ const useAmapLoader = (props) => {
|
|
|
1838
1946
|
/* LOADING */
|
|
1839
1947
|
);
|
|
1840
1948
|
const optionsRef = computed(() => {
|
|
1841
|
-
const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version, ...options } = props;
|
|
1842
|
-
return { ...options, key: apiKey, version:
|
|
1949
|
+
const { onChange: onChange2, loading, fallback, apiKey, apiSecret, apiServiceHost, version: version2, ...options } = props;
|
|
1950
|
+
return { ...options, key: apiKey, version: version2 != null ? version2 : "2.0.5.16" };
|
|
1843
1951
|
});
|
|
1844
1952
|
watchPostEffectForDeepOption(
|
|
1845
1953
|
() => optionsRef.value,
|
|
@@ -1987,9 +2095,9 @@ function detectWebGL() {
|
|
|
1987
2095
|
const canvas = document.createElement("canvas");
|
|
1988
2096
|
const names = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
|
|
1989
2097
|
let context2 = null;
|
|
1990
|
-
for (const
|
|
2098
|
+
for (const name2 of names) {
|
|
1991
2099
|
try {
|
|
1992
|
-
context2 = canvas.getContext(
|
|
2100
|
+
context2 = canvas.getContext(name2);
|
|
1993
2101
|
if (context2 && typeof context2.getParameter === "function") {
|
|
1994
2102
|
return "ENABLED";
|
|
1995
2103
|
}
|
|
@@ -2009,6 +2117,8 @@ const ZINDEX_START_END_LOGO_LAYER = 40;
|
|
|
2009
2117
|
const ZINDEX_PLACE_LAYER = 30;
|
|
2010
2118
|
const ZINDEX_CAR_LAYER = 21;
|
|
2011
2119
|
const ZINDEX_PASSENGER_LAYER = 20;
|
|
2120
|
+
const ZINDEX_LINE_LAYER = 12;
|
|
2121
|
+
const ZINDEX_GREEN_ZONE = 10;
|
|
2012
2122
|
const useAmapLngLatToVw = (props) => {
|
|
2013
2123
|
const apiMapLngLatToVw = (point) => {
|
|
2014
2124
|
const amap2 = props.mapRef.value;
|
|
@@ -2321,12 +2431,12 @@ const Gmap = defineSetup(function Gmap2(props, { slots, emit }) {
|
|
|
2321
2431
|
const mapRef = shallowRef();
|
|
2322
2432
|
const { executeMapApi } = useMapEventSource();
|
|
2323
2433
|
const { touchstartCenterRef } = useGmapTouchStartCenter({ mapRef, elementRef });
|
|
2324
|
-
const handleDrag = (
|
|
2325
|
-
emit(
|
|
2434
|
+
const handleDrag = (name2) => {
|
|
2435
|
+
emit(name2, { target: mapRef.value });
|
|
2326
2436
|
};
|
|
2327
|
-
const handleZoom = (
|
|
2437
|
+
const handleZoom = (name2) => {
|
|
2328
2438
|
var _a;
|
|
2329
|
-
emit(
|
|
2439
|
+
emit(name2, { target: mapRef.value });
|
|
2330
2440
|
const center = touchstartCenterRef.value;
|
|
2331
2441
|
if (center)
|
|
2332
2442
|
(_a = mapRef.value) == null ? void 0 : _a.setCenter(vec2lnglat(center));
|
|
@@ -2392,12 +2502,12 @@ const MapProvider = defineLagecySetup(function MapProvider2(props, {
|
|
|
2392
2502
|
readyPromise
|
|
2393
2503
|
} = useMapLoader(props);
|
|
2394
2504
|
const context2 = new Proxy(props, {
|
|
2395
|
-
get(target,
|
|
2396
|
-
if (
|
|
2505
|
+
get(target, name2, receiver) {
|
|
2506
|
+
if (name2 === "status")
|
|
2397
2507
|
return statusRef.value;
|
|
2398
|
-
if (
|
|
2508
|
+
if (name2 === "readyPromise")
|
|
2399
2509
|
return readyPromise;
|
|
2400
|
-
return Reflect.get(target,
|
|
2510
|
+
return Reflect.get(target, name2, receiver);
|
|
2401
2511
|
}
|
|
2402
2512
|
});
|
|
2403
2513
|
provideMapSupplier(context2);
|
|
@@ -2573,7 +2683,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2573
2683
|
"strokeOpacity": 1,
|
|
2574
2684
|
"strokeColor": strokeColorOuter,
|
|
2575
2685
|
"lineJoin": "round",
|
|
2576
|
-
"lineCap": "round"
|
|
2686
|
+
"lineCap": "round",
|
|
2687
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2577
2688
|
}
|
|
2578
2689
|
}), h(AmapPolyline, {
|
|
2579
2690
|
"attrs": {
|
|
@@ -2584,7 +2695,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2584
2695
|
"lineJoin": "round",
|
|
2585
2696
|
"lineCap": "round",
|
|
2586
2697
|
"strokeStyle": "dashed",
|
|
2587
|
-
"strokeDasharray": [dashLength, dashLength * 0.5]
|
|
2698
|
+
"strokeDasharray": [dashLength, dashLength * 0.5],
|
|
2699
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2588
2700
|
}
|
|
2589
2701
|
}), h(AmapPolyline, {
|
|
2590
2702
|
"attrs": {
|
|
@@ -2593,7 +2705,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2593
2705
|
"strokeOpacity": 1,
|
|
2594
2706
|
"strokeColor": strokeColorInner,
|
|
2595
2707
|
"lineJoin": "round",
|
|
2596
|
-
"lineCap": "round"
|
|
2708
|
+
"lineCap": "round",
|
|
2709
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2597
2710
|
}
|
|
2598
2711
|
}), h(AmapPolyline, {
|
|
2599
2712
|
"attrs": {
|
|
@@ -2603,7 +2716,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2603
2716
|
"strokeOpacity": 1,
|
|
2604
2717
|
"strokeColor": "transparent",
|
|
2605
2718
|
"lineJoin": "round",
|
|
2606
|
-
"lineCap": "round"
|
|
2719
|
+
"lineCap": "round",
|
|
2720
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2607
2721
|
}
|
|
2608
2722
|
})]);
|
|
2609
2723
|
};
|
|
@@ -2625,7 +2739,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2625
2739
|
"path": pathRef.value,
|
|
2626
2740
|
"strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
|
|
2627
2741
|
"strokeOpacity": 1,
|
|
2628
|
-
"strokeColor": strokeColorOuter
|
|
2742
|
+
"strokeColor": strokeColorOuter,
|
|
2743
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2629
2744
|
}
|
|
2630
2745
|
}), h(GmapPolyline, {
|
|
2631
2746
|
"attrs": {
|
|
@@ -2640,7 +2755,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2640
2755
|
},
|
|
2641
2756
|
repeat: `${strokeWidth}px`,
|
|
2642
2757
|
offset: `${strokeWidth / 2}px`
|
|
2643
|
-
}]
|
|
2758
|
+
}],
|
|
2759
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2644
2760
|
}
|
|
2645
2761
|
}), h(GmapPolyline, {
|
|
2646
2762
|
"attrs": {
|
|
@@ -2656,7 +2772,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2656
2772
|
scale: 0.7
|
|
2657
2773
|
},
|
|
2658
2774
|
repeat: `${repeat}px`
|
|
2659
|
-
}]
|
|
2775
|
+
}],
|
|
2776
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2660
2777
|
}
|
|
2661
2778
|
})]);
|
|
2662
2779
|
};
|
|
@@ -2870,18 +2987,6 @@ const DrivingRoute = defineSetup(function DrivingRoute2(props, {
|
|
|
2870
2987
|
scopedSlots: slots
|
|
2871
2988
|
});
|
|
2872
2989
|
});
|
|
2873
|
-
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2874
|
-
const isEnableLog = (name) => {
|
|
2875
|
-
const searchParam = new URLSearchParams(location.search);
|
|
2876
|
-
return searchParam.has(`log-${name}`);
|
|
2877
|
-
};
|
|
2878
|
-
window.availableLogKeys = availableLogKeys;
|
|
2879
|
-
const spaceLog = (logKey, ...args) => {
|
|
2880
|
-
availableLogKeys.add(logKey);
|
|
2881
|
-
if (!isEnableLog(logKey))
|
|
2882
|
-
return;
|
|
2883
|
-
console.log(logKey, ...args);
|
|
2884
|
-
};
|
|
2885
2990
|
const GOOGLE_MAP_ZOOM_CHANGE_DEBOUNCE_TIMEOUT$1 = 20;
|
|
2886
2991
|
const useAmapFitView = (props) => {
|
|
2887
2992
|
const { mapRef, autoFitTimeout } = props;
|
|
@@ -5270,23 +5375,23 @@ const useAmapPlace = (props) => {
|
|
|
5270
5375
|
switch (status) {
|
|
5271
5376
|
case "complete": {
|
|
5272
5377
|
const { formattedAddress, addressComponent } = result.regeocode;
|
|
5273
|
-
const
|
|
5274
|
-
const displayName = amapPlaceName2DisplayName(
|
|
5275
|
-
place.name =
|
|
5378
|
+
const name2 = formattedAddress ? formattedAddress : emptyPlaceName;
|
|
5379
|
+
const displayName = amapPlaceName2DisplayName(name2, { isChina, ...addressComponent });
|
|
5380
|
+
place.name = name2;
|
|
5276
5381
|
place.displayName = displayName;
|
|
5277
5382
|
place.lng = lng;
|
|
5278
5383
|
place.lat = lat;
|
|
5279
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5384
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5280
5385
|
return;
|
|
5281
5386
|
}
|
|
5282
5387
|
case "no_data": {
|
|
5283
|
-
const
|
|
5388
|
+
const name2 = emptyPlaceName;
|
|
5284
5389
|
const displayName = emptyPlaceName;
|
|
5285
|
-
place.name =
|
|
5390
|
+
place.name = name2;
|
|
5286
5391
|
place.displayName = displayName;
|
|
5287
5392
|
place.lng = lng;
|
|
5288
5393
|
place.lat = lat;
|
|
5289
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5394
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5290
5395
|
return;
|
|
5291
5396
|
}
|
|
5292
5397
|
case "error":
|
|
@@ -5326,13 +5431,13 @@ const useGmapPlace = (props) => {
|
|
|
5326
5431
|
const geocoder = new google.maps.Geocoder();
|
|
5327
5432
|
const [lng, lat] = pointRef.value;
|
|
5328
5433
|
const { results } = await geocoder.geocode({ language: LANGUAGE, location: { lng, lat } });
|
|
5329
|
-
const
|
|
5330
|
-
const displayName =
|
|
5434
|
+
const name2 = results[0].formatted_address ? results[0].formatted_address : emptyPlaceName;
|
|
5435
|
+
const displayName = name2;
|
|
5331
5436
|
place.lng = lng;
|
|
5332
5437
|
place.lat = lat;
|
|
5333
|
-
place.name =
|
|
5438
|
+
place.name = name2;
|
|
5334
5439
|
place.displayName = displayName;
|
|
5335
|
-
onChange == null ? void 0 : onChange({ lng, lat, name, displayName });
|
|
5440
|
+
onChange == null ? void 0 : onChange({ lng, lat, name: name2, displayName });
|
|
5336
5441
|
}
|
|
5337
5442
|
);
|
|
5338
5443
|
return { place, updatePlace, setPlace };
|
|
@@ -5369,7 +5474,8 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5369
5474
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5370
5475
|
const availableRef = ref(true);
|
|
5371
5476
|
const placeCandidatesRef = ref([]);
|
|
5372
|
-
const
|
|
5477
|
+
const zoneRef = ref();
|
|
5478
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5373
5479
|
const { readyPromise } = useMapSupplier();
|
|
5374
5480
|
const { place, updatePlace, setPlace } = useAmapPlace({
|
|
5375
5481
|
emptyPlaceName,
|
|
@@ -5384,49 +5490,76 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5384
5490
|
);
|
|
5385
5491
|
});
|
|
5386
5492
|
const updatePlaceCandidates = async (place2) => {
|
|
5387
|
-
|
|
5493
|
+
var _a;
|
|
5494
|
+
const {
|
|
5495
|
+
places: inputPlaceCandidates,
|
|
5496
|
+
zone,
|
|
5497
|
+
available
|
|
5498
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5388
5499
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5389
|
-
availableRef.value =
|
|
5500
|
+
availableRef.value = !!available;
|
|
5501
|
+
zoneRef.value = zone;
|
|
5502
|
+
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5503
|
+
};
|
|
5504
|
+
const updateRecommendPlace = (place2) => {
|
|
5505
|
+
setPlace(place2);
|
|
5506
|
+
updateRecommendPlaceKey();
|
|
5507
|
+
};
|
|
5508
|
+
const setPlaceCandidatesAndZone = ({
|
|
5509
|
+
zone,
|
|
5510
|
+
places: inputPlaceCandidates
|
|
5511
|
+
}) => {
|
|
5512
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5513
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5390
5514
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5391
5515
|
};
|
|
5392
5516
|
watch(
|
|
5393
5517
|
() => recomendPlaceKey.value,
|
|
5394
5518
|
async () => {
|
|
5519
|
+
var _a;
|
|
5395
5520
|
await readyPromise;
|
|
5396
|
-
const
|
|
5521
|
+
const {
|
|
5522
|
+
places: inputPlaceCandidates,
|
|
5523
|
+
zone,
|
|
5524
|
+
available
|
|
5525
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5397
5526
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5398
|
-
if (
|
|
5399
|
-
availableRef.value =
|
|
5527
|
+
if (!available || !placeCandidates) {
|
|
5528
|
+
availableRef.value = !!available;
|
|
5529
|
+
zoneRef.value = zone;
|
|
5400
5530
|
placeCandidatesRef.value = [];
|
|
5401
5531
|
Object.assign(recomendPlace, { ...place });
|
|
5402
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5532
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5403
5533
|
return;
|
|
5404
5534
|
}
|
|
5405
5535
|
const { shortestPlace, shortestDistance } = findAmapNearestPlace(place, placeCandidates);
|
|
5406
5536
|
const limit = getLimit(context2);
|
|
5407
|
-
const resultPlace = shortestDistance
|
|
5408
|
-
availableRef.value =
|
|
5537
|
+
const resultPlace = zone || shortestDistance <= limit ? shortestPlace : place;
|
|
5538
|
+
availableRef.value = !!available;
|
|
5539
|
+
zoneRef.value = zone;
|
|
5409
5540
|
placeCandidatesRef.value = placeCandidates;
|
|
5410
5541
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5411
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5542
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5412
5543
|
}
|
|
5413
5544
|
);
|
|
5414
5545
|
return {
|
|
5546
|
+
zoneRef,
|
|
5415
5547
|
recomendPlace,
|
|
5416
5548
|
placeCandidates: placeCandidatesRef,
|
|
5417
5549
|
availableRef,
|
|
5418
5550
|
isElectedRef,
|
|
5419
|
-
|
|
5551
|
+
updateRecommendPlace,
|
|
5420
5552
|
updatePlaceCandidates,
|
|
5421
5553
|
updatePlace,
|
|
5422
|
-
|
|
5554
|
+
setPlaceCandidatesAndZone
|
|
5423
5555
|
};
|
|
5424
5556
|
};
|
|
5425
5557
|
const useGmapRecomendPlace = (props) => {
|
|
5426
5558
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5427
5559
|
const availableRef = ref(true);
|
|
5428
5560
|
const placeCandidatesRef = ref([]);
|
|
5429
|
-
const
|
|
5561
|
+
const zoneRef = ref();
|
|
5562
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5430
5563
|
const { readyPromise } = useMapSupplier();
|
|
5431
5564
|
const { place, updatePlace, setPlace } = useGmapPlace({
|
|
5432
5565
|
emptyPlaceName,
|
|
@@ -5441,40 +5574,64 @@ const useGmapRecomendPlace = (props) => {
|
|
|
5441
5574
|
);
|
|
5442
5575
|
});
|
|
5443
5576
|
const updatePlaceCandidates = async (place2) => {
|
|
5444
|
-
|
|
5445
|
-
|
|
5577
|
+
var _a;
|
|
5578
|
+
const {
|
|
5579
|
+
places: inputPlaceCandidates,
|
|
5580
|
+
zone,
|
|
5581
|
+
available
|
|
5582
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5583
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5584
|
+
availableRef.value = !!available;
|
|
5585
|
+
zoneRef.value = zone;
|
|
5446
5586
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5447
5587
|
};
|
|
5588
|
+
const updateRecommendPlace = (place2) => {
|
|
5589
|
+
setPlace(place2);
|
|
5590
|
+
updateRecommendPlaceKey();
|
|
5591
|
+
};
|
|
5592
|
+
const setPlaceCandidatesAndZone = ({ zone, places }) => {
|
|
5593
|
+
placeCandidatesRef.value = places != null ? places : [];
|
|
5594
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5595
|
+
};
|
|
5448
5596
|
watch(
|
|
5449
5597
|
() => recomendPlaceKey.value,
|
|
5450
5598
|
async () => {
|
|
5599
|
+
var _a;
|
|
5451
5600
|
await readyPromise;
|
|
5452
|
-
const
|
|
5453
|
-
|
|
5454
|
-
|
|
5601
|
+
const {
|
|
5602
|
+
places: inputPlaceCandidates,
|
|
5603
|
+
zone,
|
|
5604
|
+
available
|
|
5605
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5606
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5607
|
+
if (!available || !placeCandidates) {
|
|
5608
|
+
availableRef.value = !!available;
|
|
5609
|
+
zoneRef.value = zone;
|
|
5455
5610
|
placeCandidatesRef.value = [];
|
|
5456
5611
|
Object.assign(recomendPlace, { ...place });
|
|
5457
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5612
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5458
5613
|
return;
|
|
5459
5614
|
}
|
|
5460
5615
|
const { shortestPlace, shortestDistance } = findGmapNearestPlace(place, placeCandidates);
|
|
5461
5616
|
const limit = getLimit(context2);
|
|
5462
5617
|
const resultPlace = shortestDistance > limit ? place : shortestPlace;
|
|
5463
|
-
availableRef.value =
|
|
5618
|
+
availableRef.value = !!available;
|
|
5619
|
+
zoneRef.value = zone;
|
|
5464
5620
|
placeCandidatesRef.value = placeCandidates;
|
|
5465
5621
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5466
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5622
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5467
5623
|
}
|
|
5468
5624
|
);
|
|
5469
5625
|
return {
|
|
5626
|
+
zoneRef,
|
|
5470
5627
|
recomendPlace,
|
|
5471
5628
|
placeCandidates: placeCandidatesRef,
|
|
5472
5629
|
availableRef,
|
|
5473
5630
|
isElectedRef,
|
|
5474
|
-
|
|
5631
|
+
updateRecommendPlace,
|
|
5475
5632
|
updatePlaceCandidates,
|
|
5476
5633
|
updatePlace,
|
|
5477
|
-
|
|
5634
|
+
setPlaceCandidatesAndZone
|
|
5478
5635
|
};
|
|
5479
5636
|
};
|
|
5480
5637
|
const useMapRecomendPlace = (props) => {
|
|
@@ -5528,6 +5685,169 @@ const useMapZoom = (props) => {
|
|
|
5528
5685
|
const { supplier } = useMapSupplier();
|
|
5529
5686
|
return supplier === "gmap" ? useGmapZoom(props) : useAmapZoom(props);
|
|
5530
5687
|
};
|
|
5688
|
+
const AmapPolygon = defineSetup(function AmapPolygon2(props) {
|
|
5689
|
+
const polygonRef = shallowRef();
|
|
5690
|
+
const mapRef = useAmap();
|
|
5691
|
+
onMounted(() => {
|
|
5692
|
+
polygonRef.value = new AMap.Polygon();
|
|
5693
|
+
polygonRef.value.setOptions(props);
|
|
5694
|
+
});
|
|
5695
|
+
onUnmounted(() => {
|
|
5696
|
+
var _a;
|
|
5697
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5698
|
+
});
|
|
5699
|
+
useAmapFixBugPolygonDrag(polygonRef);
|
|
5700
|
+
watchPostEffect(() => {
|
|
5701
|
+
var _a;
|
|
5702
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5703
|
+
if (!map)
|
|
5704
|
+
return;
|
|
5705
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5706
|
+
});
|
|
5707
|
+
watchNoneImmediatePostEffectForMapProperty(polygonRef, props, [
|
|
5708
|
+
{ name: "path", defaultValue: [[0, 0]] },
|
|
5709
|
+
{ name: "extData", defaultValue: void 0 },
|
|
5710
|
+
{ name: "draggable", defaultValue: false }
|
|
5711
|
+
]);
|
|
5712
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5713
|
+
() => {
|
|
5714
|
+
const { path, extData, draggable, ...otherOptions } = props;
|
|
5715
|
+
return otherOptions;
|
|
5716
|
+
},
|
|
5717
|
+
(otherOptions) => {
|
|
5718
|
+
var _a;
|
|
5719
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...otherOptions });
|
|
5720
|
+
}
|
|
5721
|
+
);
|
|
5722
|
+
return () => null;
|
|
5723
|
+
});
|
|
5724
|
+
const useAmapFixBugPolygonDrag = (polygonRef) => {
|
|
5725
|
+
let dragStatus = "UNSTARTED";
|
|
5726
|
+
const onTouchStart = () => {
|
|
5727
|
+
dragStatus = "WAITING_DRAG_START";
|
|
5728
|
+
};
|
|
5729
|
+
const onTouchMove = (_, event) => {
|
|
5730
|
+
if (dragStatus !== "WAITING_DRAG_START")
|
|
5731
|
+
return;
|
|
5732
|
+
const { target, lnglat, pixel, originEvent } = event;
|
|
5733
|
+
dragStatus = "WAITING_DRAG_END";
|
|
5734
|
+
const amap2 = target.getMap();
|
|
5735
|
+
amap2 == null ? void 0 : amap2.emit("dragstart", { type: "dragstart", target: amap2, lnglat, pixel, originEvent });
|
|
5736
|
+
};
|
|
5737
|
+
const onTouchEnd = (_, event) => {
|
|
5738
|
+
if (dragStatus !== "WAITING_DRAG_END")
|
|
5739
|
+
return;
|
|
5740
|
+
const { target, lnglat, pixel, originEvent } = event;
|
|
5741
|
+
dragStatus = "UNSTARTED";
|
|
5742
|
+
const amap2 = target.getMap();
|
|
5743
|
+
amap2 == null ? void 0 : amap2.emit("dragend", { type: "dragend", target: amap2, lnglat, pixel, originEvent });
|
|
5744
|
+
};
|
|
5745
|
+
watchPostEffectForAMapEvent(
|
|
5746
|
+
polygonRef,
|
|
5747
|
+
{},
|
|
5748
|
+
onTouchStart,
|
|
5749
|
+
["onTouchStart"]
|
|
5750
|
+
);
|
|
5751
|
+
watchPostEffectForAMapEvent(
|
|
5752
|
+
polygonRef,
|
|
5753
|
+
{},
|
|
5754
|
+
onTouchMove,
|
|
5755
|
+
["onTouchMove"]
|
|
5756
|
+
);
|
|
5757
|
+
watchPostEffectForAMapEvent(polygonRef, {}, onTouchEnd, [
|
|
5758
|
+
"onTouchEnd"
|
|
5759
|
+
]);
|
|
5760
|
+
};
|
|
5761
|
+
const GmapPolygon = defineSetup(function GmapPolygon2(props) {
|
|
5762
|
+
const polygonRef = shallowRef();
|
|
5763
|
+
const mapRef = useGmap();
|
|
5764
|
+
onMounted(() => {
|
|
5765
|
+
polygonRef.value = new google.maps.Polygon({ ...props });
|
|
5766
|
+
});
|
|
5767
|
+
onUnmounted(() => {
|
|
5768
|
+
var _a;
|
|
5769
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5770
|
+
});
|
|
5771
|
+
watchPostEffect(() => {
|
|
5772
|
+
var _a;
|
|
5773
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5774
|
+
if (!map)
|
|
5775
|
+
return;
|
|
5776
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5777
|
+
});
|
|
5778
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5779
|
+
() => ({ ...props }),
|
|
5780
|
+
(props2) => {
|
|
5781
|
+
var _a;
|
|
5782
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...props2 });
|
|
5783
|
+
}
|
|
5784
|
+
);
|
|
5785
|
+
return () => null;
|
|
5786
|
+
});
|
|
5787
|
+
const GREEN_ZONE_FILL_COLOR = "#C7E5FB";
|
|
5788
|
+
const GREEN_ZONE_FILL_OPACITY = 0.5;
|
|
5789
|
+
const GREEN_ZONE_STROKE_COLOR = "#4BA7FF";
|
|
5790
|
+
const GREEN_ZONE_STROKE_WEIGHT_VW = 1;
|
|
5791
|
+
const AGreenZone = defineSetup(function AGreenZone2(props) {
|
|
5792
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5793
|
+
return () => {
|
|
5794
|
+
return h(AmapPolygon, {
|
|
5795
|
+
"attrs": {
|
|
5796
|
+
"path": props.path,
|
|
5797
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5798
|
+
"strokeStyle": "dashed",
|
|
5799
|
+
"strokeWeight": strokeWeight,
|
|
5800
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5801
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5802
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5803
|
+
}
|
|
5804
|
+
});
|
|
5805
|
+
};
|
|
5806
|
+
});
|
|
5807
|
+
const GGreenZone = defineSetup(function GGreenZone2(props) {
|
|
5808
|
+
const pathRef = computed(() => props.path.map(vec2lnglat));
|
|
5809
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5810
|
+
const lineSymbol = {
|
|
5811
|
+
path: "M 0,-1 0,1",
|
|
5812
|
+
strokeOpacity: 1,
|
|
5813
|
+
scale: 4
|
|
5814
|
+
};
|
|
5815
|
+
return () => {
|
|
5816
|
+
const path = pathRef.value;
|
|
5817
|
+
return h("div", [h(GmapPolygon, {
|
|
5818
|
+
"attrs": {
|
|
5819
|
+
"paths": path,
|
|
5820
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5821
|
+
"strokeOpacity": 0,
|
|
5822
|
+
"strokeWeight": strokeWeight,
|
|
5823
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5824
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5825
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5826
|
+
}
|
|
5827
|
+
}), h(GmapPolyline, {
|
|
5828
|
+
"attrs": {
|
|
5829
|
+
"path": path,
|
|
5830
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5831
|
+
"strokeWeight": GREEN_ZONE_STROKE_WEIGHT_VW,
|
|
5832
|
+
"icons": [{
|
|
5833
|
+
icon: lineSymbol,
|
|
5834
|
+
offset: "0",
|
|
5835
|
+
repeat: "20px"
|
|
5836
|
+
}]
|
|
5837
|
+
}
|
|
5838
|
+
})]);
|
|
5839
|
+
};
|
|
5840
|
+
});
|
|
5841
|
+
const GreenZone = defineSetup(function GreenZone2(props) {
|
|
5842
|
+
const payload = useMapSupplier();
|
|
5843
|
+
return () => {
|
|
5844
|
+
if (!props.path.length)
|
|
5845
|
+
return null;
|
|
5846
|
+
return createElement(payload.supplier === "gmap" ? GGreenZone : AGreenZone, {
|
|
5847
|
+
attrs: props
|
|
5848
|
+
});
|
|
5849
|
+
};
|
|
5850
|
+
});
|
|
5531
5851
|
const imgPassengerCircleArrow = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTI4LjYlIiB5PSItMjguNiUiIHdpZHRoPSIxNTcuMSUiIGhlaWdodD0iMTU3LjElIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2EiPjxmZU9mZnNldCBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0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T0iMTkuNSIgcj0iMTAuNSIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM0NDcxRkYiIGQ9Ik0xNC40ODEgMGw2LjYwMyAxMy4xODFINy44Nzl6Ii8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCkiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSIjNDg3MUYxIiBjeD0iMTAuNSIgY3k9IjE5LjUiIHI9IjkuMyIvPjwvZz48L2c+PC9zdmc+";
|
|
@@ -5542,10 +5862,10 @@ const APassengerCircle = defineSetup(function APassengerCircle2(props) {
|
|
|
5542
5862
|
} = props;
|
|
5543
5863
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
5544
5864
|
const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
5545
|
-
const
|
|
5865
|
+
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
5546
5866
|
return `
|
|
5547
5867
|
<img class="APassengerCircle ${passengerCircle({
|
|
5548
|
-
type
|
|
5868
|
+
type: type2
|
|
5549
5869
|
})}" style="${style2}" src="${src}">
|
|
5550
5870
|
`;
|
|
5551
5871
|
});
|
|
@@ -5569,10 +5889,10 @@ const GPassengerCircle = defineSetup(function GPassengerCircle2(props) {
|
|
|
5569
5889
|
} = props;
|
|
5570
5890
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
5571
5891
|
const style2 = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
5572
|
-
const
|
|
5892
|
+
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
5573
5893
|
return createDom("img", {
|
|
5574
5894
|
class: `GPassengerCircle ${passengerCircle({
|
|
5575
|
-
type
|
|
5895
|
+
type: type2
|
|
5576
5896
|
})}`,
|
|
5577
5897
|
src,
|
|
5578
5898
|
style: style2
|
|
@@ -5688,7 +6008,9 @@ var AnchorType = /* @__PURE__ */ ((AnchorType2) => {
|
|
|
5688
6008
|
const PlaceCircle_css_ts_vanilla = "";
|
|
5689
6009
|
var amapPlaceIconLayout = createRuntimeFn({ defaultClassName: "", variantClassNames: { textAlign: { left: "fhyw83", right: "fhyw84" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5690
6010
|
var gmapPlaceIconLayout = createRuntimeFn({ defaultClassName: "fhyw85", variantClassNames: { textAlign: { left: "fhyw86", right: "fhyw87" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5691
|
-
var label = "
|
|
6011
|
+
var label = "fhyw8c";
|
|
6012
|
+
var labelLayout = "fhyw8b";
|
|
6013
|
+
var labelStroke = "fhyw8d fhyw8c";
|
|
5692
6014
|
var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5693
6015
|
var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5694
6016
|
const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
@@ -5711,7 +6033,10 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
|
5711
6033
|
})} ${amapPlaceIconLayout({
|
|
5712
6034
|
textAlign: textAlignRef.value
|
|
5713
6035
|
})}" src="${imgPlaceCircle}">
|
|
5714
|
-
<div class="${
|
|
6036
|
+
<div class="${labelLayout}">
|
|
6037
|
+
<div class="${labelStroke}">${props.label}</div>
|
|
6038
|
+
<div class="${label}">${props.label}</div>
|
|
6039
|
+
</div>
|
|
5715
6040
|
</div>
|
|
5716
6041
|
`;
|
|
5717
6042
|
});
|
|
@@ -5725,7 +6050,8 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
|
|
|
5725
6050
|
textAlign: textAlignRef.value
|
|
5726
6051
|
})}" src="${imgPlaceCircle}">`;
|
|
5727
6052
|
});
|
|
5728
|
-
const handleClick = () => {
|
|
6053
|
+
const handleClick = (e) => {
|
|
6054
|
+
console.log("AmapMarker click e = ", e);
|
|
5729
6055
|
emit("click", props.position);
|
|
5730
6056
|
};
|
|
5731
6057
|
return () => {
|
|
@@ -5763,7 +6089,10 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
|
|
|
5763
6089
|
<img class="${placeIcon({
|
|
5764
6090
|
hideIcon
|
|
5765
6091
|
})}" src="${imgPlaceCircle}">
|
|
5766
|
-
<div class="${
|
|
6092
|
+
<div class="${labelLayout}">
|
|
6093
|
+
<div class="${labelStroke}">${props.label}</div>
|
|
6094
|
+
<div class="${label}">${props.label}</div>
|
|
6095
|
+
</div>
|
|
5767
6096
|
`);
|
|
5768
6097
|
});
|
|
5769
6098
|
const contentWithoutLabelRef = computed(() => {
|
|
@@ -5877,7 +6206,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5877
6206
|
const centerSource = {
|
|
5878
6207
|
source: "geo"
|
|
5879
6208
|
};
|
|
5880
|
-
const
|
|
6209
|
+
const updateCenterPlaceByPoint = (point) => {
|
|
5881
6210
|
centerSource.source = "api";
|
|
5882
6211
|
updatePlace(point);
|
|
5883
6212
|
};
|
|
@@ -5891,7 +6220,20 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5891
6220
|
emit("changePlace", {
|
|
5892
6221
|
...place
|
|
5893
6222
|
});
|
|
5894
|
-
|
|
6223
|
+
updateRecommendPlace(place);
|
|
6224
|
+
};
|
|
6225
|
+
const setCenterPlaceByUserSpecifiedInZone = ({
|
|
6226
|
+
place,
|
|
6227
|
+
recommends
|
|
6228
|
+
}) => {
|
|
6229
|
+
centerPlace.lng = place.lng;
|
|
6230
|
+
centerPlace.lat = place.lat;
|
|
6231
|
+
centerPlace.name = place.name;
|
|
6232
|
+
centerPlace.displayName = place.displayName;
|
|
6233
|
+
setPlaceCandidatesAndZone(recommends);
|
|
6234
|
+
emit("changePlace", {
|
|
6235
|
+
...place
|
|
6236
|
+
});
|
|
5895
6237
|
};
|
|
5896
6238
|
const panToCenterByPlace = async (place) => {
|
|
5897
6239
|
centerSource.source = "api";
|
|
@@ -5903,6 +6245,15 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5903
6245
|
emit("changePlace", {
|
|
5904
6246
|
...place
|
|
5905
6247
|
});
|
|
6248
|
+
emit("changeRecomandPlace", {
|
|
6249
|
+
place: {
|
|
6250
|
+
...place
|
|
6251
|
+
},
|
|
6252
|
+
inputPlace: {
|
|
6253
|
+
...place
|
|
6254
|
+
},
|
|
6255
|
+
isInZone: !!zoneRef.value
|
|
6256
|
+
});
|
|
5906
6257
|
};
|
|
5907
6258
|
const defaultCenterPlacePromise = new Promise((resolve) => {
|
|
5908
6259
|
getDefaultCenterPlace().then(resolve).catch(() => resolve(void 0));
|
|
@@ -5941,10 +6292,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5941
6292
|
}
|
|
5942
6293
|
});
|
|
5943
6294
|
mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
|
|
6295
|
+
mapContext.setCenterPlaceByUserSpecifiedInZone = setCenterPlaceByUserSpecifiedInZone;
|
|
5944
6296
|
mapContext.panToGeoPositionByRecomend = () => {
|
|
5945
6297
|
if (geoError.value)
|
|
5946
6298
|
return false;
|
|
5947
|
-
|
|
6299
|
+
updateCenterPlaceByPoint(geoPosition.value);
|
|
5948
6300
|
return true;
|
|
5949
6301
|
};
|
|
5950
6302
|
const {
|
|
@@ -5959,9 +6311,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5959
6311
|
});
|
|
5960
6312
|
const {
|
|
5961
6313
|
updatePlace,
|
|
5962
|
-
|
|
5963
|
-
|
|
6314
|
+
updateRecommendPlace,
|
|
6315
|
+
setPlaceCandidatesAndZone,
|
|
5964
6316
|
placeCandidates,
|
|
6317
|
+
zoneRef,
|
|
5965
6318
|
availableRef,
|
|
5966
6319
|
isElectedRef
|
|
5967
6320
|
} = useMapRecomendPlace({
|
|
@@ -5984,18 +6337,26 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5984
6337
|
},
|
|
5985
6338
|
onChangePlace: (place) => {
|
|
5986
6339
|
if (centerSource.source !== "recomend") {
|
|
5987
|
-
|
|
6340
|
+
updateRecommendPlace(place);
|
|
5988
6341
|
}
|
|
5989
6342
|
emit("changePlace", place);
|
|
5990
6343
|
},
|
|
5991
|
-
onChange: async (
|
|
6344
|
+
onChange: async ({
|
|
6345
|
+
place,
|
|
6346
|
+
inputPlace,
|
|
6347
|
+
isInZone
|
|
6348
|
+
}) => {
|
|
5992
6349
|
centerSource.source = "recomend";
|
|
5993
6350
|
if (isPlaceEqual(place, centerPlace))
|
|
5994
6351
|
panTo(place2point(place));
|
|
5995
6352
|
Object.assign(centerPlace, {
|
|
5996
6353
|
...place
|
|
5997
6354
|
});
|
|
5998
|
-
emit("changeRecomandPlace",
|
|
6355
|
+
emit("changeRecomandPlace", {
|
|
6356
|
+
place,
|
|
6357
|
+
inputPlace,
|
|
6358
|
+
isInZone
|
|
6359
|
+
});
|
|
5999
6360
|
}
|
|
6000
6361
|
});
|
|
6001
6362
|
watchEffect(() => {
|
|
@@ -6007,6 +6368,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
6007
6368
|
mapContext.onChangeRecomendPlaces([...placeCandidates.value]);
|
|
6008
6369
|
});
|
|
6009
6370
|
return () => {
|
|
6371
|
+
var _a2, _b2;
|
|
6010
6372
|
const {
|
|
6011
6373
|
geoLoadingTitle: geoLoadingTitle2,
|
|
6012
6374
|
recomendDescription,
|
|
@@ -6023,7 +6385,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
6023
6385
|
"fallback": slots.fallback,
|
|
6024
6386
|
"loading": slots.loading
|
|
6025
6387
|
}
|
|
6026
|
-
}, [
|
|
6388
|
+
}, [((_a2 = zoneRef.value) == null ? void 0 : _a2.path.length) && h(GreenZone, {
|
|
6389
|
+
"attrs": {
|
|
6390
|
+
"path": (_b2 = zoneRef.value) == null ? void 0 : _b2.path
|
|
6391
|
+
}
|
|
6392
|
+
}), !geoLoading.value && !geoError.value && h(PassengerCircle, {
|
|
6027
6393
|
"attrs": {
|
|
6028
6394
|
"position": geoPosition.value,
|
|
6029
6395
|
"angle": orientation.cssRotationVariableName
|
|
@@ -6206,7 +6572,8 @@ const AWalkingLine = defineSetup(function AWalkingLine2(props) {
|
|
|
6206
6572
|
"strokeStyle": "dashed",
|
|
6207
6573
|
"strokeDasharray": [strokeWidth, strokeWidth * 1.5],
|
|
6208
6574
|
"lineJoin": "round",
|
|
6209
|
-
"lineCap": "round"
|
|
6575
|
+
"lineCap": "round",
|
|
6576
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6210
6577
|
}
|
|
6211
6578
|
});
|
|
6212
6579
|
};
|
|
@@ -6242,7 +6609,8 @@ const GWalkingLine = defineSetup(function GWalkingLine2(props) {
|
|
|
6242
6609
|
scale: 1
|
|
6243
6610
|
},
|
|
6244
6611
|
repeat: `${strokeWidth * 2}px`
|
|
6245
|
-
}]
|
|
6612
|
+
}],
|
|
6613
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6246
6614
|
}
|
|
6247
6615
|
});
|
|
6248
6616
|
};
|
|
@@ -7168,6 +7536,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7168
7536
|
const { inChina } = useMapInChina();
|
|
7169
7537
|
const panToGeoPositionByRecomend = (value) => mapContext.panToGeoPositionByRecomend(value);
|
|
7170
7538
|
const setCenterPlaceByUserSpecified = (value) => mapContext.setCenterPlaceByUserSpecified(value);
|
|
7539
|
+
const setCenterPlaceByUserSpecifiedInZone = (value) => mapContext.setCenterPlaceByUserSpecifiedInZone(value);
|
|
7171
7540
|
const mapContext = {
|
|
7172
7541
|
panToGeoPositionByRecomend: () => {
|
|
7173
7542
|
throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
|
|
@@ -7175,6 +7544,9 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7175
7544
|
setCenterPlaceByUserSpecified: () => {
|
|
7176
7545
|
throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
|
|
7177
7546
|
},
|
|
7547
|
+
setCenterPlaceByUserSpecifiedInZone: () => {
|
|
7548
|
+
throw new Error("MyError: setCenterPlaceByUserSpecifiedInZone used before assigned");
|
|
7549
|
+
},
|
|
7178
7550
|
onChangeCenterPlace: (place) => {
|
|
7179
7551
|
Object.assign(centerPlace, { ...place });
|
|
7180
7552
|
},
|
|
@@ -7188,6 +7560,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7188
7560
|
placeCandidates,
|
|
7189
7561
|
panToGeoPositionByRecomend,
|
|
7190
7562
|
setCenterPlaceByUserSpecified,
|
|
7563
|
+
setCenterPlaceByUserSpecifiedInZone,
|
|
7191
7564
|
apiMapDistance,
|
|
7192
7565
|
apiMapInChina: inChina
|
|
7193
7566
|
};
|
|
@@ -7201,6 +7574,7 @@ const useBusinessTaxiServiceMap = () => {
|
|
|
7201
7574
|
});
|
|
7202
7575
|
return { setMap, registerFitVeiw, setFitView };
|
|
7203
7576
|
};
|
|
7577
|
+
logVersion();
|
|
7204
7578
|
export {
|
|
7205
7579
|
AbsoluteAddressBox,
|
|
7206
7580
|
AddressBox,
|