@heycar/heycars-map 2.22.0-taiwan8 → 2.23.0-resetRoute
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/App.js +3 -3
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +7 -5
- package/dist/v2/Demo/DemoBusinessReselectPlace.js +1 -1
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +2 -0
- package/dist/v2/Demo/DemoBusinessTaxiService.js +6 -1
- package/dist/v2/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +1 -1
- package/dist/v2/business-components/AddressLocator/AddressLocator.js +1 -1
- package/dist/v2/business-components/AuxiliaryCircle/AuxiliaryCircle.js +1 -1
- package/dist/v2/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.js +1 -1
- package/dist/v2/business-components/AuxiliaryLine/AuxiliaryLine.js +1 -1
- package/dist/v2/business-components/AuxiliaryPassanger/AuxiliaryPassanger.js +1 -1
- package/dist/v2/business-components/AuxiliaryUtils/AuxiliaryUtils.js +1 -1
- package/dist/v2/business-components/BusinessQuotingMap/BusinessQuotingMap.js +1 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +1 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +8 -1
- package/dist/v2/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +17 -6
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +11 -4
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +1 -1
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +4 -3
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +74 -27
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +2 -2
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +1 -1
- package/dist/v2/business-components/DeviationCorrectionDrivingRoute/DeviationCorrectionDrivingRoute.js +1 -1
- package/dist/v2/business-components/DeviceOrientation/DeviceOrientation.js +1 -1
- package/dist/v2/business-components/DrivingLine/DrivingLine.js +1 -1
- package/dist/v2/business-components/DrivingQuadraticBezierCurve/DrivingQuadraticBezierCurve.js +1 -1
- package/dist/v2/business-components/DrivingRoute/DrivingRoute.js +1 -1
- package/dist/v2/business-components/FitView/FitView.js +1 -1
- package/dist/v2/business-components/GraspRoad/GraspRoad.js +1 -1
- package/dist/v2/business-components/GreenZone/GreenZone.js +1 -1
- package/dist/v2/business-components/PassengerCircle/PassengerCircle.js +1 -1
- package/dist/v2/business-components/PickupPoints/PickupPoints.js +1 -1
- package/dist/v2/business-components/PlaceCircle/PlaceCircle.js +1 -1
- package/dist/v2/business-components/StartEndPoint/StartEndPoint.js +1 -1
- package/dist/v2/business-components/TaxiCar/TaxiCar.js +3 -2
- package/dist/v2/business-components/TrafficDrivingLine/TrafficDrivingLine.js +1 -1
- package/dist/v2/business-components/WalkingLine/WalkingLine.js +1 -1
- package/dist/v2/business-components/WalkingRoute/WalkingRoute.js +1 -1
- package/dist/v2/business-components/WaveCircle/WaveCircle.js +1 -1
- package/dist/v2/chunks/BusinessRecomendPlaceMap.00861095.js +1238 -0
- package/dist/v2/chunks/{Loading.70dfc720.js → Loading.6ba24bc5.js} +1 -1
- package/dist/v2/chunks/{debounce.5afe7867.js → debounce.50106081.js} +1 -1
- package/dist/v2/chunks/helper.2beb144c.js +377 -0
- package/dist/{v3/chunks/isSymbol.555c14bf.js → v2/chunks/isSymbol.7719f2e4.js} +2 -0
- package/dist/v2/chunks/{throttle.8bdd8d3b.js → throttle.b986507a.js} +1 -1
- package/dist/v2/components/Amap/Amap.js +1 -1
- package/dist/v2/components/AmapBezierCurve/AmapBezierCurve.js +1 -1
- package/dist/v2/components/AmapCircle/AmapCircle.js +1 -1
- package/dist/v2/components/AmapInfoWindow/AmapInfoWindow.js +1 -1
- package/dist/v2/components/AmapMarker/AmapMarker.d.ts +1 -0
- package/dist/v2/components/AmapMarker/AmapMarker.js +8 -3
- package/dist/v2/components/AmapPolygon/AmapPolygon.js +1 -1
- package/dist/v2/components/AmapPolyline/AmapPolyline.js +1 -1
- package/dist/v2/components/AmapText/AmapText.js +1 -1
- package/dist/v2/components/Gmap/Gmap.js +1 -1
- package/dist/v2/components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js +1 -1
- package/dist/v2/components/GmapCircle/GmapCircle.js +1 -1
- package/dist/v2/components/GmapInfoWindow/GmapInfoWindow.js +1 -1
- package/dist/v2/components/GmapMarker/GmapMarker.js +1 -1
- package/dist/v2/components/GmapPolygon/GmapPolygon.js +1 -1
- package/dist/v2/components/GmapPolyline/GmapPolyline.js +1 -1
- package/dist/v2/components/Loading/Loading.js +2 -2
- package/dist/v2/components/Loading/index.js +1 -1
- package/dist/v2/components/MapProvider/MapProvider.js +3 -3
- package/dist/v2/components/MapZoom/MapZoom.js +1 -1
- package/dist/v2/components/SvgInline/SvgInline.js +1 -1
- package/dist/v2/hooks/useDeviationCorrectionDrivingRoute.js +0 -1
- package/dist/v2/hooks/useDeviceOrientation.js +1 -1
- package/dist/v2/hooks/useMapCoordinatify.d.ts +1 -1
- package/dist/v2/hooks/useMapCoordinatify.js +5 -5
- package/dist/v2/hooks/useMapDrag.js +2 -2
- package/dist/v2/hooks/useMapFitView.js +3 -3
- package/dist/v2/hooks/useMapGCJ02.js +2 -1
- package/dist/v2/hooks/useMapLoader.js +1 -1
- package/dist/v2/hooks/useMapZoom.js +1 -1
- package/dist/v2/hooks/useWaitTimer.js +1 -1
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v2/hooks-business/useBusinessTaxiServiceMap.d.ts +9 -0
- package/dist/v2/index.js +1 -1
- package/dist/v2/types/helper.js +6 -374
- package/dist/v2/types/interface.d.ts +1 -1
- package/dist/v2/utils/helper.d.ts +7 -0
- package/dist/v2/utils/helper.js +17 -0
- package/dist/v2/utils/log.js +1 -1
- package/dist/v2/utils/transform.d.ts +1 -0
- package/dist/v2/utils/transform.js +6 -0
- package/dist/v3/App.js +3 -3
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +7 -5
- package/dist/v3/Demo/DemoBusinessReselectPlace.js +1 -1
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +2 -0
- package/dist/v3/Demo/DemoBusinessTaxiService.js +6 -1
- package/dist/v3/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +1 -1
- package/dist/v3/business-components/AddressLocator/AddressLocator.js +1 -1
- package/dist/v3/business-components/AuxiliaryCircle/AuxiliaryCircle.js +1 -1
- package/dist/v3/business-components/AuxiliaryGraspRoad/AuxiliaryGraspRoad.js +1 -1
- package/dist/v3/business-components/AuxiliaryLine/AuxiliaryLine.js +1 -1
- package/dist/v3/business-components/AuxiliaryPassanger/AuxiliaryPassanger.js +1 -1
- package/dist/v3/business-components/AuxiliaryUtils/AuxiliaryUtils.js +1 -1
- package/dist/v3/business-components/BusinessQuotingMap/BusinessQuotingMap.js +1 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +2 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +1 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.d.ts +8 -1
- package/dist/v3/business-components/BusinessRecomendPlaceMap/useCacheCenterPlace.js +17 -6
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +11 -4
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +1 -1
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +6 -3
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +74 -27
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.d.ts +2 -2
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceSection.js +1 -1
- package/dist/v3/business-components/DeviationCorrectionDrivingRoute/DeviationCorrectionDrivingRoute.js +1 -1
- package/dist/v3/business-components/DeviceOrientation/DeviceOrientation.js +1 -1
- package/dist/v3/business-components/DrivingLine/DrivingLine.js +1 -1
- package/dist/v3/business-components/DrivingQuadraticBezierCurve/DrivingQuadraticBezierCurve.js +1 -1
- package/dist/v3/business-components/DrivingRoute/DrivingRoute.js +1 -1
- package/dist/v3/business-components/FitView/FitView.js +1 -1
- package/dist/v3/business-components/GraspRoad/GraspRoad.js +1 -1
- package/dist/v3/business-components/GreenZone/GreenZone.js +1 -1
- package/dist/v3/business-components/PassengerCircle/PassengerCircle.js +1 -1
- package/dist/v3/business-components/PickupPoints/PickupPoints.js +1 -1
- package/dist/v3/business-components/PlaceCircle/PlaceCircle.js +1 -1
- package/dist/v3/business-components/StartEndPoint/StartEndPoint.js +1 -1
- package/dist/v3/business-components/TaxiCar/TaxiCar.js +3 -2
- package/dist/v3/business-components/TrafficDrivingLine/TrafficDrivingLine.js +1 -1
- package/dist/v3/business-components/WalkingLine/WalkingLine.js +1 -1
- package/dist/v3/business-components/WalkingRoute/WalkingRoute.js +1 -1
- package/dist/v3/business-components/WaveCircle/WaveCircle.js +1 -1
- package/dist/v3/chunks/BusinessRecomendPlaceMap.24247ef6.js +1225 -0
- package/dist/v3/chunks/{Loading.4c949ec9.js → Loading.c974dce8.js} +1 -1
- package/dist/v3/chunks/{debounce.5afe7867.js → debounce.50106081.js} +1 -1
- package/dist/v3/chunks/helper.2beb144c.js +377 -0
- package/dist/{v2/chunks/isSymbol.555c14bf.js → v3/chunks/isSymbol.7719f2e4.js} +2 -0
- package/dist/v3/chunks/{throttle.8bdd8d3b.js → throttle.b986507a.js} +1 -1
- package/dist/v3/components/Amap/Amap.js +1 -1
- package/dist/v3/components/AmapBezierCurve/AmapBezierCurve.js +1 -1
- package/dist/v3/components/AmapCircle/AmapCircle.js +1 -1
- package/dist/v3/components/AmapInfoWindow/AmapInfoWindow.js +1 -1
- package/dist/v3/components/AmapMarker/AmapMarker.d.ts +1 -0
- package/dist/v3/components/AmapMarker/AmapMarker.js +8 -3
- package/dist/v3/components/AmapPolygon/AmapPolygon.js +1 -1
- package/dist/v3/components/AmapPolyline/AmapPolyline.js +1 -1
- package/dist/v3/components/AmapText/AmapText.js +1 -1
- package/dist/v3/components/Gmap/Gmap.js +1 -1
- package/dist/v3/components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js +1 -1
- package/dist/v3/components/GmapCircle/GmapCircle.js +1 -1
- package/dist/v3/components/GmapInfoWindow/GmapInfoWindow.js +1 -1
- package/dist/v3/components/GmapMarker/GmapMarker.js +1 -1
- package/dist/v3/components/GmapPolygon/GmapPolygon.js +1 -1
- package/dist/v3/components/GmapPolyline/GmapPolyline.js +1 -1
- package/dist/v3/components/Loading/Loading.js +2 -2
- package/dist/v3/components/Loading/index.js +1 -1
- package/dist/v3/components/MapProvider/MapProvider.js +3 -3
- package/dist/v3/components/MapZoom/MapZoom.js +1 -1
- package/dist/v3/components/SvgInline/SvgInline.js +1 -1
- package/dist/v3/hooks/useDeviationCorrectionDrivingRoute.js +0 -1
- package/dist/v3/hooks/useDeviceOrientation.js +1 -1
- package/dist/v3/hooks/useMapCoordinatify.d.ts +1 -1
- package/dist/v3/hooks/useMapCoordinatify.js +5 -5
- package/dist/v3/hooks/useMapDrag.js +2 -2
- package/dist/v3/hooks/useMapFitView.js +3 -3
- package/dist/v3/hooks/useMapGCJ02.js +2 -1
- package/dist/v3/hooks/useMapLoader.js +1 -1
- package/dist/v3/hooks/useMapZoom.js +1 -1
- package/dist/v3/hooks/useWaitTimer.js +1 -1
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +1 -1
- package/dist/v3/hooks-business/useBusinessTaxiServiceMap.d.ts +9 -0
- package/dist/v3/index.js +1 -1
- package/dist/v3/types/helper.js +6 -374
- package/dist/v3/types/interface.d.ts +1 -1
- package/dist/v3/utils/helper.d.ts +7 -0
- package/dist/v3/utils/helper.js +17 -0
- package/dist/v3/utils/log.js +1 -1
- package/dist/v3/utils/transform.d.ts +1 -0
- package/dist/v3/utils/transform.js +6 -0
- package/package.json +1 -1
- package/dist/v2/chunks/BusinessRecomendPlaceMap.dd273250.js +0 -697
- package/dist/v3/chunks/BusinessRecomendPlaceMap.b8f0d8bd.js +0 -684
package/dist/v2/App.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { defineComponent, ref } from "vue-demi";
|
|
3
3
|
import { MapProvider } from "./components/MapProvider/MapProvider.js";
|
|
4
|
-
import {
|
|
4
|
+
import { DemoBusinessTaxiService } from "./Demo/DemoBusinessTaxiService.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCCOe8MAeS3EYvSraKsBX6ztVyLxj69z94";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
7
7
|
const amapApiKey = "fcb7b14c930354a248e21f4031dfa179";
|
|
8
8
|
const amapApiSecret = "11ad0e3d585b80d18b1ada5b0d947c4a";
|
|
9
9
|
const App = defineComponent({
|
|
10
10
|
setup() {
|
|
11
|
-
const supplierRef = ref("
|
|
11
|
+
const supplierRef = ref("amap");
|
|
12
12
|
window.supplierRef = supplierRef;
|
|
13
13
|
return () => h(MapProvider, {
|
|
14
14
|
"attrs": {
|
|
@@ -57,7 +57,7 @@ const App = defineComponent({
|
|
|
57
57
|
supplierRef.value = supplierRef.value === "amap" ? "gmap" : "amap";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
}, ["切换地图"]), h(
|
|
60
|
+
}, ["切换地图"]), h(DemoBusinessTaxiService)]);
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.
|
|
2
|
+
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.00861095.js";
|
|
3
3
|
import { useBusinessRecomendPlaceMap } from "../hooks-business/useBusinessRecomendPlaceMap.js";
|
|
4
|
-
import { defineSetup } from "../
|
|
4
|
+
import { a as defineSetup } from "../chunks/helper.2beb144c.js";
|
|
5
5
|
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
6
6
|
const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", function() {
|
|
7
7
|
const getRecomendPlace = async ({
|
|
@@ -53,9 +53,11 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
53
53
|
setCenterPlaceByUserSpecifiedInZone
|
|
54
54
|
} = useBusinessRecomendPlaceMap();
|
|
55
55
|
window.changeUserSpecifiedPlace = () => setCenterPlaceByUserSpecified({
|
|
56
|
-
lat: 22.550443,
|
|
57
|
-
lng: 114.158118,
|
|
58
|
-
|
|
56
|
+
// lat: 22.550443,
|
|
57
|
+
// lng: 114.158118,
|
|
58
|
+
lng: 114.183202,
|
|
59
|
+
lat: 22.314207,
|
|
60
|
+
type: "wgs84",
|
|
59
61
|
name: "user specified place",
|
|
60
62
|
displayName: "user specified place"
|
|
61
63
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { BusinessReselectPlaceMap } from "../business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js";
|
|
3
3
|
import { useBusinessRecomendPlaceMap } from "../hooks-business/useBusinessRecomendPlaceMap.js";
|
|
4
|
-
import { defineSetup } from "../
|
|
4
|
+
import { a as defineSetup } from "../chunks/helper.2beb144c.js";
|
|
5
5
|
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
6
6
|
const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", function() {
|
|
7
7
|
const getRecomendPlace = async ({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type GetDriverPositionChangeProps } from "../hooks-business/useBusinessTaxiServiceMap";
|
|
1
2
|
import { type CoordinatePlace, type CoordinateTrackPoint, type DriverStatus, type GetDriverRouteOrTrackOutput } from "../types/interface";
|
|
2
3
|
export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent<Readonly<{}>, {
|
|
3
4
|
mapContext: import("../hooks-business/useBusinessTaxiServiceMap").BusinessTaxiServiceContext;
|
|
@@ -12,4 +13,5 @@ export declare const DemoBusinessTaxiService: import("vue-demi").DefineComponent
|
|
|
12
13
|
renderStartServiceSubTitle(): string;
|
|
13
14
|
renderStartSubTitle(): string;
|
|
14
15
|
getDriverRouteOrTrack(): Promise<GetDriverRouteOrTrackOutput>;
|
|
16
|
+
getDriverPositionChange(e?: GetDriverPositionChangeProps): void;
|
|
15
17
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<Readonly<{}>>>, {}>;
|
|
@@ -102,6 +102,9 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
102
102
|
return Promise.resolve({
|
|
103
103
|
routes: mockDriverRoute
|
|
104
104
|
});
|
|
105
|
+
},
|
|
106
|
+
getDriverPositionChange(e) {
|
|
107
|
+
console.log("777-getDriverPosition", e);
|
|
105
108
|
}
|
|
106
109
|
},
|
|
107
110
|
render() {
|
|
@@ -114,7 +117,8 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
114
117
|
status,
|
|
115
118
|
relayTo,
|
|
116
119
|
renderStartServiceSubTitle,
|
|
117
|
-
renderStartSubTitle
|
|
120
|
+
renderStartSubTitle,
|
|
121
|
+
getDriverPositionChange
|
|
118
122
|
} = this;
|
|
119
123
|
const isReady = isCoordinatePoint(from) && isCoordinatePoint(to);
|
|
120
124
|
if (!isReady)
|
|
@@ -147,6 +151,7 @@ const DemoBusinessTaxiService = defineComponent({
|
|
|
147
151
|
duration
|
|
148
152
|
}) => `距离终点*${distance / 1e3}*公里, 预计*${duration}*分钟`,
|
|
149
153
|
"getDriverPositionTrack": getDriverPositionTrack,
|
|
154
|
+
"getDriverPositionChange": getDriverPositionChange,
|
|
150
155
|
"getDriverRouteOrTrack": getDriverRouteOrTrack,
|
|
151
156
|
"interval": 5e3,
|
|
152
157
|
"mapContext": mapContext
|
|
@@ -6,7 +6,7 @@ import { i as imgAddressLocator } from "../../chunks/address-locator.4acf83cd.js
|
|
|
6
6
|
import { i as imgArrowRight } from "../../chunks/arrow-right.2c34874e.js";
|
|
7
7
|
import { SvgInlineWebComponentTag } from "../../components/SvgInline/SvgInline.web-component.js";
|
|
8
8
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
9
|
-
import { defineSetup } from "../../
|
|
9
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
10
10
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
11
11
|
const imgBubbleRightArc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAxOCAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwaDIuMTMxYTEwIDEwIDAgMDE5LjY5NiA3LjU1MkwxOCAzMkguMDQyTDAgMHoiIGZpbGw9InZhcigtLUhFWUNBUl9NQVBfQ1NTX1ZBUl9BYnNvbHV0ZUFkZHJlc3NCb3hfYm94SGVhZGVyX2JhY2tncm91bmQsICMyNTNFN0EpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=";
|
|
12
12
|
const imgGuideArrow = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHdpZHRoPSIyIiBoZWlnaHQ9IjYiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyIDYiPgogIDxwYXRoIGQ9Ik0uNTE2IDEuMTAzQS4zLjMgMCAwMDAgMS4zMXYyLjY2OGEuMy4zIDAgMDAuNTE2LjIwOEwxLjggMi44NTNhLjMuMyAwIDAwMC0uNDE2TC41MTYgMS4xMDN6IiBmaWxsPSIjRkZGIiAvPgo8L3N2Zz4=";
|
|
@@ -7,7 +7,7 @@ import { GmapAdvancedMarkerElement } from "../../components/GmapAdvancedMarkerEl
|
|
|
7
7
|
import { SvgInlineWebComponentTag } from "../../components/SvgInline/SvgInline.web-component.js";
|
|
8
8
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
9
9
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
10
|
-
import { defineSetup } from "../../
|
|
10
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
11
11
|
import { createDom } from "../../utils/dom.js";
|
|
12
12
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
13
13
|
const AddressLocator_css_ts_vanilla = "";
|
|
@@ -3,7 +3,7 @@ import { AmapCircle } from "../../components/AmapCircle/AmapCircle.js";
|
|
|
3
3
|
import { GmapCircle } from "../../components/GmapCircle/GmapCircle.js";
|
|
4
4
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
5
5
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
6
|
-
import { defineSetup } from "../../
|
|
6
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
7
7
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
8
8
|
const AUXILIARY_CIRCLE_DEFAULT_COLOR = "#006600";
|
|
9
9
|
const AAuxiliaryCircle = defineSetup("AAuxiliaryCircle", function(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { CAR_DISTANCE_MIN, MAX_DEVIATION_DISTANCE } from "../../api/contants.js";
|
|
3
3
|
import { useMapGeometry } from "../../hooks/useMapGeometry.js";
|
|
4
|
-
import { defineSetup } from "../../
|
|
4
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
5
5
|
import { place2point, lnglat2point } from "../../utils/transform.js";
|
|
6
6
|
import { AuxiliaryCircle } from "../AuxiliaryCircle/AuxiliaryCircle.js";
|
|
7
7
|
import { AuxiliaryLine } from "../AuxiliaryLine/AuxiliaryLine.js";
|
|
@@ -9,7 +9,7 @@ import { GmapMarker } from "../../components/GmapMarker/GmapMarker.js";
|
|
|
9
9
|
import { GmapPolyline } from "../../components/GmapPolyline/GmapPolyline.js";
|
|
10
10
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
11
11
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
12
|
-
import { defineSetup } from "../../
|
|
12
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
13
13
|
import { vec2lnglat } from "../../utils/transform.js";
|
|
14
14
|
const imgMarkerRed = "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMGE4IDggMCAwMC04IDhjMCAxLjQyMS4zODIgMi43NSAxLjAzMSAzLjkwNi4xMDguMTkyLjIyMS4zODEuMzQ0LjU2M0wxMiAyNGw2LjYyNS0xMS41MzFjLjEwMi0uMTUxLjE5LS4zMTEuMjgxLS40NjlsLjA2My0uMDk0QTcuOTU0IDcuOTU0IDAgMDAyMCA4YTggOCAwIDAwLTgtOHptMCA0YTQgNCAwIDExMCA4IDQgNCAwIDAxMC04eiIgZmlsbD0iI2U3NGMzYyIvPjxwYXRoIGQ9Ik0xMiAzYTUgNSAwIDEwMCAxMCA1IDUgMCAwMDAtMTB6bTAgMmEzIDMgMCAxMTAgNiAzIDMgMCAwMTAtNnoiIGZpbGw9IiNjMDM5MmIiLz48L3N2Zz4=";
|
|
15
15
|
const AAuxiliaryLine = defineSetup("AAuxiliaryLine", function(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { ref } from "vue-demi";
|
|
3
3
|
import { MAX_DEVIATION_DISTANCE_WALKING } from "../../api/contants.js";
|
|
4
|
-
import { defineSetup } from "../../
|
|
4
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
5
5
|
import { watchEffectForDeepOption } from "../../utils/compare.js";
|
|
6
6
|
import { AuxiliaryCircle } from "../AuxiliaryCircle/AuxiliaryCircle.js";
|
|
7
7
|
import { AuxiliaryLine } from "../AuxiliaryLine/AuxiliaryLine.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMapAuxiliaryUtils } from "../../hooks/useMapAuxiliaryUtils.js";
|
|
2
|
-
import { defineSetup } from "../../
|
|
2
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
3
3
|
const AuxiliaryUtils = defineSetup("AuxiliaryUtils", function(props) {
|
|
4
4
|
const { color = "purple", size = "small", opacity = 0.5 } = props;
|
|
5
5
|
const auxiliaryUtils = useMapAuxiliaryUtils({ color, size, opacity });
|
|
@@ -5,7 +5,7 @@ import { useHeycarMap } from "../../hooks/useHeycarMap.js";
|
|
|
5
5
|
import { useMapCoordinatify } from "../../hooks/useMapCoordinatify.js";
|
|
6
6
|
import { useMapFitView } from "../../hooks/useMapFitView.js";
|
|
7
7
|
import { useMapSupplier, useMapAssertSupplier } from "../../hooks/useMapSupplier.js";
|
|
8
|
-
import { defineSetup, defineLagecySetup } from "../../
|
|
8
|
+
import { a as defineSetup, d as defineLagecySetup } from "../../chunks/helper.2beb144c.js";
|
|
9
9
|
import { generateCreateElementV2PropsOn } from "../../utils/compare.js";
|
|
10
10
|
import { distanceBetweenTwoPoints } from "../../utils/geometryPolygon.js";
|
|
11
11
|
import { place2point, pipeDefer } from "../../utils/transform.js";
|
|
@@ -50,5 +50,5 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
50
50
|
onClickLocatorText?: AbsoluteAddressBoxProps["onClickText"];
|
|
51
51
|
onClickLocatorPhoto?: AbsoluteAddressBoxProps["onClickPhoto"];
|
|
52
52
|
}
|
|
53
|
-
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "
|
|
54
|
-
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "
|
|
53
|
+
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "geoError" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessRecomendPlaceMapProps>;
|
|
54
|
+
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "geoError" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessRecomendPlaceMapProps>;
|
|
@@ -2,7 +2,7 @@ import "vue";
|
|
|
2
2
|
import "vue-demi";
|
|
3
3
|
import "../../api/browser.js";
|
|
4
4
|
import "../../api/memory.js";
|
|
5
|
-
import { B, g, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.
|
|
5
|
+
import { B, g, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.00861095.js";
|
|
6
6
|
import "../../components/MapProvider/MapProvider.js";
|
|
7
7
|
import "../../demi-polyfill/demi-polyfill.js";
|
|
8
8
|
import "../../hooks/useGeoLocation.js";
|
|
@@ -14,7 +14,7 @@ import "../../hooks/useMapGeometry.js";
|
|
|
14
14
|
import "../../hooks/useMapRecomendPlace.js";
|
|
15
15
|
import "../../hooks/useMapSupplier.js";
|
|
16
16
|
import "../../hooks/useMapZoom.js";
|
|
17
|
-
import "../../
|
|
17
|
+
import "../../chunks/helper.2beb144c.js";
|
|
18
18
|
import "../../types/interface.js";
|
|
19
19
|
import "../../utils/ManualAbortError.js";
|
|
20
20
|
import "../../utils/compare.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, g, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.
|
|
1
|
+
import { B, g, D, E, R, c, a, e, b, d, Z } from "../../chunks/BusinessRecomendPlaceMap.00861095.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BusinessRecomendPlaceMap,
|
|
4
4
|
g as BusinessRecomendPlaceMapInner,
|
|
@@ -8,6 +8,13 @@ interface UseDefaultCenterPlaceProps {
|
|
|
8
8
|
export declare const useCacheCenterPlace: (props: UseDefaultCenterPlaceProps) => {
|
|
9
9
|
isFirstLoad: boolean;
|
|
10
10
|
centerPlace: {
|
|
11
|
+
type: import("../../types/interface").CoordinateType;
|
|
12
|
+
lng: number;
|
|
13
|
+
lat: number;
|
|
14
|
+
name: string;
|
|
15
|
+
displayName: string;
|
|
16
|
+
pointSource?: import("../../types/interface").PointSource | undefined;
|
|
17
|
+
} | {
|
|
11
18
|
lng: number;
|
|
12
19
|
lat: number;
|
|
13
20
|
name: string;
|
|
@@ -18,9 +25,9 @@ export declare const useCacheCenterPlace: (props: UseDefaultCenterPlaceProps) =>
|
|
|
18
25
|
defaultCenterPlace: {
|
|
19
26
|
lng: number;
|
|
20
27
|
lat: number;
|
|
28
|
+
type?: import("../../types/interface").CoordinateType | undefined;
|
|
21
29
|
name: string;
|
|
22
30
|
displayName: string;
|
|
23
|
-
pointSource?: import("../../types/interface").PointSource | undefined;
|
|
24
31
|
};
|
|
25
32
|
};
|
|
26
33
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { reactive } from "vue-demi";
|
|
2
2
|
import { apiGetCenterPlaceFromCache } from "../../api/browser.js";
|
|
3
3
|
import { apiMemoryShouldSkipByKey } from "../../api/memory.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as throttle } from "../../chunks/throttle.
|
|
4
|
+
import { maybeFunctionToFunction, toAnotherForce, lnglat2point } from "../../utils/transform.js";
|
|
5
|
+
import { useMapGCJ02 } from "../../hooks/useMapGCJ02.js";
|
|
6
|
+
import { t as throttle } from "../../chunks/throttle.b986507a.js";
|
|
7
7
|
const IS_FIRST_LOAD_KEY = "IS_FIRST_LOAD_KEY";
|
|
8
8
|
const THROTTLE_TIME = 3e3;
|
|
9
9
|
const throttledApiMemoryShouldSkipByKey = throttle(apiMemoryShouldSkipByKey, THROTTLE_TIME, {
|
|
@@ -12,25 +12,36 @@ const throttledApiMemoryShouldSkipByKey = throttle(apiMemoryShouldSkipByKey, THR
|
|
|
12
12
|
const useCacheCenterPlace = (props) => {
|
|
13
13
|
var _a;
|
|
14
14
|
const { geoLoadingTitle, emptyTitle, skipWaitGeo } = props;
|
|
15
|
+
const { toCoordinateType } = useMapGCJ02();
|
|
15
16
|
const isAppFirstLoad = !throttledApiMemoryShouldSkipByKey(IS_FIRST_LOAD_KEY);
|
|
16
17
|
const isFirstLoadWithGps = isAppFirstLoad && !skipWaitGeo;
|
|
17
18
|
const getDefaultCenterPlace = maybeFunctionToFunction(props.defaultCenterPlace);
|
|
18
|
-
const { unCoordinatifyPlace } = useMapCoordinatify();
|
|
19
19
|
const inputSkipGeoPlace = typeof skipWaitGeo === "object" ? skipWaitGeo : void 0;
|
|
20
20
|
const inputDefaultCenterPlace = (_a = isAppFirstLoad ? inputSkipGeoPlace : void 0) != null ? _a : getDefaultCenterPlace == null ? void 0 : getDefaultCenterPlace(apiGetCenterPlaceFromCache());
|
|
21
|
+
if (inputDefaultCenterPlace) {
|
|
22
|
+
const { lng, lat, type } = inputDefaultCenterPlace;
|
|
23
|
+
const renderType = toCoordinateType([lng, lat]);
|
|
24
|
+
if (renderType !== type) {
|
|
25
|
+
const point = toAnotherForce([lng, lat], type);
|
|
26
|
+
inputDefaultCenterPlace.lng = point[0];
|
|
27
|
+
inputDefaultCenterPlace.lat = point[1];
|
|
28
|
+
inputDefaultCenterPlace.type = renderType;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
21
31
|
const defaultCenterPlace = {
|
|
22
32
|
lng: 0,
|
|
23
33
|
lat: 0,
|
|
24
34
|
name: emptyTitle,
|
|
25
35
|
displayName: emptyTitle,
|
|
26
|
-
...inputDefaultCenterPlace
|
|
36
|
+
...inputDefaultCenterPlace
|
|
27
37
|
};
|
|
28
38
|
const geoDefaultPosition = defaultCenterPlace ? lnglat2point(defaultCenterPlace) : [0, 0];
|
|
29
39
|
const centerPlace = reactive({
|
|
30
40
|
lng: defaultCenterPlace.lng,
|
|
31
41
|
lat: defaultCenterPlace.lat,
|
|
32
42
|
name: isFirstLoadWithGps ? geoLoadingTitle : defaultCenterPlace.name,
|
|
33
|
-
displayName: isFirstLoadWithGps ? geoLoadingTitle : defaultCenterPlace.displayName
|
|
43
|
+
displayName: isFirstLoadWithGps ? geoLoadingTitle : defaultCenterPlace.displayName,
|
|
44
|
+
type: defaultCenterPlace.type
|
|
34
45
|
});
|
|
35
46
|
return { isFirstLoad: isFirstLoadWithGps, centerPlace, geoDefaultPosition, defaultCenterPlace };
|
|
36
47
|
};
|
|
@@ -3,5 +3,5 @@ import { type BusinessRecomendPlaceMapProps } from "../BusinessRecomendPlaceMap"
|
|
|
3
3
|
export interface BusinessReselectPlaceMapProps extends Pick<BusinessRecomendPlaceMapProps, "geoErrorOnceNotificationKey" | "loading" | "fallback" | "log" | "getAvailable" | "getRecomendPlace" | "unavailableTitle" | "forbiddenTitle" | "emptyTitle" | "queryingTitle" | "recomendDescription" | "disableLocator" | "disableLocatorPhoto" | "mapContext" | "renderPlacePhoto" | "renderPlaceTag" | "onChangeGeoLocation" | "onChangePlace" | "onChangeRecomandPlace" | "onGeoError" | "onGeoErrorOnce" | "onClickLocatorText" | "onClickLocatorPhoto"> {
|
|
4
4
|
defaultPlace?: CoordinatePlace;
|
|
5
5
|
}
|
|
6
|
-
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
7
|
-
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "
|
|
6
|
+
export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "geoError" | "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessReselectPlaceMapProps>;
|
|
7
|
+
export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessReselectPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessReselectPlaceMapProps, Required<BusinessReselectPlaceMapProps>>, "geoError" | "changePlace" | "changeGeoLocation" | "changeRecomandPlace" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", BusinessReselectPlaceMapProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { reactive, watch, watchEffect, onUnmounted } from "vue-demi";
|
|
3
3
|
import { apiMemoryShouldSkipByKey } from "../../api/memory.js";
|
|
4
|
-
import { E as EMPTY_PLACE, m as memoize, R as RECOMMEND_PLACE_DRAG_LIMIT, a as RECOMMEND_PLACE_LARGE_LIMIT, b as RECOMMEND_PLACE_ZONE_ICON_MIN, c as RECOMMEND_PLACE_ICON_ZOOM_MIN, d as RECOMMEND_PLACE_ZONE_TEXT_MIN, e as RECOMMEND_PLACE_TEXT_ZOOM_MIN, D as DEFAULT_ZOOM, Z as ZONE_FITVIEW_PANDING, f as airportSgnBounds } from "../../chunks/BusinessRecomendPlaceMap.
|
|
4
|
+
import { E as EMPTY_PLACE, m as memoize, R as RECOMMEND_PLACE_DRAG_LIMIT, a as RECOMMEND_PLACE_LARGE_LIMIT, b as RECOMMEND_PLACE_ZONE_ICON_MIN, c as RECOMMEND_PLACE_ICON_ZOOM_MIN, d as RECOMMEND_PLACE_ZONE_TEXT_MIN, e as RECOMMEND_PLACE_TEXT_ZOOM_MIN, D as DEFAULT_ZOOM, Z as ZONE_FITVIEW_PANDING, f as airportSgnBounds } from "../../chunks/BusinessRecomendPlaceMap.00861095.js";
|
|
5
5
|
import { HeycarMap } from "../../components/MapProvider/MapProvider.js";
|
|
6
6
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
7
7
|
import { useGeoLocation } from "../../hooks/useGeoLocation.js";
|
|
@@ -13,7 +13,7 @@ import { useMapGeometry } from "../../hooks/useMapGeometry.js";
|
|
|
13
13
|
import { useMapRecomendPlace } from "../../hooks/useMapRecomendPlace.js";
|
|
14
14
|
import { useMapAssertSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
15
15
|
import { useMapZoom } from "../../hooks/useMapZoom.js";
|
|
16
|
-
import { defineSetup, defineLagecySetup } from "../../
|
|
16
|
+
import { a as defineSetup, d as defineLagecySetup } from "../../chunks/helper.2beb144c.js";
|
|
17
17
|
import { CenterPlaceStatus } from "../../types/interface.js";
|
|
18
18
|
import { throwNoneManualAbortError, MANUAL_ABORT_MESSAGE } from "../../utils/ManualAbortError.js";
|
|
19
19
|
import { watchPostEffectOnce, generateCreateElementV2PropsOn } from "../../utils/compare.js";
|
|
@@ -94,6 +94,7 @@ const BusinessReselectPlaceMapInner = defineSetup("BusinessReselectPlaceMapInner
|
|
|
94
94
|
const centerSource = {
|
|
95
95
|
source: "default"
|
|
96
96
|
};
|
|
97
|
+
const dragCenterType = {};
|
|
97
98
|
const updateCenterPlaceByPoint = (point, context) => {
|
|
98
99
|
var _a;
|
|
99
100
|
centerSource.source = (_a = context == null ? void 0 : context.source) != null ? _a : "api";
|
|
@@ -187,9 +188,11 @@ const BusinessReselectPlaceMapInner = defineSetup("BusinessReselectPlaceMapInner
|
|
|
187
188
|
} = useMapDrag({
|
|
188
189
|
mapRef,
|
|
189
190
|
onDragStart: () => abortUpdatePlace(),
|
|
190
|
-
onChange: (point) => {
|
|
191
|
+
onChange: (point, type) => {
|
|
191
192
|
centerSource.source = "drag";
|
|
192
|
-
updatePlace(point);
|
|
193
|
+
updatePlace(point, type);
|
|
194
|
+
if (type)
|
|
195
|
+
dragCenterType.type = type;
|
|
193
196
|
}
|
|
194
197
|
});
|
|
195
198
|
const {
|
|
@@ -245,6 +248,10 @@ const BusinessReselectPlaceMapInner = defineSetup("BusinessReselectPlaceMapInner
|
|
|
245
248
|
});
|
|
246
249
|
if ((type === "Restricted" || type === "Forbidden") && !isSameZone)
|
|
247
250
|
setFitZoom((_a = zoneRef.value) == null ? void 0 : _a.path, place2point(place), noAnimation);
|
|
251
|
+
if (dragCenterType.type) {
|
|
252
|
+
centerPlace.type = dragCenterType.type;
|
|
253
|
+
dragCenterType.type = void 0;
|
|
254
|
+
}
|
|
248
255
|
emit("changeRecomandPlace", coordinatifyValueOfOnChangeRecommendPlace({
|
|
249
256
|
place,
|
|
250
257
|
inputPlace,
|
|
@@ -6,7 +6,7 @@ import { useHeycarMap } from "../../hooks/useHeycarMap.js";
|
|
|
6
6
|
import { useMapCoordinatify } from "../../hooks/useMapCoordinatify.js";
|
|
7
7
|
import { useMapFitView } from "../../hooks/useMapFitView.js";
|
|
8
8
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
9
|
-
import { defineSetup } from "../../
|
|
9
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
10
10
|
import { place2point, pipeDefer } from "../../utils/transform.js";
|
|
11
11
|
import { isCoordinatePoint, toCoordinatePlaceType } from "../../utils/typeChecking.js";
|
|
12
12
|
import { SectionEndService } from "../BusinessTaxiServiceMap/BusinessTaxiServiceSection.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HeycarMapProps } from "../../components/MapProvider";
|
|
2
|
-
import type { BusinessTaxiServiceContext } from "../../hooks-business/useBusinessTaxiServiceMap";
|
|
2
|
+
import type { BusinessTaxiServiceContext, GetDriverPositionChangeProps } from "../../hooks-business/useBusinessTaxiServiceMap";
|
|
3
3
|
import type { CoordinatifyProps } from "../../types/coordinatify";
|
|
4
4
|
import type { CoordinatePlace, CoordinatePoint, CoordinateTrackPoint, DriverStatus, GetDriverRouteOrTrackOutput, Point, TrackPoint } from "../../types/interface";
|
|
5
5
|
export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps, "center" | "zoom" | "mapRef">> & {
|
|
@@ -36,6 +36,7 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
|
|
|
36
36
|
from: CoordinatePoint;
|
|
37
37
|
}) => void;
|
|
38
38
|
onClickStartServicePoint?: () => void;
|
|
39
|
+
getDriverPositionChange?: (e?: GetDriverPositionChangeProps) => void;
|
|
39
40
|
};
|
|
40
|
-
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
41
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "
|
|
41
|
+
export declare const BusinessTaxiServiceMapInner: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartServicePoint" | "clickStartPoint", BusinessTaxiServiceMapProps>;
|
|
42
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("@vue/runtime-core").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "clickStartServicePoint" | "clickStartPoint", BusinessTaxiServiceMapProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { ref, watch, onUnmounted } from "vue-demi";
|
|
2
|
+
import { ref, provide, watch, onUnmounted, nextTick } from "vue-demi";
|
|
3
3
|
import { apiGetAuxiliaryGrapStatus } from "../../api/browser.js";
|
|
4
4
|
import { HeycarMap } from "../../components/MapProvider/MapProvider.js";
|
|
5
5
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
@@ -7,8 +7,9 @@ import { useGeoLocation } from "../../hooks/useGeoLocation.js";
|
|
|
7
7
|
import { useHeycarMap } from "../../hooks/useHeycarMap.js";
|
|
8
8
|
import { useMapCoordinatify } from "../../hooks/useMapCoordinatify.js";
|
|
9
9
|
import { useMapFitView } from "../../hooks/useMapFitView.js";
|
|
10
|
+
import { useMapGeometry } from "../../hooks/useMapGeometry.js";
|
|
10
11
|
import { useMapAssertSupplier, useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
11
|
-
import { defineSetup, defineLagecySetup } from "../../
|
|
12
|
+
import { a as defineSetup, d as defineLagecySetup } from "../../chunks/helper.2beb144c.js";
|
|
12
13
|
import { MANUAL_ABORT_MESSAGE } from "../../utils/ManualAbortError.js";
|
|
13
14
|
import { generateCreateElementV2PropsOn } from "../../utils/compare.js";
|
|
14
15
|
import { computeLineAngle } from "../../utils/geometryPolygon.js";
|
|
@@ -20,6 +21,7 @@ import { AuxiliaryPassanger } from "../AuxiliaryPassanger/AuxiliaryPassanger.js"
|
|
|
20
21
|
import { DeviceOrientation } from "../DeviceOrientation/DeviceOrientation.js";
|
|
21
22
|
import { SectionDispatching, SectionConfirmed, SectionDriverStartRelayService, SectionDriverStartService, SectionBookDispatched, SectionInService, SectionDriverArrived, SectionCanceled, SectionEndService } from "./BusinessTaxiServiceSection.js";
|
|
22
23
|
const STATUS_NEED_CAR_POSITION = ["book-driverStartService", "dispatched", "driverStartService", "driverStartRelayService", "inService", "driverArrived"];
|
|
24
|
+
const STATUS_RESET_CAR_POSITION = ["orderReassigned"];
|
|
23
25
|
const BUSINESS_TAXI_SERVICE_FITVIEW_PANDING = [19, 36, 19, 26];
|
|
24
26
|
const IS_ENABLE_AUXILIARY_GRASP_ROAD = apiGetAuxiliaryGrapStatus();
|
|
25
27
|
const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", function(props, {
|
|
@@ -33,13 +35,19 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
33
35
|
renderStartSerivceTitle,
|
|
34
36
|
renderStartServiceSubTitle,
|
|
35
37
|
renderStartSubTitle,
|
|
36
|
-
renderInServiceTitle
|
|
38
|
+
renderInServiceTitle,
|
|
39
|
+
getDriverPositionChange
|
|
37
40
|
} = props;
|
|
41
|
+
const carMarkerRef = ref(null);
|
|
42
|
+
provide("carMarkerRef", carMarkerRef);
|
|
38
43
|
const {
|
|
39
44
|
mapRef,
|
|
40
45
|
setMap,
|
|
41
46
|
mapElementRef
|
|
42
47
|
} = useHeycarMap();
|
|
48
|
+
const {
|
|
49
|
+
apiMapDistance
|
|
50
|
+
} = useMapGeometry();
|
|
43
51
|
const {
|
|
44
52
|
assertSupplier
|
|
45
53
|
} = useMapAssertSupplier();
|
|
@@ -73,33 +81,72 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
|
|
|
73
81
|
const carTrackPositionsRef = ref([]);
|
|
74
82
|
const carRouteRef = ref();
|
|
75
83
|
watch(() => props.driverStatus, (status, _, onCleanup) => {
|
|
84
|
+
if (STATUS_RESET_CAR_POSITION.includes(status)) {
|
|
85
|
+
carPositionRef.value = void 0;
|
|
86
|
+
carAngleRef.value = void 0;
|
|
87
|
+
carTrackPositionsRef.value = [];
|
|
88
|
+
carRouteRef.value = void 0;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
76
91
|
if (!STATUS_NEED_CAR_POSITION.includes(status))
|
|
77
92
|
return;
|
|
93
|
+
let updateCount = 0;
|
|
78
94
|
const update = async () => {
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
updateCount++;
|
|
96
|
+
const oldPos = carPositionRef.value;
|
|
97
|
+
try {
|
|
98
|
+
let tracks;
|
|
99
|
+
const output = await (getDriverRouteOrTrack == null ? void 0 : getDriverRouteOrTrack());
|
|
100
|
+
if (output && output.routes) {
|
|
101
|
+
const routes = unCoordinatifyExternalRoute(toCoordinateExternalRoute(output.routes));
|
|
102
|
+
assertNotEmptyArray(routes.path, "routes.path");
|
|
103
|
+
const newPos2 = routes.path[0];
|
|
104
|
+
const newAngle = computeLineAngle(routes.path[0], routes.path[1]);
|
|
105
|
+
carPositionRef.value = newPos2;
|
|
106
|
+
carAngleRef.value = newAngle;
|
|
107
|
+
carTrackPositionsRef.value = [];
|
|
108
|
+
carRouteRef.value = routes;
|
|
109
|
+
} else {
|
|
110
|
+
if (output == null ? void 0 : output.tracks)
|
|
111
|
+
tracks = output.tracks;
|
|
112
|
+
if (!tracks)
|
|
113
|
+
tracks = await (getDriverPositionTrack == null ? void 0 : getDriverPositionTrack());
|
|
114
|
+
assertNotEmptyArray(tracks, "tracks");
|
|
115
|
+
const trackPositions = tracks.map((p) => unCoordinatifyTrackPoint(toCoordinateTrackPoint(p)));
|
|
116
|
+
const [{
|
|
117
|
+
angle
|
|
118
|
+
}] = trackPositions;
|
|
119
|
+
const newPos2 = lnglat2point(trackPositions[trackPositions.length - 1]);
|
|
120
|
+
carPositionRef.value = newPos2;
|
|
121
|
+
carAngleRef.value = angle;
|
|
122
|
+
carTrackPositionsRef.value = trackPositions;
|
|
123
|
+
carRouteRef.value = void 0;
|
|
124
|
+
}
|
|
125
|
+
const newPos = carPositionRef.value;
|
|
126
|
+
if (oldPos) {
|
|
127
|
+
await nextTick();
|
|
128
|
+
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
129
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
130
|
+
const marker = carMarkerRef.value;
|
|
131
|
+
if (marker && typeof marker.getPosition === "function") {
|
|
132
|
+
const pos = marker.getPosition();
|
|
133
|
+
const actualPos = [pos.lng, pos.lat];
|
|
134
|
+
const distance = apiMapDistance(actualPos, newPos);
|
|
135
|
+
getDriverPositionChange == null ? void 0 : getDriverPositionChange({
|
|
136
|
+
updateCount,
|
|
137
|
+
oldPos,
|
|
138
|
+
newPos,
|
|
139
|
+
actualPos,
|
|
140
|
+
distance,
|
|
141
|
+
status
|
|
142
|
+
});
|
|
143
|
+
} else {
|
|
144
|
+
getDriverPositionChange == null ? void 0 : getDriverPositionChange();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
} catch (err) {
|
|
148
|
+
console.error("[TaxiMap] 更新司机位置失败:", err);
|
|
89
149
|
}
|
|
90
|
-
if (output == null ? void 0 : output.tracks)
|
|
91
|
-
tracks = output.tracks;
|
|
92
|
-
if (!tracks)
|
|
93
|
-
tracks = await (getDriverPositionTrack == null ? void 0 : getDriverPositionTrack());
|
|
94
|
-
assertNotEmptyArray(tracks, "tracks");
|
|
95
|
-
const trackPositions = tracks.map((p) => unCoordinatifyTrackPoint(toCoordinateTrackPoint(p)));
|
|
96
|
-
const [{
|
|
97
|
-
angle
|
|
98
|
-
}] = trackPositions;
|
|
99
|
-
carPositionRef.value = lnglat2point(trackPositions[trackPositions.length - 1]);
|
|
100
|
-
carAngleRef.value = angle;
|
|
101
|
-
carTrackPositionsRef.value = trackPositions;
|
|
102
|
-
carRouteRef.value = void 0;
|
|
103
150
|
};
|
|
104
151
|
const timer = setInterval(update, interval);
|
|
105
152
|
update();
|
|
@@ -313,7 +360,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
|
|
|
313
360
|
key: `${payload.supplier}${instanceNo}`,
|
|
314
361
|
on: generateCreateElementV2PropsOn(props, emit, ["clickStartPoint", "clickStartServicePoint"])
|
|
315
362
|
});
|
|
316
|
-
}).props(["bookDispatchingTitle", "renderBookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "getDriverRouteOrTrack", "interval", "disablePassenger", "loading", "mapContext", "relayTo", "relayToTitle", "renderInServiceTitle", "renderStartSerivceTitle", "renderStartServiceSubTitle", "renderStartSubTitle", "to"]);
|
|
363
|
+
}).props(["bookDispatchingTitle", "renderBookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "getDriverRouteOrTrack", "interval", "disablePassenger", "loading", "mapContext", "relayTo", "relayToTitle", "renderInServiceTitle", "renderStartSerivceTitle", "renderStartServiceSubTitle", "renderStartSubTitle", "getDriverPositionChange", "to"]);
|
|
317
364
|
export {
|
|
318
365
|
BusinessTaxiServiceMap,
|
|
319
366
|
BusinessTaxiServiceMapInner
|
|
@@ -18,7 +18,7 @@ interface SectionDriverStartRelayServiceProps extends SectionDriverStartServiceP
|
|
|
18
18
|
relayToTitle?: string;
|
|
19
19
|
onClickStartServicePoint?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "
|
|
21
|
+
export declare const SectionDriverStartRelayService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartRelayServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartRelayServiceProps, Required<SectionDriverStartRelayServiceProps>>, "clickStartServicePoint" | "clickStartPoint", SectionDriverStartRelayServiceProps>;
|
|
22
22
|
type SectionDriverStartServiceProps = Required<MROP> & {
|
|
23
23
|
passengerPosition?: Point;
|
|
24
24
|
passengerAngle?: string;
|
|
@@ -39,7 +39,7 @@ type SectionDriverStartServiceProps = Required<MROP> & {
|
|
|
39
39
|
from: CoordinatePoint;
|
|
40
40
|
}) => void;
|
|
41
41
|
};
|
|
42
|
-
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "
|
|
42
|
+
export declare const SectionDriverStartService: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionDriverStartServiceProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionDriverStartServiceProps, Required<SectionDriverStartServiceProps>>, "clickStartServicePoint" | "clickStartPoint", SectionDriverStartServiceProps>;
|
|
43
43
|
type SectionBookDispatchedProps = Required<MROP> & {
|
|
44
44
|
passengerPosition?: Point;
|
|
45
45
|
passengerAngle?: string;
|
|
@@ -4,7 +4,7 @@ import { PASSENGER_DISTANCE_MAX, MAX_DEVIATION_DISTANCE, PASSENGER_DISTANCE_MIN,
|
|
|
4
4
|
import { useMapGCJ02 } from "../../hooks/useMapGCJ02.js";
|
|
5
5
|
import { useMapGeometry } from "../../hooks/useMapGeometry.js";
|
|
6
6
|
import { useMapSupplier } from "../../hooks/useMapSupplier.js";
|
|
7
|
-
import { defineSetup } from "../../
|
|
7
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
8
8
|
import { place2point } from "../../utils/transform.js";
|
|
9
9
|
import { DeviationCorrectionDrivingRoute } from "../DeviationCorrectionDrivingRoute/DeviationCorrectionDrivingRoute.js";
|
|
10
10
|
import { DrivingLine } from "../DrivingLine/DrivingLine.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { useDeviationCorrectionDrivingRoute } from "../../hooks/useDeviationCorrectionDrivingRoute.js";
|
|
3
|
-
import { defineSetup } from "../../
|
|
3
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
4
4
|
const DeviationCorrectionDrivingRoute = defineSetup("DeviationCorrectionDrivingRoute", function(props, {
|
|
5
5
|
slots
|
|
6
6
|
}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { createElement } from "../../demi-polyfill/demi-polyfill.js";
|
|
3
3
|
import { useDeviceOrientation } from "../../hooks/useDeviceOrientation.js";
|
|
4
|
-
import { defineSetup } from "../../
|
|
4
|
+
import { a as defineSetup } from "../../chunks/helper.2beb144c.js";
|
|
5
5
|
const DeviceOrientationInner = defineSetup("DeviceOrientationInner", function(props, {
|
|
6
6
|
slots
|
|
7
7
|
}) {
|