@heycar/heycars-map 0.7.3 → 0.7.4-zone1
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/api/contants.d.ts +2 -0
- package/dist/business-components/GreenZone/GreenZone.d.ts +8 -0
- package/dist/business-components/GreenZone/index.d.ts +1 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +18 -9
- package/dist/hooks-business/useBusinessRecomendPlaceMap.d.ts +7 -1
- package/dist/index.cjs +275 -46
- package/dist/index.js +275 -46
- package/dist/types/interface.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2409,6 +2409,14 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
};
|
|
2411
2411
|
}).props(["center", "fallback", "loading", "mapRef", "zoom", "touchEnable", "touchZoomCenter"]);
|
|
2412
|
+
const BEIJIN_POINT = [116.2317, 39.5427];
|
|
2413
|
+
const ZINDEX_BUBBLE_LAYER = 50;
|
|
2414
|
+
const ZINDEX_START_END_LOGO_LAYER = 40;
|
|
2415
|
+
const ZINDEX_PLACE_LAYER = 30;
|
|
2416
|
+
const ZINDEX_CAR_LAYER = 21;
|
|
2417
|
+
const ZINDEX_PASSENGER_LAYER = 20;
|
|
2418
|
+
const ZINDEX_LINE_LAYER = 12;
|
|
2419
|
+
const ZINDEX_GREEN_ZONE = 10;
|
|
2412
2420
|
const AmapPolyline = defineSetup(function AmapPolyline2(props) {
|
|
2413
2421
|
const polylineRef = Vue.shallowRef();
|
|
2414
2422
|
const mapRef = useAmap();
|
|
@@ -2487,7 +2495,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2487
2495
|
"strokeOpacity": 1,
|
|
2488
2496
|
"strokeColor": strokeColorOuter,
|
|
2489
2497
|
"lineJoin": "round",
|
|
2490
|
-
"lineCap": "round"
|
|
2498
|
+
"lineCap": "round",
|
|
2499
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2491
2500
|
}
|
|
2492
2501
|
}), Vue.h(AmapPolyline, {
|
|
2493
2502
|
"attrs": {
|
|
@@ -2498,7 +2507,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2498
2507
|
"lineJoin": "round",
|
|
2499
2508
|
"lineCap": "round",
|
|
2500
2509
|
"strokeStyle": "dashed",
|
|
2501
|
-
"strokeDasharray": [dashLength, dashLength * 0.5]
|
|
2510
|
+
"strokeDasharray": [dashLength, dashLength * 0.5],
|
|
2511
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2502
2512
|
}
|
|
2503
2513
|
}), Vue.h(AmapPolyline, {
|
|
2504
2514
|
"attrs": {
|
|
@@ -2507,7 +2517,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2507
2517
|
"strokeOpacity": 1,
|
|
2508
2518
|
"strokeColor": strokeColorInner,
|
|
2509
2519
|
"lineJoin": "round",
|
|
2510
|
-
"lineCap": "round"
|
|
2520
|
+
"lineCap": "round",
|
|
2521
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2511
2522
|
}
|
|
2512
2523
|
}), Vue.h(AmapPolyline, {
|
|
2513
2524
|
"attrs": {
|
|
@@ -2517,7 +2528,8 @@ const ADrivingLine = defineSetup(function ADrivingLine2(props) {
|
|
|
2517
2528
|
"strokeOpacity": 1,
|
|
2518
2529
|
"strokeColor": "transparent",
|
|
2519
2530
|
"lineJoin": "round",
|
|
2520
|
-
"lineCap": "round"
|
|
2531
|
+
"lineCap": "round",
|
|
2532
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2521
2533
|
}
|
|
2522
2534
|
})]);
|
|
2523
2535
|
};
|
|
@@ -2539,7 +2551,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2539
2551
|
"path": pathRef.value,
|
|
2540
2552
|
"strokeWeight": strokeWidth + 2 * borderWidth + 2 * outlineWidth,
|
|
2541
2553
|
"strokeOpacity": 1,
|
|
2542
|
-
"strokeColor": strokeColorOuter
|
|
2554
|
+
"strokeColor": strokeColorOuter,
|
|
2555
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2543
2556
|
}
|
|
2544
2557
|
}), Vue.h(GmapPolyline, {
|
|
2545
2558
|
"attrs": {
|
|
@@ -2554,7 +2567,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2554
2567
|
},
|
|
2555
2568
|
repeat: `${strokeWidth}px`,
|
|
2556
2569
|
offset: `${strokeWidth / 2}px`
|
|
2557
|
-
}]
|
|
2570
|
+
}],
|
|
2571
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2558
2572
|
}
|
|
2559
2573
|
}), Vue.h(GmapPolyline, {
|
|
2560
2574
|
"attrs": {
|
|
@@ -2570,7 +2584,8 @@ const GDrivingLine = defineSetup(function GDrivingLine2(props) {
|
|
|
2570
2584
|
scale: 0.7
|
|
2571
2585
|
},
|
|
2572
2586
|
repeat: `${repeat}px`
|
|
2573
|
-
}]
|
|
2587
|
+
}],
|
|
2588
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
2574
2589
|
}
|
|
2575
2590
|
})]);
|
|
2576
2591
|
};
|
|
@@ -3007,12 +3022,6 @@ const KeyedFitView = defineSetup(function KeyedFitView2(props, {
|
|
|
3007
3022
|
return Vue.h("div", [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3008
3023
|
};
|
|
3009
3024
|
});
|
|
3010
|
-
const BEIJIN_POINT = [116.2317, 39.5427];
|
|
3011
|
-
const ZINDEX_BUBBLE_LAYER = 50;
|
|
3012
|
-
const ZINDEX_START_END_LOGO_LAYER = 40;
|
|
3013
|
-
const ZINDEX_PLACE_LAYER = 30;
|
|
3014
|
-
const ZINDEX_CAR_LAYER = 21;
|
|
3015
|
-
const ZINDEX_PASSENGER_LAYER = 20;
|
|
3016
3025
|
const imgEndPoint = "data:image/svg+xml;base64,PHN2Z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5QzExLjc1IDIzLjI3NyA5LjA2IDI3IDExIDI3eiIgc3Ryb2tlPSIjRkZGIiBmaWxsPSJ1cmwoI3ByZWZpeF9fYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgMS4yMTUpIi8+PHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtU2VtaWJvbGQsIFBpbmdGYW5nIFNDIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNTAwIiBmaWxsPSIjRkZGIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEuMjE1KSI+PHRzcGFuIHg9IjUiIHk9IjE1LjYyNCI+6LW3PC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==";
|
|
3018
3027
|
const StartEndPoint_css_ts_vanilla = "";
|
|
@@ -5270,7 +5279,8 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5270
5279
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5271
5280
|
const availableRef = Vue.ref(true);
|
|
5272
5281
|
const placeCandidatesRef = Vue.ref([]);
|
|
5273
|
-
const
|
|
5282
|
+
const zoneRef = Vue.ref();
|
|
5283
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5274
5284
|
const { readyPromise } = useMapSupplier();
|
|
5275
5285
|
const { place, updatePlace, setPlace } = useAmapPlace({
|
|
5276
5286
|
emptyPlaceName,
|
|
@@ -5285,49 +5295,72 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5285
5295
|
);
|
|
5286
5296
|
});
|
|
5287
5297
|
const updatePlaceCandidates = async (place2) => {
|
|
5288
|
-
|
|
5298
|
+
var _a;
|
|
5299
|
+
const {
|
|
5300
|
+
places: inputPlaceCandidates,
|
|
5301
|
+
zone,
|
|
5302
|
+
available
|
|
5303
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5289
5304
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5290
|
-
availableRef.value =
|
|
5305
|
+
availableRef.value = !!available;
|
|
5306
|
+
zoneRef.value = zone;
|
|
5291
5307
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5292
5308
|
};
|
|
5309
|
+
const updateRecommendPlace = (place2) => {
|
|
5310
|
+
setPlace(place2);
|
|
5311
|
+
updateRecommendPlaceKey();
|
|
5312
|
+
};
|
|
5313
|
+
const setPlaceCandidatesAndZone = ({ zone, places }) => {
|
|
5314
|
+
placeCandidatesRef.value = places != null ? places : [];
|
|
5315
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5316
|
+
};
|
|
5293
5317
|
Vue.watch(
|
|
5294
5318
|
() => recomendPlaceKey.value,
|
|
5295
5319
|
async () => {
|
|
5320
|
+
var _a;
|
|
5296
5321
|
await readyPromise;
|
|
5297
|
-
const
|
|
5322
|
+
const {
|
|
5323
|
+
places: inputPlaceCandidates,
|
|
5324
|
+
zone,
|
|
5325
|
+
available
|
|
5326
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5298
5327
|
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5299
|
-
if (
|
|
5300
|
-
availableRef.value =
|
|
5328
|
+
if (!available || !placeCandidates) {
|
|
5329
|
+
availableRef.value = !!available;
|
|
5330
|
+
zoneRef.value = zone;
|
|
5301
5331
|
placeCandidatesRef.value = [];
|
|
5302
5332
|
Object.assign(recomendPlace, { ...place });
|
|
5303
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5333
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5304
5334
|
return;
|
|
5305
5335
|
}
|
|
5306
5336
|
const { shortestPlace, shortestDistance } = findAmapNearestPlace(place, placeCandidates);
|
|
5307
5337
|
const limit = getLimit(context2);
|
|
5308
5338
|
const resultPlace = shortestDistance > limit ? place : shortestPlace;
|
|
5309
|
-
availableRef.value =
|
|
5339
|
+
availableRef.value = !!available;
|
|
5340
|
+
zoneRef.value = zone;
|
|
5310
5341
|
placeCandidatesRef.value = placeCandidates;
|
|
5311
5342
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5312
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5343
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5313
5344
|
}
|
|
5314
5345
|
);
|
|
5315
5346
|
return {
|
|
5347
|
+
zoneRef,
|
|
5316
5348
|
recomendPlace,
|
|
5317
5349
|
placeCandidates: placeCandidatesRef,
|
|
5318
5350
|
availableRef,
|
|
5319
5351
|
isElectedRef,
|
|
5320
|
-
|
|
5352
|
+
updateRecommendPlace,
|
|
5321
5353
|
updatePlaceCandidates,
|
|
5322
5354
|
updatePlace,
|
|
5323
|
-
|
|
5355
|
+
setPlaceCandidatesAndZone
|
|
5324
5356
|
};
|
|
5325
5357
|
};
|
|
5326
5358
|
const useGmapRecomendPlace = (props) => {
|
|
5327
5359
|
const { pointRef, getRecomendPlace, getLimit, context: context2, emptyPlaceName, onChange, onChangePlace } = props;
|
|
5328
5360
|
const availableRef = Vue.ref(true);
|
|
5329
5361
|
const placeCandidatesRef = Vue.ref([]);
|
|
5330
|
-
const
|
|
5362
|
+
const zoneRef = Vue.ref();
|
|
5363
|
+
const { idx: recomendPlaceKey, update: updateRecommendPlaceKey } = useUpdate();
|
|
5331
5364
|
const { readyPromise } = useMapSupplier();
|
|
5332
5365
|
const { place, updatePlace, setPlace } = useGmapPlace({
|
|
5333
5366
|
emptyPlaceName,
|
|
@@ -5342,40 +5375,64 @@ const useGmapRecomendPlace = (props) => {
|
|
|
5342
5375
|
);
|
|
5343
5376
|
});
|
|
5344
5377
|
const updatePlaceCandidates = async (place2) => {
|
|
5345
|
-
|
|
5346
|
-
|
|
5378
|
+
var _a;
|
|
5379
|
+
const {
|
|
5380
|
+
places: inputPlaceCandidates,
|
|
5381
|
+
zone,
|
|
5382
|
+
available
|
|
5383
|
+
} = (_a = await getRecomendPlace({ ...place2 }, context2)) != null ? _a : {};
|
|
5384
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5385
|
+
availableRef.value = !!available;
|
|
5386
|
+
zoneRef.value = zone;
|
|
5347
5387
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5348
5388
|
};
|
|
5389
|
+
const updateRecommendPlace = (place2) => {
|
|
5390
|
+
setPlace(place2);
|
|
5391
|
+
updateRecommendPlaceKey();
|
|
5392
|
+
};
|
|
5393
|
+
const setPlaceCandidatesAndZone = ({ zone, places }) => {
|
|
5394
|
+
placeCandidatesRef.value = places != null ? places : [];
|
|
5395
|
+
zoneRef.value = zone ? zone : void 0;
|
|
5396
|
+
};
|
|
5349
5397
|
Vue.watch(
|
|
5350
5398
|
() => recomendPlaceKey.value,
|
|
5351
5399
|
async () => {
|
|
5400
|
+
var _a;
|
|
5352
5401
|
await readyPromise;
|
|
5353
|
-
const
|
|
5354
|
-
|
|
5355
|
-
|
|
5402
|
+
const {
|
|
5403
|
+
places: inputPlaceCandidates,
|
|
5404
|
+
zone,
|
|
5405
|
+
available
|
|
5406
|
+
} = (_a = await getRecomendPlace({ ...place }, context2)) != null ? _a : {};
|
|
5407
|
+
const placeCandidates = inputPlaceCandidates == null ? void 0 : inputPlaceCandidates.map(toPlaceType);
|
|
5408
|
+
if (!available || !placeCandidates) {
|
|
5409
|
+
availableRef.value = !!available;
|
|
5410
|
+
zoneRef.value = zone;
|
|
5356
5411
|
placeCandidatesRef.value = [];
|
|
5357
5412
|
Object.assign(recomendPlace, { ...place });
|
|
5358
|
-
onChange == null ? void 0 : onChange({ ...place });
|
|
5413
|
+
onChange == null ? void 0 : onChange({ place: { ...place }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5359
5414
|
return;
|
|
5360
5415
|
}
|
|
5361
5416
|
const { shortestPlace, shortestDistance } = findGmapNearestPlace(place, placeCandidates);
|
|
5362
5417
|
const limit = getLimit(context2);
|
|
5363
5418
|
const resultPlace = shortestDistance > limit ? place : shortestPlace;
|
|
5364
|
-
availableRef.value =
|
|
5419
|
+
availableRef.value = !!available;
|
|
5420
|
+
zoneRef.value = zone;
|
|
5365
5421
|
placeCandidatesRef.value = placeCandidates;
|
|
5366
5422
|
Object.assign(recomendPlace, { ...resultPlace });
|
|
5367
|
-
onChange == null ? void 0 : onChange({ ...resultPlace });
|
|
5423
|
+
onChange == null ? void 0 : onChange({ place: { ...resultPlace }, inputPlace: { ...place }, isInZone: !!zone });
|
|
5368
5424
|
}
|
|
5369
5425
|
);
|
|
5370
5426
|
return {
|
|
5427
|
+
zoneRef,
|
|
5371
5428
|
recomendPlace,
|
|
5372
5429
|
placeCandidates: placeCandidatesRef,
|
|
5373
5430
|
availableRef,
|
|
5374
5431
|
isElectedRef,
|
|
5375
|
-
|
|
5432
|
+
updateRecommendPlace,
|
|
5376
5433
|
updatePlaceCandidates,
|
|
5377
5434
|
updatePlace,
|
|
5378
|
-
|
|
5435
|
+
setPlaceCandidatesAndZone
|
|
5379
5436
|
};
|
|
5380
5437
|
};
|
|
5381
5438
|
const useMapRecomendPlace = (props) => {
|
|
@@ -5429,6 +5486,131 @@ const useMapZoom = (props) => {
|
|
|
5429
5486
|
const { supplier } = useMapSupplier();
|
|
5430
5487
|
return supplier === "gmap" ? useGmapZoom(props) : useAmapZoom(props);
|
|
5431
5488
|
};
|
|
5489
|
+
const AmapPolygon = defineSetup(function AmapPolygon2(props) {
|
|
5490
|
+
const polygonRef = Vue.shallowRef();
|
|
5491
|
+
const mapRef = useAmap();
|
|
5492
|
+
Vue.onMounted(() => {
|
|
5493
|
+
polygonRef.value = new AMap.Polygon();
|
|
5494
|
+
polygonRef.value.setOptions(props);
|
|
5495
|
+
});
|
|
5496
|
+
Vue.onUnmounted(() => {
|
|
5497
|
+
var _a;
|
|
5498
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5499
|
+
});
|
|
5500
|
+
Vue.watchPostEffect(() => {
|
|
5501
|
+
var _a;
|
|
5502
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5503
|
+
if (!map)
|
|
5504
|
+
return;
|
|
5505
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5506
|
+
});
|
|
5507
|
+
watchNoneImmediatePostEffectForMapProperty(polygonRef, props, [
|
|
5508
|
+
{ name: "path", defaultValue: [[0, 0]] },
|
|
5509
|
+
{ name: "extData", defaultValue: void 0 },
|
|
5510
|
+
{ name: "draggable", defaultValue: false }
|
|
5511
|
+
]);
|
|
5512
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5513
|
+
() => {
|
|
5514
|
+
const { path, extData, draggable, ...otherOptions } = props;
|
|
5515
|
+
return otherOptions;
|
|
5516
|
+
},
|
|
5517
|
+
(otherOptions) => {
|
|
5518
|
+
var _a;
|
|
5519
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...otherOptions });
|
|
5520
|
+
}
|
|
5521
|
+
);
|
|
5522
|
+
return () => null;
|
|
5523
|
+
});
|
|
5524
|
+
const GmapPolygon = defineSetup(function GmapPolygon2(props) {
|
|
5525
|
+
const polygonRef = Vue.shallowRef();
|
|
5526
|
+
const mapRef = useGmap();
|
|
5527
|
+
Vue.onMounted(() => {
|
|
5528
|
+
polygonRef.value = new google.maps.Polygon({ ...props });
|
|
5529
|
+
});
|
|
5530
|
+
Vue.onUnmounted(() => {
|
|
5531
|
+
var _a;
|
|
5532
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
|
|
5533
|
+
});
|
|
5534
|
+
Vue.watchPostEffect(() => {
|
|
5535
|
+
var _a;
|
|
5536
|
+
const map = mapRef == null ? void 0 : mapRef.value;
|
|
5537
|
+
if (!map)
|
|
5538
|
+
return;
|
|
5539
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
|
|
5540
|
+
});
|
|
5541
|
+
watchNoneImmediatePostEffectForDeepOption(
|
|
5542
|
+
() => ({ ...props }),
|
|
5543
|
+
(props2) => {
|
|
5544
|
+
var _a;
|
|
5545
|
+
(_a = polygonRef.value) == null ? void 0 : _a.setOptions({ ...props2 });
|
|
5546
|
+
}
|
|
5547
|
+
);
|
|
5548
|
+
return () => null;
|
|
5549
|
+
});
|
|
5550
|
+
const GREEN_ZONE_FILL_COLOR = "#C7E5FB";
|
|
5551
|
+
const GREEN_ZONE_FILL_OPACITY = 0.5;
|
|
5552
|
+
const GREEN_ZONE_STROKE_COLOR = "#4BA7FF";
|
|
5553
|
+
const GREEN_ZONE_STROKE_WEIGHT_VW = 1;
|
|
5554
|
+
const AGreenZone = defineSetup(function AGreenZone2(props) {
|
|
5555
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5556
|
+
return () => {
|
|
5557
|
+
return Vue.h(AmapPolygon, {
|
|
5558
|
+
"attrs": {
|
|
5559
|
+
"path": props.path,
|
|
5560
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5561
|
+
"strokeStyle": "dashed",
|
|
5562
|
+
"strokeWeight": strokeWeight,
|
|
5563
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5564
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5565
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5566
|
+
}
|
|
5567
|
+
});
|
|
5568
|
+
};
|
|
5569
|
+
});
|
|
5570
|
+
const GGreenZone = defineSetup(function GGreenZone2(props) {
|
|
5571
|
+
const pathRef = Vue.computed(() => props.path.map(vec2lnglat));
|
|
5572
|
+
const strokeWeight = GREEN_ZONE_STROKE_WEIGHT_VW * globalThis.innerWidth / 100;
|
|
5573
|
+
const lineSymbol = {
|
|
5574
|
+
path: "M 0,-1 0,1",
|
|
5575
|
+
strokeOpacity: 1,
|
|
5576
|
+
scale: 4
|
|
5577
|
+
};
|
|
5578
|
+
return () => {
|
|
5579
|
+
const path = pathRef.value;
|
|
5580
|
+
return Vue.h("div", [Vue.h(GmapPolygon, {
|
|
5581
|
+
"attrs": {
|
|
5582
|
+
"paths": path,
|
|
5583
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5584
|
+
"strokeOpacity": 0,
|
|
5585
|
+
"strokeWeight": strokeWeight,
|
|
5586
|
+
"fillColor": GREEN_ZONE_FILL_COLOR,
|
|
5587
|
+
"fillOpacity": GREEN_ZONE_FILL_OPACITY,
|
|
5588
|
+
"zIndex": ZINDEX_GREEN_ZONE
|
|
5589
|
+
}
|
|
5590
|
+
}), Vue.h(GmapPolyline, {
|
|
5591
|
+
"attrs": {
|
|
5592
|
+
"path": path,
|
|
5593
|
+
"strokeColor": GREEN_ZONE_STROKE_COLOR,
|
|
5594
|
+
"strokeWeight": GREEN_ZONE_STROKE_WEIGHT_VW,
|
|
5595
|
+
"icons": [{
|
|
5596
|
+
icon: lineSymbol,
|
|
5597
|
+
offset: "0",
|
|
5598
|
+
repeat: "20px"
|
|
5599
|
+
}]
|
|
5600
|
+
}
|
|
5601
|
+
})]);
|
|
5602
|
+
};
|
|
5603
|
+
});
|
|
5604
|
+
const GreenZone = defineSetup(function GreenZone2(props) {
|
|
5605
|
+
const payload = useMapSupplier();
|
|
5606
|
+
return () => {
|
|
5607
|
+
if (!props.path.length)
|
|
5608
|
+
return null;
|
|
5609
|
+
return createElement(payload.supplier === "gmap" ? GGreenZone : AGreenZone, {
|
|
5610
|
+
attrs: props
|
|
5611
|
+
});
|
|
5612
|
+
};
|
|
5613
|
+
});
|
|
5432
5614
|
const imgPassengerCircleArrow = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLz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bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjQgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIxMC41IiBjeT0iMTkuNSIgcj0iMTAuNSIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiM0NDcxRkYiIGQ9Ik0xNC40ODEgMGw2LjYwMyAxMy4xODFINy44Nzl6Ii8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCkiPjx1c2UgZmlsbD0iIzAwMCIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYSkiIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2IiLz48Y2lyY2xlIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIyLjQiIHN0cm9rZS1saW5lam9pbj0ic3F1YXJlIiBmaWxsPSIjNDg3MUYxIiBjeD0iMTAuNSIgY3k9IjE5LjUiIHI9IjkuMyIvPjwvZz48L2c+PC9zdmc+";
|
|
@@ -5819,7 +6001,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5819
6001
|
const centerSource = {
|
|
5820
6002
|
source: "geo"
|
|
5821
6003
|
};
|
|
5822
|
-
const
|
|
6004
|
+
const updateCenterPlaceByPoint = (point) => {
|
|
5823
6005
|
centerSource.source = "api";
|
|
5824
6006
|
updatePlace(point);
|
|
5825
6007
|
};
|
|
@@ -5833,15 +6015,40 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5833
6015
|
emit("changePlace", {
|
|
5834
6016
|
...place
|
|
5835
6017
|
});
|
|
5836
|
-
|
|
6018
|
+
updateRecommendPlace(place);
|
|
5837
6019
|
await pipeDefer(setZoom)(READY_ZOOM);
|
|
5838
6020
|
};
|
|
6021
|
+
const setCenterPlaceByUserSpecifiedInZone = ({
|
|
6022
|
+
place,
|
|
6023
|
+
recommends
|
|
6024
|
+
}) => {
|
|
6025
|
+
centerPlace.lng = place.lng;
|
|
6026
|
+
centerPlace.lat = place.lat;
|
|
6027
|
+
centerPlace.name = place.name;
|
|
6028
|
+
centerPlace.displayName = place.displayName;
|
|
6029
|
+
setPlaceCandidatesAndZone(recommends);
|
|
6030
|
+
emit("changePlace", {
|
|
6031
|
+
...place
|
|
6032
|
+
});
|
|
6033
|
+
};
|
|
5839
6034
|
const setCenterByPlace = (place) => {
|
|
5840
6035
|
centerSource.source = "api";
|
|
5841
6036
|
centerPlace.lng = place.lng;
|
|
5842
6037
|
centerPlace.lat = place.lat;
|
|
5843
6038
|
centerPlace.name = place.name;
|
|
5844
6039
|
centerPlace.displayName = place.displayName;
|
|
6040
|
+
emit("changePlace", {
|
|
6041
|
+
...place
|
|
6042
|
+
});
|
|
6043
|
+
emit("changeRecomandPlace", {
|
|
6044
|
+
place: {
|
|
6045
|
+
...place
|
|
6046
|
+
},
|
|
6047
|
+
inputPlace: {
|
|
6048
|
+
...place
|
|
6049
|
+
},
|
|
6050
|
+
isInZone: !!zoneRef.value
|
|
6051
|
+
});
|
|
5845
6052
|
};
|
|
5846
6053
|
const defaultCenterPlacePromise = new Promise((resolve) => {
|
|
5847
6054
|
getDefaultCenterPlace().then(resolve).catch(() => resolve(void 0));
|
|
@@ -5882,10 +6089,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5882
6089
|
}
|
|
5883
6090
|
});
|
|
5884
6091
|
mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
|
|
6092
|
+
mapContext.setCenterPlaceByUserSpecifiedInZone = setCenterPlaceByUserSpecifiedInZone;
|
|
5885
6093
|
mapContext.panToGeoPositionByRecomend = () => {
|
|
5886
6094
|
if (geoError.value)
|
|
5887
6095
|
return false;
|
|
5888
|
-
|
|
6096
|
+
updateCenterPlaceByPoint(geoPosition.value);
|
|
5889
6097
|
return true;
|
|
5890
6098
|
};
|
|
5891
6099
|
const {
|
|
@@ -5900,9 +6108,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5900
6108
|
});
|
|
5901
6109
|
const {
|
|
5902
6110
|
updatePlace,
|
|
5903
|
-
|
|
5904
|
-
|
|
6111
|
+
updateRecommendPlace,
|
|
6112
|
+
setPlaceCandidatesAndZone,
|
|
5905
6113
|
placeCandidates,
|
|
6114
|
+
zoneRef,
|
|
5906
6115
|
availableRef,
|
|
5907
6116
|
isElectedRef
|
|
5908
6117
|
} = useMapRecomendPlace({
|
|
@@ -5925,17 +6134,25 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5925
6134
|
},
|
|
5926
6135
|
onChangePlace: (place) => {
|
|
5927
6136
|
if (centerSource.source !== "recomend") {
|
|
5928
|
-
|
|
6137
|
+
updateRecommendPlace(place);
|
|
5929
6138
|
}
|
|
5930
6139
|
emit("changePlace", place);
|
|
5931
6140
|
},
|
|
5932
|
-
onChange: async (
|
|
6141
|
+
onChange: async ({
|
|
6142
|
+
place,
|
|
6143
|
+
inputPlace,
|
|
6144
|
+
isInZone
|
|
6145
|
+
}) => {
|
|
5933
6146
|
centerSource.source = "recomend";
|
|
5934
6147
|
Object.assign(centerPlace, {
|
|
5935
6148
|
...place
|
|
5936
6149
|
});
|
|
5937
6150
|
panTo(place2point(place));
|
|
5938
|
-
emit("changeRecomandPlace",
|
|
6151
|
+
emit("changeRecomandPlace", {
|
|
6152
|
+
place,
|
|
6153
|
+
inputPlace,
|
|
6154
|
+
isInZone
|
|
6155
|
+
});
|
|
5939
6156
|
if (isFirstWorkflowRecomendLoadingRef.value)
|
|
5940
6157
|
await pipeDefer(setZoom)(READY_ZOOM);
|
|
5941
6158
|
completeFirstWorkflowRecomend();
|
|
@@ -5950,6 +6167,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5950
6167
|
mapContext.onChangeRecomendPlaces([...placeCandidates.value]);
|
|
5951
6168
|
});
|
|
5952
6169
|
return () => {
|
|
6170
|
+
var _a2, _b2;
|
|
5953
6171
|
const {
|
|
5954
6172
|
geoLoadingTitle,
|
|
5955
6173
|
recomendDescription,
|
|
@@ -5966,7 +6184,11 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
5966
6184
|
"fallback": slots.fallback,
|
|
5967
6185
|
"loading": slots.loading
|
|
5968
6186
|
}
|
|
5969
|
-
}, [
|
|
6187
|
+
}, [((_a2 = zoneRef.value) == null ? void 0 : _a2.path.length) && Vue.h(GreenZone, {
|
|
6188
|
+
"attrs": {
|
|
6189
|
+
"path": (_b2 = zoneRef.value) == null ? void 0 : _b2.path
|
|
6190
|
+
}
|
|
6191
|
+
}), !geoLoading.value && !geoError.value && Vue.h(PassengerCircle, {
|
|
5970
6192
|
"attrs": {
|
|
5971
6193
|
"position": geoPosition.value,
|
|
5972
6194
|
"angle": orientation.cssRotationVariableName
|
|
@@ -6149,7 +6371,8 @@ const AWalkingLine = defineSetup(function AWalkingLine2(props) {
|
|
|
6149
6371
|
"strokeStyle": "dashed",
|
|
6150
6372
|
"strokeDasharray": [strokeWidth, strokeWidth * 1.5],
|
|
6151
6373
|
"lineJoin": "round",
|
|
6152
|
-
"lineCap": "round"
|
|
6374
|
+
"lineCap": "round",
|
|
6375
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6153
6376
|
}
|
|
6154
6377
|
});
|
|
6155
6378
|
};
|
|
@@ -6185,7 +6408,8 @@ const GWalkingLine = defineSetup(function GWalkingLine2(props) {
|
|
|
6185
6408
|
scale: 1
|
|
6186
6409
|
},
|
|
6187
6410
|
repeat: `${strokeWidth * 2}px`
|
|
6188
|
-
}]
|
|
6411
|
+
}],
|
|
6412
|
+
"zIndex": ZINDEX_LINE_LAYER
|
|
6189
6413
|
}
|
|
6190
6414
|
});
|
|
6191
6415
|
};
|
|
@@ -7101,6 +7325,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7101
7325
|
const { inChina } = useMapInChina();
|
|
7102
7326
|
const panToGeoPositionByRecomend = (value) => mapContext.panToGeoPositionByRecomend(value);
|
|
7103
7327
|
const setCenterPlaceByUserSpecified = (value) => mapContext.setCenterPlaceByUserSpecified(value);
|
|
7328
|
+
const setCenterPlaceByUserSpecifiedInZone = (value) => mapContext.setCenterPlaceByUserSpecifiedInZone(value);
|
|
7104
7329
|
const mapContext = {
|
|
7105
7330
|
panToGeoPositionByRecomend: () => {
|
|
7106
7331
|
throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
|
|
@@ -7108,6 +7333,9 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7108
7333
|
setCenterPlaceByUserSpecified: () => {
|
|
7109
7334
|
throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
|
|
7110
7335
|
},
|
|
7336
|
+
setCenterPlaceByUserSpecifiedInZone: () => {
|
|
7337
|
+
throw new Error("MyError: setCenterPlaceByUserSpecifiedInZone used before assigned");
|
|
7338
|
+
},
|
|
7111
7339
|
onChangeCenterPlace: (place) => {
|
|
7112
7340
|
Object.assign(centerPlace, { ...place });
|
|
7113
7341
|
},
|
|
@@ -7121,6 +7349,7 @@ const useBusinessRecomendPlaceMap = () => {
|
|
|
7121
7349
|
placeCandidates,
|
|
7122
7350
|
panToGeoPositionByRecomend,
|
|
7123
7351
|
setCenterPlaceByUserSpecified,
|
|
7352
|
+
setCenterPlaceByUserSpecifiedInZone,
|
|
7124
7353
|
apiMapDistance,
|
|
7125
7354
|
apiMapInChina: inChina
|
|
7126
7355
|
};
|