@heycar/heycars-map 0.9.11 → 0.9.13

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.
Files changed (34) hide show
  1. package/dist/index.cjs +506 -93
  2. package/dist/index.js +507 -94
  3. package/dist/src/Demo/DemoBusinessTaxiService.d.ts +805 -560
  4. package/dist/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +0 -1
  5. package/dist/src/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
  6. package/dist/src/business-components/FitView/FitView.d.ts +9 -2
  7. package/dist/src/business-components/PassengerCircle/PassengerCircle.d.ts +825 -825
  8. package/dist/src/business-components/StartEndPoint/StartEndPoint.d.ts +825 -825
  9. package/dist/src/business-components/TaxiCar/TaxiCar.d.ts +825 -825
  10. package/dist/src/components/Amap/Amap.d.ts +8 -7
  11. package/dist/src/components/Amap/SafeAmap.d.ts +103 -0
  12. package/dist/src/components/MapProvider/MapProvider.d.ts +2 -1
  13. package/dist/src/hooks/useHeycarMap.d.ts +5 -1585
  14. package/dist/src/hooks/useMap.d.ts +4 -794
  15. package/dist/src/hooks/useMapAngle.d.ts +3 -3
  16. package/dist/src/hooks/useMapDrag.d.ts +3 -3
  17. package/dist/src/hooks/useMapFitView.d.ts +108 -108
  18. package/dist/src/hooks/useMapLngLatToVw.d.ts +3 -3
  19. package/dist/src/hooks/useMapRecomendPlace.d.ts +1 -0
  20. package/dist/src/hooks/useMapWheelZoomCenter.d.ts +3 -2
  21. package/dist/src/hooks/useMapZoom.d.ts +3 -2
  22. package/dist/src/hooks-business/useBusinessQuotingMap.d.ts +806 -561
  23. package/dist/src/hooks-business/useBusinessRecomendPlaceMap.d.ts +4 -3
  24. package/dist/src/hooks-business/useBusinessReselectPlaceMap.d.ts +1 -1
  25. package/dist/src/hooks-business/useBusinessTaxiServiceMap.d.ts +806 -561
  26. package/dist/src/index.d.ts +1 -0
  27. package/dist/src/types/interface.d.ts +4 -2
  28. package/dist/src/types/my.d.ts +21 -0
  29. package/dist/src/types/wx.d.ts +1 -0
  30. package/dist/src/utils/alipayPolyfill.d.ts +1 -0
  31. package/dist/src/utils/helper.d.ts +0 -1
  32. package/dist/src/utils/referenceCount.d.ts +8 -0
  33. package/package.json +1 -1
  34. package/todo.md +15 -0
package/dist/index.js CHANGED
@@ -4,10 +4,13 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
7
+ import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef, readonly } from "vue";
8
8
  const style_css_ts_vanilla = "";
9
+ if (typeof window !== "undefined" && typeof globalThis === "undefined") {
10
+ window.globalThis = window;
11
+ }
9
12
  const name = "@heycar/heycars-map";
10
- const version = "0.9.11";
13
+ const version = "0.9.13";
11
14
  const type = "module";
12
15
  const bin = {
13
16
  checkVersion: "./bin/checkVersion.js"
@@ -1160,17 +1163,6 @@ const pausableSleep = (milliSeconds) => {
1160
1163
  };
1161
1164
  return { sleepPromise: sleepDefered, pause, restart };
1162
1165
  };
1163
- const createRunOnce = (fn) => {
1164
- let isExcuted = false;
1165
- let result;
1166
- return function runOnce(...args) {
1167
- if (isExcuted)
1168
- return result;
1169
- isExcuted = true;
1170
- result = fn(...args);
1171
- return result;
1172
- };
1173
- };
1174
1166
  const MAX_ANIMATION_DISTANCE_VW = 300;
1175
1167
  const MIN_ANIMATION_DURATION = 300;
1176
1168
  const ANIMATION_DURATION_FOR_100VW = 200;
@@ -1227,7 +1219,7 @@ const pipeDefer = (fn) => (...args) => {
1227
1219
  setTimeout(() => {
1228
1220
  const result = fn == null ? void 0 : fn(...args);
1229
1221
  resolve(result);
1230
- }, 1e3);
1222
+ }, 50);
1231
1223
  });
1232
1224
  };
1233
1225
  const pipeOnlyLastEffect = (fn) => {
@@ -1396,14 +1388,13 @@ function watchPostEffectForMapProperty(targetRef, props, nameOptions, watchOptio
1396
1388
  watch(
1397
1389
  deps,
1398
1390
  (values, prevValues) => {
1399
- const target = targetRef.value;
1400
- if (!target)
1391
+ if (!targetRef.value)
1401
1392
  return;
1402
1393
  for (const [idx, value] of values.entries()) {
1403
1394
  const { name: name2, defaultValue } = nameOptions[idx];
1404
1395
  const prev = prevValues[idx];
1405
1396
  if (!deepCompareEqualsForMaps(value, prev)) {
1406
- target[name2setterName(name2)](value != null ? value : defaultValue);
1397
+ targetRef.value[name2setterName(name2)](value != null ? value : defaultValue);
1407
1398
  }
1408
1399
  }
1409
1400
  },
@@ -1422,16 +1413,18 @@ function watchNoneImmediatePostEffectForMapProperty(targetRef, props, nameOption
1422
1413
  }
1423
1414
  function watchPostEffectForAMapEvent(targetRef, props, emit, propertyNames) {
1424
1415
  watchPostEffect((onCleanup) => {
1425
- const target = targetRef == null ? void 0 : targetRef.value;
1426
- if (!target)
1416
+ if (!(targetRef == null ? void 0 : targetRef.value))
1427
1417
  return;
1428
1418
  const cleanList = [];
1429
1419
  for (const name2 of propertyNames) {
1430
1420
  const emitEventName = property2emitEventName(name2);
1431
1421
  const eventName = property2mapEventName(name2);
1432
1422
  const handler = (e) => emit(emitEventName, e);
1433
- target.on(eventName, handler);
1434
- cleanList.push(() => target == null ? void 0 : target.off(eventName, handler));
1423
+ targetRef == null ? void 0 : targetRef.value.on(eventName, handler);
1424
+ cleanList.push(() => {
1425
+ var _a;
1426
+ return (_a = targetRef == null ? void 0 : targetRef.value) == null ? void 0 : _a.off(eventName, handler);
1427
+ });
1435
1428
  }
1436
1429
  onCleanup(() => {
1437
1430
  for (const clean of cleanList)
@@ -1461,24 +1454,49 @@ function watchPostEffectForGMapEvent(targetRef, props, emit, propertyNames) {
1461
1454
  const watchPostEffectOnce = (callback) => {
1462
1455
  watch(() => 0, callback, { immediate: true, flush: "post" });
1463
1456
  };
1457
+ class ReferenceCount {
1458
+ constructor() {
1459
+ __publicField(this, "count", 0);
1460
+ }
1461
+ log() {
1462
+ console.log(`ReferenceCount count = ${this.count}`);
1463
+ }
1464
+ add() {
1465
+ this.count += 1;
1466
+ this.log();
1467
+ }
1468
+ remove() {
1469
+ this.count -= 1;
1470
+ this.log();
1471
+ }
1472
+ }
1473
+ const referenceCount = new ReferenceCount();
1464
1474
  const AmapMarker = defineSetup(function AmapMarker2(props, { emit }) {
1465
1475
  const { registerOverlay } = props;
1466
1476
  const markerRef = shallowRef();
1467
1477
  const mapRef = useAmap();
1468
1478
  onMounted(() => {
1479
+ referenceCount.add();
1469
1480
  markerRef.value = new AMap.Marker({ ...props });
1470
1481
  });
1482
+ useMapOverlay({ registerOverlay, overlayRef: markerRef });
1471
1483
  onUnmounted(() => {
1472
- var _a;
1484
+ var _a, _b;
1485
+ referenceCount.remove();
1473
1486
  (_a = markerRef.value) == null ? void 0 : _a.setMap(null);
1487
+ (_b = markerRef.value) == null ? void 0 : _b.destroy();
1488
+ markerRef.value = void 0;
1474
1489
  });
1475
- useMapOverlay({ registerOverlay, overlayRef: markerRef });
1476
- watchPostEffect(() => {
1490
+ watchPostEffect((onCleanup) => {
1477
1491
  var _a;
1478
1492
  const map = mapRef == null ? void 0 : mapRef.value;
1479
- if (!map)
1493
+ if (!(map == null ? void 0 : map.amap))
1480
1494
  return;
1481
- (_a = markerRef.value) == null ? void 0 : _a.setMap(map);
1495
+ (_a = markerRef.value) == null ? void 0 : _a.setMap(map.amap);
1496
+ onCleanup(() => {
1497
+ var _a2;
1498
+ return (_a2 = markerRef.value) == null ? void 0 : _a2.setMap(null);
1499
+ });
1482
1500
  });
1483
1501
  watchNoneImmediatePostEffectForMapProperty(markerRef, props, [
1484
1502
  { name: "anchor", defaultValue: "" },
@@ -2326,6 +2344,8 @@ function detectWebGL() {
2326
2344
  const useAmapLngLatToVw = (props) => {
2327
2345
  const apiMapLngLatToVw = (point) => {
2328
2346
  const amap2 = props.mapRef.value;
2347
+ if (!(amap2 == null ? void 0 : amap2.amap))
2348
+ return [0, 0];
2329
2349
  const sw = innerWidth;
2330
2350
  const [x, y] = amap2 == null ? void 0 : amap2.lngLatToContainer(point).toArray();
2331
2351
  return [100 * x / sw, 100 * y / sw];
@@ -2390,6 +2410,316 @@ const useAmapWheelZoomCenter = (props) => {
2390
2410
  };
2391
2411
  const Amap_css_ts_vanilla = "";
2392
2412
  var amap = "_1d8ur7t0";
2413
+ class SafeAmap {
2414
+ constructor(elm, options) {
2415
+ __publicField(this, "containerElm");
2416
+ __publicField(this, "amap");
2417
+ this.containerElm = document.createElement("div");
2418
+ this.containerElm.style.position = "absolute";
2419
+ this.containerElm.style.top = "0";
2420
+ this.containerElm.style.left = "0";
2421
+ this.containerElm.style.right = "0";
2422
+ this.containerElm.style.bottom = "0";
2423
+ elm.appendChild(this.containerElm);
2424
+ this.amap = new AMap.Map(this.containerElm, options);
2425
+ }
2426
+ destroy() {
2427
+ var _a, _b, _c;
2428
+ (_b = (_a = this.containerElm) == null ? void 0 : _a.parentNode) == null ? void 0 : _b.removeChild(this.containerElm);
2429
+ (_c = this.amap) == null ? void 0 : _c.destroy();
2430
+ this.containerElm = void 0;
2431
+ this.amap = void 0;
2432
+ }
2433
+ getContainer() {
2434
+ var _a;
2435
+ return (_a = this.containerElm) == null ? void 0 : _a.parentElement;
2436
+ }
2437
+ setCenter(center, immediately, duration) {
2438
+ var _a;
2439
+ return (_a = this.amap) == null ? void 0 : _a.setCenter(center, immediately, duration);
2440
+ }
2441
+ getStyleByUserId(id, zoom) {
2442
+ var _a;
2443
+ return (_a = this.amap) == null ? void 0 : _a.getStyleByUserId(id, zoom);
2444
+ }
2445
+ getCustomTypeByContainerPos(lnglat) {
2446
+ var _a;
2447
+ return (_a = this.amap) == null ? void 0 : _a.getCustomTypeByContainerPos(lnglat);
2448
+ }
2449
+ getScreenShot(width, height) {
2450
+ var _a;
2451
+ return (_a = this.amap) == null ? void 0 : _a.getScreenShot(width, height);
2452
+ }
2453
+ setZoomAndCenter(zoom, center, immediately, duration) {
2454
+ var _a;
2455
+ (_a = this.amap) == null ? void 0 : _a.setZoomAndCenter(zoom, center, immediately, duration);
2456
+ }
2457
+ getBounds() {
2458
+ var _a;
2459
+ return (_a = this.amap) == null ? void 0 : _a.getBounds();
2460
+ }
2461
+ getCenter() {
2462
+ var _a;
2463
+ return (_a = this.amap) == null ? void 0 : _a.getCenter();
2464
+ }
2465
+ getGraphicInfo() {
2466
+ var _a;
2467
+ return (_a = this.amap) == null ? void 0 : _a.getGraphicInfo();
2468
+ }
2469
+ setZoom(zoom, immediately, duration) {
2470
+ var _a;
2471
+ (_a = this.amap) == null ? void 0 : _a.setZoom(zoom, immediately, duration);
2472
+ }
2473
+ getZoom(digits) {
2474
+ var _a;
2475
+ return (_a = this.amap) == null ? void 0 : _a.getZoom(digits);
2476
+ }
2477
+ zoomIn() {
2478
+ var _a;
2479
+ (_a = this.amap) == null ? void 0 : _a.zoomIn();
2480
+ }
2481
+ zoomOut() {
2482
+ var _a;
2483
+ (_a = this.amap) == null ? void 0 : _a.zoomOut();
2484
+ }
2485
+ getPitch() {
2486
+ var _a;
2487
+ return (_a = this.amap) == null ? void 0 : _a.getPitch();
2488
+ }
2489
+ setPitch(pitch, immediately, duration) {
2490
+ var _a;
2491
+ (_a = this.amap) == null ? void 0 : _a.setPitch(pitch, immediately, duration);
2492
+ }
2493
+ getRotation() {
2494
+ var _a;
2495
+ return (_a = this.amap) == null ? void 0 : _a.getRotation();
2496
+ }
2497
+ setRotation(rotation, immediately, duration) {
2498
+ var _a;
2499
+ (_a = this.amap) == null ? void 0 : _a.setRotation(rotation, immediately, duration);
2500
+ }
2501
+ setBounds(bounds, immediately, avoid) {
2502
+ var _a;
2503
+ (_a = this.amap) == null ? void 0 : _a.setBounds(bounds, immediately, avoid);
2504
+ }
2505
+ panTo(lnglat, duration) {
2506
+ var _a;
2507
+ (_a = this.amap) == null ? void 0 : _a.panTo(lnglat, duration);
2508
+ }
2509
+ panBy(x, y, duration) {
2510
+ var _a;
2511
+ (_a = this.amap) == null ? void 0 : _a.panBy(x, y, duration);
2512
+ }
2513
+ add(features) {
2514
+ var _a;
2515
+ (_a = this.amap) == null ? void 0 : _a.add(features);
2516
+ }
2517
+ remove(features) {
2518
+ var _a;
2519
+ (_a = this.amap) == null ? void 0 : _a.remove(features);
2520
+ }
2521
+ lngLatToCoords(lnglat) {
2522
+ var _a;
2523
+ return (_a = this.amap) == null ? void 0 : _a.lngLatToCoords(lnglat);
2524
+ }
2525
+ coordsToLngLat(coords) {
2526
+ var _a;
2527
+ return (_a = this.amap) == null ? void 0 : _a.coordsToLngLat(coords);
2528
+ }
2529
+ lngLatToContainer(lnglat) {
2530
+ var _a;
2531
+ return (_a = this.amap) == null ? void 0 : _a.lngLatToContainer(lnglat);
2532
+ }
2533
+ containerToLngLat(pixel) {
2534
+ var _a;
2535
+ return (_a = this.amap) == null ? void 0 : _a.containerToLngLat(pixel);
2536
+ }
2537
+ coordToContainer(coord) {
2538
+ var _a;
2539
+ return (_a = this.amap) == null ? void 0 : _a.coordToContainer(coord);
2540
+ }
2541
+ containerToCoord(pixel) {
2542
+ var _a;
2543
+ return (_a = this.amap) == null ? void 0 : _a.containerToCoord(pixel);
2544
+ }
2545
+ pixelToLngLat(pixel, z) {
2546
+ var _a;
2547
+ return (_a = this.amap) == null ? void 0 : _a.pixelToLngLat(pixel, z);
2548
+ }
2549
+ lngLatToPixel(lnglat, z) {
2550
+ var _a;
2551
+ return (_a = this.amap) == null ? void 0 : _a.lngLatToPixel(lnglat, z);
2552
+ }
2553
+ getResolution(point) {
2554
+ var _a;
2555
+ return (_a = this.amap) == null ? void 0 : _a.getResolution(point);
2556
+ }
2557
+ getScale(dpi) {
2558
+ var _a;
2559
+ return (_a = this.amap) == null ? void 0 : _a.getScale(dpi);
2560
+ }
2561
+ getCity(cbk, lnglat) {
2562
+ var _a;
2563
+ (_a = this.amap) == null ? void 0 : _a.getCity(cbk, lnglat);
2564
+ }
2565
+ setCity(cityName, cbk) {
2566
+ var _a;
2567
+ (_a = this.amap) == null ? void 0 : _a.setCity(cityName, cbk);
2568
+ }
2569
+ setFitView(overlays, immediately, avoid, maxZoom) {
2570
+ var _a;
2571
+ return (_a = this.amap) == null ? void 0 : _a.setFitView(overlays, immediately, avoid, maxZoom);
2572
+ }
2573
+ getFitZoomAndCenterByOverlays(overlayList, avoid, maxZoom) {
2574
+ var _a;
2575
+ return (_a = this.amap) == null ? void 0 : _a.getFitZoomAndCenterByOverlays(overlayList, avoid, maxZoom);
2576
+ }
2577
+ getFitZoomAndCenterByBounds(bounds, avoid, maxZoom) {
2578
+ var _a;
2579
+ return (_a = this.amap) == null ? void 0 : _a.getFitZoomAndCenterByBounds(bounds, avoid, maxZoom);
2580
+ }
2581
+ addControl(control) {
2582
+ var _a;
2583
+ (_a = this.amap) == null ? void 0 : _a.addControl(control);
2584
+ }
2585
+ removeControl(control) {
2586
+ var _a;
2587
+ (_a = this.amap) == null ? void 0 : _a.removeControl(control);
2588
+ }
2589
+ setMapStyle(value) {
2590
+ var _a;
2591
+ (_a = this.amap) == null ? void 0 : _a.setMapStyle(value);
2592
+ }
2593
+ getMapStyle() {
2594
+ var _a;
2595
+ return (_a = this.amap) == null ? void 0 : _a.getMapStyle();
2596
+ }
2597
+ getAllOverlays(type2) {
2598
+ var _a;
2599
+ return (_a = this.amap) == null ? void 0 : _a.getAllOverlays(type2);
2600
+ }
2601
+ clearMap() {
2602
+ var _a;
2603
+ (_a = this.amap) == null ? void 0 : _a.clearMap();
2604
+ }
2605
+ clearInfoWindow() {
2606
+ var _a;
2607
+ (_a = this.amap) == null ? void 0 : _a.clearInfoWindow();
2608
+ }
2609
+ getFeatures() {
2610
+ var _a;
2611
+ return (_a = this.amap) == null ? void 0 : _a.getFeatures();
2612
+ }
2613
+ setFeatures(features) {
2614
+ var _a;
2615
+ (_a = this.amap) == null ? void 0 : _a.setFeatures(features);
2616
+ }
2617
+ getMapApprovalNumber() {
2618
+ var _a;
2619
+ return (_a = this.amap) == null ? void 0 : _a.getMapApprovalNumber();
2620
+ }
2621
+ setMask(maskPath) {
2622
+ var _a;
2623
+ (_a = this.amap) == null ? void 0 : _a.setMask(maskPath);
2624
+ }
2625
+ setLabelRejectMask(reject) {
2626
+ var _a;
2627
+ (_a = this.amap) == null ? void 0 : _a.setLabelRejectMask(reject);
2628
+ }
2629
+ /**
2630
+ * AMap.coreMap
2631
+ */
2632
+ getSize() {
2633
+ var _a;
2634
+ return (_a = this.amap) == null ? void 0 : _a.getSize();
2635
+ }
2636
+ addLayer(layer) {
2637
+ var _a;
2638
+ (_a = this.amap) == null ? void 0 : _a.addLayer(layer);
2639
+ }
2640
+ removeLayer(layer) {
2641
+ var _a;
2642
+ (_a = this.amap) == null ? void 0 : _a.removeLayer(layer);
2643
+ }
2644
+ setLayers(layers) {
2645
+ var _a;
2646
+ (_a = this.amap) == null ? void 0 : _a.setLayers(layers);
2647
+ }
2648
+ getLayers() {
2649
+ var _a;
2650
+ return (_a = this.amap) == null ? void 0 : _a.getLayers();
2651
+ }
2652
+ getLayersDangerous() {
2653
+ var _a;
2654
+ return (_a = this.amap) == null ? void 0 : _a.getLayersDangerous();
2655
+ }
2656
+ getStatus() {
2657
+ var _a;
2658
+ return (_a = this.amap) == null ? void 0 : _a.getStatus();
2659
+ }
2660
+ setStatus(status) {
2661
+ var _a;
2662
+ (_a = this.amap) == null ? void 0 : _a.setStatus(status);
2663
+ }
2664
+ getDefaultCursor() {
2665
+ var _a;
2666
+ return (_a = this.amap) == null ? void 0 : _a.getDefaultCursor();
2667
+ }
2668
+ setDefaultCursor(cursor) {
2669
+ var _a;
2670
+ (_a = this.amap) == null ? void 0 : _a.setDefaultCursor(cursor);
2671
+ }
2672
+ getLimitBounds() {
2673
+ var _a;
2674
+ return (_a = this.amap) == null ? void 0 : _a.getLimitBounds();
2675
+ }
2676
+ setLimitBounds(bounds) {
2677
+ var _a;
2678
+ (_a = this.amap) == null ? void 0 : _a.setLimitBounds(bounds);
2679
+ }
2680
+ clearLimitBounds() {
2681
+ var _a;
2682
+ (_a = this.amap) == null ? void 0 : _a.clearLimitBounds();
2683
+ }
2684
+ getZooms() {
2685
+ var _a;
2686
+ return (_a = this.amap) == null ? void 0 : _a.getZooms();
2687
+ }
2688
+ setZooms(zooms) {
2689
+ var _a;
2690
+ (_a = this.amap) == null ? void 0 : _a.setZooms(zooms);
2691
+ }
2692
+ /**
2693
+ * AMap.Event
2694
+ */
2695
+ on(type2, fn, context2, once) {
2696
+ var _a;
2697
+ (_a = this.amap) == null ? void 0 : _a.on(type2, fn, context2, once);
2698
+ return this;
2699
+ }
2700
+ off(type2, fn, context2) {
2701
+ var _a;
2702
+ (_a = this.amap) == null ? void 0 : _a.off(type2, fn, context2);
2703
+ return this;
2704
+ }
2705
+ hasEvents(type2, fn, context2) {
2706
+ var _a;
2707
+ return !!((_a = this.amap) == null ? void 0 : _a.hasEvents(type2, fn, context2));
2708
+ }
2709
+ clearEvents(type2) {
2710
+ var _a;
2711
+ (_a = this.amap) == null ? void 0 : _a.clearEvents(type2);
2712
+ return this;
2713
+ }
2714
+ emit(type2, data) {
2715
+ var _a;
2716
+ (_a = this.amap) == null ? void 0 : _a.emit(type2, data);
2717
+ return this;
2718
+ }
2719
+ getEvents() {
2720
+ return this.amap.getEvents();
2721
+ }
2722
+ }
2393
2723
  const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2394
2724
  const {
2395
2725
  onDragStart,
@@ -2433,10 +2763,11 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2433
2763
  provideAmap(mapRef);
2434
2764
  const { apiMapDistanceVwOfPoints } = useMapLngLatToVw({ mapRef });
2435
2765
  useAmapWheelZoomCenter({ mapRef, enableRef: computed(() => !!props.touchZoomCenter) });
2436
- watchPostEffect(() => {
2766
+ watchPostEffect((onCleanup) => {
2437
2767
  if (mapRef.value || !elementRef.value)
2438
2768
  return;
2439
- const map = new AMap.Map(elementRef.value, {
2769
+ referenceCount.add();
2770
+ const map = new SafeAmap(elementRef.value, {
2440
2771
  ...defaultOptions,
2441
2772
  scrollWheel: defaultOptions.touchZoomCenter ? false : defaultOptions.scrollWheel,
2442
2773
  vectorMapForeign
@@ -2444,6 +2775,13 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2444
2775
  window.GlobalAmap = map;
2445
2776
  mapRef.value = map;
2446
2777
  setMap == null ? void 0 : setMap(map);
2778
+ onCleanup(() => {
2779
+ window.GlobalAmap = void 0;
2780
+ mapRef.value = void 0;
2781
+ setMap == null ? void 0 : setMap(void 0);
2782
+ map == null ? void 0 : map.destroy();
2783
+ referenceCount.remove();
2784
+ });
2447
2785
  });
2448
2786
  watchNoneImmediatePostEffectForDeepOption(
2449
2787
  () => statusOptions.value,
@@ -2747,18 +3085,26 @@ const AmapPolyline = defineSetup(function AmapPolyline2(props) {
2747
3085
  const polylineRef = shallowRef();
2748
3086
  const mapRef = useAmap();
2749
3087
  onMounted(() => {
3088
+ referenceCount.add();
2750
3089
  polylineRef.value = new AMap.Polyline({ ...props });
2751
3090
  });
2752
3091
  onUnmounted(() => {
2753
- var _a;
3092
+ var _a, _b;
3093
+ referenceCount.remove();
2754
3094
  (_a = polylineRef.value) == null ? void 0 : _a.setMap(null);
3095
+ (_b = polylineRef.value) == null ? void 0 : _b.destroy();
3096
+ polylineRef.value = void 0;
2755
3097
  });
2756
- watchPostEffect(() => {
3098
+ watchPostEffect((onCleanup) => {
2757
3099
  var _a;
2758
3100
  const map = mapRef == null ? void 0 : mapRef.value;
2759
- if (!map)
3101
+ if (!(map == null ? void 0 : map.amap))
2760
3102
  return;
2761
- (_a = polylineRef.value) == null ? void 0 : _a.setMap(map);
3103
+ (_a = polylineRef.value) == null ? void 0 : _a.setMap(map.amap);
3104
+ onCleanup(() => {
3105
+ var _a2;
3106
+ return (_a2 = polylineRef.value) == null ? void 0 : _a2.setMap(null);
3107
+ });
2762
3108
  });
2763
3109
  watchNoneImmediatePostEffectForMapProperty(polylineRef, props, [
2764
3110
  { name: "path", defaultValue: [[0, 0]] },
@@ -3038,7 +3384,7 @@ const useDrivingRoute = (props) => {
3038
3384
  return supplier === "gmap" ? useGDrivingRoute(props) : useADrivingRoute(props);
3039
3385
  };
3040
3386
  const amapComputeHeading = (from, to, map) => {
3041
- if (!map)
3387
+ if (!(map == null ? void 0 : map.amap))
3042
3388
  return 0;
3043
3389
  const { x: xFrom, y: yFrom } = map.lngLatToContainer(from);
3044
3390
  const { x: xTo, y: yTo } = map.lngLatToContainer(to);
@@ -3130,15 +3476,15 @@ const useAmapFitView = (props) => {
3130
3476
  const { mapRef, autoFitTimeout } = props;
3131
3477
  const overlayGroup = /* @__PURE__ */ new Set();
3132
3478
  let timer = void 0;
3133
- const setFitView = () => {
3479
+ const setFitView = (immediate = false) => {
3134
3480
  var _a, _b;
3135
3481
  const map = mapRef.value;
3136
- if (!map)
3482
+ if (!(map == null ? void 0 : map.amap))
3137
3483
  return;
3138
3484
  const vw = window.innerWidth / 100;
3139
3485
  const [top, right, bottom, left] = (_a = props.padding) != null ? _a : [0, 0, 0, 0];
3140
3486
  spaceLog("setFitView", "overlayGroup = ", overlayGroup);
3141
- map.setFitView([...overlayGroup], false, [top * vw, bottom * vw, left * vw, right * vw]);
3487
+ map.setFitView([...overlayGroup], immediate, [top * vw, bottom * vw, left * vw, right * vw]);
3142
3488
  if (overlayGroup.size === 1) {
3143
3489
  const [overlay] = [...overlayGroup];
3144
3490
  const position = (_b = overlay.getPosition) == null ? void 0 : _b.call(overlay);
@@ -3318,14 +3664,18 @@ const FitViewOnce = defineSetup(function FitViewOnce2(props, {
3318
3664
  } = registerOverlay;
3319
3665
  onMounted(async () => {
3320
3666
  await mapMountedPromise;
3321
- setFitView();
3667
+ setFitView(!!props.immediate);
3322
3668
  });
3323
3669
  return () => {
3324
3670
  var _a;
3325
3671
  return h("div", [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
3326
3672
  };
3327
3673
  });
3328
- function createFittableRegisterOverlay(registerOverlay) {
3674
+ function createFittableRegisterOverlay(props) {
3675
+ const {
3676
+ registerOverlay,
3677
+ immediate = false
3678
+ } = props;
3329
3679
  const {
3330
3680
  add,
3331
3681
  remove,
@@ -3333,11 +3683,11 @@ function createFittableRegisterOverlay(registerOverlay) {
3333
3683
  } = registerOverlay;
3334
3684
  const fittableAdd = (v) => {
3335
3685
  add(v);
3336
- setFitView();
3686
+ setFitView(immediate);
3337
3687
  };
3338
3688
  const fittableRemove = (v) => {
3339
3689
  remove(v);
3340
- setFitView();
3690
+ setFitView(immediate);
3341
3691
  };
3342
3692
  return {
3343
3693
  add: fittableAdd,
@@ -3400,7 +3750,7 @@ const InterruptableIntervalFitView = defineSetup(function InterruptableIntervalF
3400
3750
  } = pausableSleep(props.interval));
3401
3751
  await sleepPromise;
3402
3752
  console.log("InterruptableIntervalFitView setFitView");
3403
- registerOverlay.setFitView();
3753
+ registerOverlay.setFitView(!!props.immediate);
3404
3754
  }
3405
3755
  }, {
3406
3756
  immediate: true,
@@ -3586,8 +3936,11 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props,
3586
3936
  const {
3587
3937
  language
3588
3938
  } = useMapSupplier();
3589
- const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
3590
- const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
3939
+ const fittableRegistryOverlay = createFittableRegisterOverlay({
3940
+ registerOverlay,
3941
+ immediate: true
3942
+ });
3943
+ const deferedSetFitView = pipeDefer(() => registerOverlay.setFitView(true));
3591
3944
  return () => {
3592
3945
  const {
3593
3946
  from: inputFromPlace,
@@ -3840,7 +4193,11 @@ function wechatWatchPosition(onSuccess, onError, option) {
3840
4193
  isHandled = true;
3841
4194
  const isGeoWorking = isGeoWorkingRef.value;
3842
4195
  isGeoWorkingRef.value = false;
3843
- console.warn("MyWarning: wx.getLocation failed msg = ", res.errMsg);
4196
+ console.warn(
4197
+ "MyWarning: wx.getLocation failed errcode, errmsg = ",
4198
+ res.errCode,
4199
+ res.errMsg
4200
+ );
3844
4201
  resolve(void 0);
3845
4202
  if (!isGeoWorking)
3846
4203
  return;
@@ -3930,6 +4287,25 @@ function compatibleWathPosition(onSuccess, onError, option) {
3930
4287
  const watchId = navigator.geolocation.watchPosition(onSuccess, onError, option);
3931
4288
  return () => navigator.geolocation.clearWatch(watchId);
3932
4289
  }
4290
+ window.efg = () => my.getLocation({
4291
+ type: 0,
4292
+ cacheTimeout: 1,
4293
+ success(res) {
4294
+ console.log("my.getLocation success = ", JSON.stringify(res, null, 2));
4295
+ },
4296
+ fail(res) {
4297
+ console.log("my.getLocation fail = ", JSON.stringify(res, null, 2));
4298
+ }
4299
+ });
4300
+ window.abc = () => wx.getLocation({
4301
+ type: "wgs84",
4302
+ success(res) {
4303
+ console.log("wx.getLocation success = ", JSON.stringify(res, null, 2));
4304
+ },
4305
+ fail(res) {
4306
+ console.log("wx.getLocation fail = ", JSON.stringify(res, null, 2));
4307
+ }
4308
+ });
3933
4309
  class SingleGeoWatch {
3934
4310
  constructor(option) {
3935
4311
  __publicField(this, "id", 0);
@@ -4078,11 +4454,11 @@ const useHeycarAmap = () => {
4078
4454
  const { apiMapDistanceVwOfPoints } = useMapLngLatToVw({ mapRef: amapRef });
4079
4455
  const setMap = (map) => {
4080
4456
  amapRef.value = map;
4081
- amapElementRef.value = map.getContainer();
4457
+ amapElementRef.value = map == null ? void 0 : map.getContainer();
4082
4458
  };
4083
4459
  const panTo = async (value) => {
4084
4460
  const amap2 = amapRef.value;
4085
- if (!amap2)
4461
+ if (!(amap2 == null ? void 0 : amap2.amap))
4086
4462
  return;
4087
4463
  const { lng, lat } = amap2.getCenter();
4088
4464
  const distanceVw = apiMapDistanceVwOfPoints(value, [lng, lat]);
@@ -4102,7 +4478,7 @@ const useHeycarGamp = () => {
4102
4478
  const gmapElementRef = shallowRef();
4103
4479
  const setMap = (map) => {
4104
4480
  gmapRef.value = map;
4105
- gmapElementRef.value = map.getDiv();
4481
+ gmapElementRef.value = map == null ? void 0 : map.getDiv();
4106
4482
  };
4107
4483
  const panTo = (value) => {
4108
4484
  var _a;
@@ -5806,6 +6182,7 @@ const useAmapPlace = (props) => {
5806
6182
  async () => {
5807
6183
  await readyPromise;
5808
6184
  const resultPlace = await getPlaceByRegeo(pointRef.value);
6185
+ Object.assign(place, resultPlace);
5809
6186
  onChange == null ? void 0 : onChange(resultPlace);
5810
6187
  }
5811
6188
  );
@@ -5848,6 +6225,7 @@ const useGmapPlace = (props) => {
5848
6225
  async () => {
5849
6226
  await readyPromise;
5850
6227
  const resultPlace = await getPlaceByRegeo(pointRef.value);
6228
+ Object.assign(place, resultPlace);
5851
6229
  onChange == null ? void 0 : onChange(resultPlace);
5852
6230
  }
5853
6231
  );
@@ -6000,6 +6378,22 @@ const useMapRecomendPlace = (props) => {
6000
6378
  isSameZone
6001
6379
  });
6002
6380
  };
6381
+ const updateRecommendPlaceOnlyInZone = async (place) => {
6382
+ const { place: foundPlace, candidates, available, zone } = await findAttachedPlace(place);
6383
+ const resultPlace = zone ? foundPlace : place;
6384
+ const isSameZone = !!zone && isZoneEqual(zone, zoneRef.value);
6385
+ availableRef.value = available;
6386
+ zoneRef.value = zone;
6387
+ placeCandidatesRef.value = candidates;
6388
+ Object.assign(recomendPlace, { ...resultPlace });
6389
+ onChangePlace == null ? void 0 : onChangePlace({ ...resultPlace });
6390
+ onChange == null ? void 0 : onChange({
6391
+ place: { ...resultPlace },
6392
+ inputPlace: { ...place },
6393
+ isInZone: !!zone,
6394
+ isSameZone
6395
+ });
6396
+ };
6003
6397
  const setPlaceCandidatesAndZone = ({
6004
6398
  zone,
6005
6399
  places: inputPlaceCandidates
@@ -6016,6 +6410,7 @@ const useMapRecomendPlace = (props) => {
6016
6410
  availableRef,
6017
6411
  isElectedRef,
6018
6412
  updateRecommendPlace,
6413
+ updateRecommendPlaceOnlyInZone,
6019
6414
  updatePlaceCandidates,
6020
6415
  updatePlace,
6021
6416
  setPlaceCandidatesAndZone
@@ -6043,7 +6438,7 @@ const useAmapZoom = (props) => {
6043
6438
  watch(
6044
6439
  () => mapRef.value,
6045
6440
  (map) => {
6046
- if (!map)
6441
+ if (!(map == null ? void 0 : map.amap))
6047
6442
  return;
6048
6443
  zoomRef.value = map.getZoom();
6049
6444
  }
@@ -6091,20 +6486,28 @@ const AmapPolygon = defineSetup(function AmapPolygon2(props) {
6091
6486
  const polygonRef = shallowRef();
6092
6487
  const mapRef = useAmap();
6093
6488
  onMounted(() => {
6489
+ referenceCount.add();
6094
6490
  polygonRef.value = new AMap.Polygon();
6095
6491
  polygonRef.value.setOptions(props);
6096
6492
  });
6097
6493
  onUnmounted(() => {
6098
- var _a;
6494
+ var _a, _b;
6495
+ referenceCount.remove();
6099
6496
  (_a = polygonRef.value) == null ? void 0 : _a.setMap(null);
6497
+ (_b = polygonRef.value) == null ? void 0 : _b.destroy();
6498
+ polygonRef.value = void 0;
6100
6499
  });
6101
6500
  useAmapFixBugPolygonDrag(polygonRef);
6102
- watchPostEffect(() => {
6501
+ watchPostEffect((onCleanup) => {
6103
6502
  var _a;
6104
6503
  const map = mapRef == null ? void 0 : mapRef.value;
6105
- if (!map)
6504
+ if (!(map == null ? void 0 : map.amap))
6106
6505
  return;
6107
- (_a = polygonRef.value) == null ? void 0 : _a.setMap(map);
6506
+ (_a = polygonRef.value) == null ? void 0 : _a.setMap(map.amap);
6507
+ onCleanup(() => {
6508
+ var _a2;
6509
+ return (_a2 = polygonRef.value) == null ? void 0 : _a2.setMap(null);
6510
+ });
6108
6511
  });
6109
6512
  watchNoneImmediatePostEffectForMapProperty(polygonRef, props, [
6110
6513
  { name: "path", defaultValue: [[0, 0]] },
@@ -6782,7 +7185,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6782
7185
  centerSource.source = "api";
6783
7186
  const place = toPlaceType(input);
6784
7187
  Object.assign(centerPlace, place);
6785
- updateRecommendPlace(place);
7188
+ updateRecommendPlaceOnlyInZone(place);
6786
7189
  };
6787
7190
  const setCenterPlaceByUserSpecifiedInZone = async ({
6788
7191
  place: inputPlace,
@@ -6852,7 +7255,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6852
7255
  updatePlace(value.position);
6853
7256
  }
6854
7257
  },
6855
- onChange: (v) => emit("changeGeoLocation", v),
7258
+ onChange: (v) => {
7259
+ mapContext.geoPositionRef.value = v.position;
7260
+ emit("changeGeoLocation", v);
7261
+ },
6856
7262
  onError: (e) => emit("geoError", e)
6857
7263
  });
6858
7264
  mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
@@ -6875,7 +7281,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6875
7281
  });
6876
7282
  const {
6877
7283
  updatePlace,
6878
- updateRecommendPlace,
7284
+ updateRecommendPlaceOnlyInZone,
6879
7285
  setPlaceCandidatesAndZone,
6880
7286
  placeCandidates,
6881
7287
  zoneRef,
@@ -6935,8 +7341,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6935
7341
  const {
6936
7342
  geoLoadingTitle: geoLoadingTitle2,
6937
7343
  recomendDescription,
6938
- unavailableTitle,
6939
- disableLocator
7344
+ unavailableTitle
6940
7345
  } = props;
6941
7346
  const title = geoLoading.value ? geoLoadingTitle2 : !availableRef.value ? unavailableTitle : centerPlace.displayName;
6942
7347
  const description = !availableRef.value ? void 0 : isElectedRef.value ? recomendDescription : void 0;
@@ -6974,14 +7379,14 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
6974
7379
  "title": title,
6975
7380
  "description": description,
6976
7381
  "type": isDragging.value ? "locator" : "box",
6977
- "withArrow": !disableLocator
7382
+ "withArrow": true
6978
7383
  },
6979
7384
  "on": {
6980
- "click": () => disableLocator ? null : emit("clickLocator")
7385
+ "click": () => emit("clickLocator")
6981
7386
  }
6982
7387
  })]);
6983
7388
  };
6984
- }).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "disableLocator", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]);
7389
+ }).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]);
6985
7390
  const emptyPlace = {
6986
7391
  lng: 0,
6987
7392
  lat: 0,
@@ -6993,12 +7398,11 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
6993
7398
  slots
6994
7399
  }) {
6995
7400
  const {
7401
+ getRecomendPlace,
6996
7402
  mapContext,
6997
- disableLocator,
6998
7403
  defaultPlace = {
6999
7404
  ...emptyPlace
7000
- },
7001
- getRecomendPlace
7405
+ }
7002
7406
  } = props;
7003
7407
  const pipedGetRecomendPlace = pipeOnlyLastEffect(getRecomendPlace);
7004
7408
  const {
@@ -7027,15 +7431,11 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
7027
7431
  centerSource.source = "api";
7028
7432
  updatePlace(point);
7029
7433
  };
7030
- const setCenterPlaceDisplayNameOnce = createRunOnce((input) => {
7031
- if (input)
7032
- centerPlace.displayName = String(input);
7033
- });
7034
7434
  const setCenterPlaceByUserSpecified = async (input) => {
7035
7435
  centerSource.source = "api";
7036
7436
  const place = toPlaceType(input);
7037
7437
  Object.assign(centerPlace, place);
7038
- updateRecommendPlace(place);
7438
+ updateRecommendPlaceOnlyInZone(place);
7039
7439
  };
7040
7440
  const setCenterPlaceByUserSpecifiedInZone = async ({
7041
7441
  place: inputPlace,
@@ -7084,7 +7484,6 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
7084
7484
  geoDefaultPosition: place2point(defaultPlace),
7085
7485
  onError: (e) => emit("geoError", e)
7086
7486
  });
7087
- mapContext.setCenterPlaceDisplayNameOnce = setCenterPlaceDisplayNameOnce;
7088
7487
  mapContext.setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
7089
7488
  mapContext.setCenterPlaceByUserSpecifiedInZone = setCenterPlaceByUserSpecifiedInZone;
7090
7489
  mapContext.panToGeoPositionByRecomend = () => {
@@ -7104,7 +7503,7 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
7104
7503
  });
7105
7504
  const {
7106
7505
  updatePlace,
7107
- updateRecommendPlace,
7506
+ updateRecommendPlaceOnlyInZone,
7108
7507
  updatePlaceCandidates,
7109
7508
  setPlaceCandidatesAndZone,
7110
7509
  placeCandidates,
@@ -7207,15 +7606,11 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
7207
7606
  "attrs": {
7208
7607
  "title": title,
7209
7608
  "description": description,
7210
- "type": isDragging.value ? "locator" : "box",
7211
- "withArrow": !disableLocator
7212
- },
7213
- "on": {
7214
- "click": () => disableLocator ? null : emit("clickLocator")
7609
+ "type": isDragging.value ? "locator" : "box"
7215
7610
  }
7216
7611
  })]);
7217
7612
  };
7218
- }).props(["loading", "fallback", "log", "defaultPlace", "unavailableTitle", "recomendDescription", "disableLocator", "getRecomendPlace", "mapContext"]);
7613
+ }).props(["loading", "fallback", "log", "defaultPlace", "unavailableTitle", "recomendDescription", "getRecomendPlace", "mapContext"]);
7219
7614
  const imgTaxicar = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0zNC4wODcgMTAuOTZjMCAyLjM2OS0uMDU0IDIuOTgtLjc4MiAzLjcwNC0uNzkzLjc5LTUuMjM2LjgzMy01LjIzNi44MzNsLTQuMTE2LjE5Mi05Ljg5Ni0uMTQ0cy03Ljc5LS4wMjYtOS4xMzEtLjAyNmMtMS4zNDIgMC0yLjQwNi0uODQ3L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DIuNTJjLS4xNDcgMi44ODQuMDIgMy4zMTQuMjMyIDUuMDQ4LjAwNi4wNTcuMDI2LjE1Mi4wNTYuMjc0LTEuNTEzLjI3OC0zIC41NC00LjkxMi41NC0xLjg0NyAwLTMuMjg5LS4yNS00Ljc1LS41MTF2LS4wMDhjLjAzLS4xMzEuMDU1LS4yMzMuMDYtLjI5LjIxOC0xLjc0NC4zOC0yLjE3My4yMzMtNS4wNTN6IiBmaWxsPSIjRjJGQUZGIi8+PHBhdGggZD0iTTEyLjA2NyAxOS43MTZsLTQuNjQ1LjY5MmMtLjQzMS0yLjkyLS44MzItNC4zNi0xLjIwMi00LjMyNGwtLjIxLTEuMjk3YTExLjczMiAxMS43MzIgMCAwMTYuMDI2LTEuNjczYy4zODYgMC0uMTM3LjA1LTEuNTY5LjE0N2wxLjYgNi40NTV6IiBmaWxsPSIjMTYxNjE2Ii8+PC9nPjwvZz48L3N2Zz4=";
7220
7615
  const TaxiCar_css_ts_vanilla = "";
7221
7616
  var carIcon = "_65j3sr1";
@@ -7593,10 +7988,12 @@ const SectionDispatching = defineSetup(function SectionDispatching2(props) {
7593
7988
  }
7594
7989
  }), h(FitViewOnce, {
7595
7990
  "attrs": {
7596
- "registerOverlay": registerOverlay
7991
+ "registerOverlay": registerOverlay,
7992
+ "immediate": true
7597
7993
  }
7598
7994
  }), h(InterruptableIntervalFitView, {
7599
7995
  "attrs": {
7996
+ "immediate": true,
7600
7997
  "interval": AUTO_FIT_VIEW_INTERVAL,
7601
7998
  "registerOverlay": registerOverlay
7602
7999
  }
@@ -7668,7 +8065,8 @@ const SectionConfirmed = defineSetup(function SectionConfirmed2(props) {
7668
8065
  }
7669
8066
  }), h(FitViewOnce, {
7670
8067
  "attrs": {
7671
- "registerOverlay": registerOverlay
8068
+ "registerOverlay": registerOverlay,
8069
+ "immediate": true
7672
8070
  }
7673
8071
  }), h(InterruptableIntervalFitView, {
7674
8072
  "attrs": {
@@ -7682,7 +8080,10 @@ const SectionDriverStartService = defineSetup(function SectionDriverStartService
7682
8080
  const {
7683
8081
  registerOverlay
7684
8082
  } = props;
7685
- const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
8083
+ const fittableRegistryOverlay = createFittableRegisterOverlay({
8084
+ registerOverlay,
8085
+ immediate: true
8086
+ });
7686
8087
  const {
7687
8088
  language
7688
8089
  } = useMapSupplier();
@@ -7774,7 +8175,8 @@ const SectionDriverStartService = defineSetup(function SectionDriverStartService
7774
8175
  }
7775
8176
  }), h(FitViewOnce, {
7776
8177
  "attrs": {
7777
- "registerOverlay": registerOverlay
8178
+ "registerOverlay": registerOverlay,
8179
+ "immediate": true
7778
8180
  }
7779
8181
  }), h(InterruptableIntervalFitView, {
7780
8182
  "attrs": {
@@ -7861,7 +8263,8 @@ const SectionBookDispatched = defineSetup(function SectionBookDispatched2(props)
7861
8263
  }
7862
8264
  }), h(FitViewOnce, {
7863
8265
  "attrs": {
7864
- "registerOverlay": registerOverlay
8266
+ "registerOverlay": registerOverlay,
8267
+ "immediate": true
7865
8268
  }
7866
8269
  }), h(InterruptableIntervalFitView, {
7867
8270
  "attrs": {
@@ -7875,7 +8278,10 @@ const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
7875
8278
  const {
7876
8279
  registerOverlay
7877
8280
  } = props;
7878
- const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
8281
+ const fittableRegistryOverlay = createFittableRegisterOverlay({
8282
+ registerOverlay,
8283
+ immediate: true
8284
+ });
7879
8285
  const {
7880
8286
  language
7881
8287
  } = useMapSupplier();
@@ -7934,7 +8340,8 @@ const SectionDriverArrived = defineSetup(function SectionDriverArrived2(props) {
7934
8340
  }
7935
8341
  }), h(FitViewOnce, {
7936
8342
  "attrs": {
7937
- "registerOverlay": registerOverlay
8343
+ "registerOverlay": registerOverlay,
8344
+ "immediate": true
7938
8345
  }
7939
8346
  }), h(InterruptableIntervalFitView, {
7940
8347
  "attrs": {
@@ -7948,7 +8355,10 @@ const SectionInService = defineSetup(function SectionInService2(props) {
7948
8355
  const {
7949
8356
  registerOverlay
7950
8357
  } = props;
7951
- const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
8358
+ const fittableRegistryOverlay = createFittableRegisterOverlay({
8359
+ registerOverlay,
8360
+ immediate: true
8361
+ });
7952
8362
  return () => {
7953
8363
  const {
7954
8364
  to: toPlace,
@@ -8018,7 +8428,8 @@ const SectionInService = defineSetup(function SectionInService2(props) {
8018
8428
  }
8019
8429
  }), h(FitViewOnce, {
8020
8430
  "attrs": {
8021
- "registerOverlay": registerOverlay
8431
+ "registerOverlay": registerOverlay,
8432
+ "immediate": true
8022
8433
  }
8023
8434
  }), h(InterruptableIntervalFitView, {
8024
8435
  "attrs": {
@@ -8068,10 +8479,12 @@ const SectionCanceled = defineSetup(function SectionCanceled2(props) {
8068
8479
  }
8069
8480
  }), h(FitViewOnce, {
8070
8481
  "attrs": {
8071
- "registerOverlay": registerOverlay
8482
+ "registerOverlay": registerOverlay,
8483
+ "immediate": true
8072
8484
  }
8073
8485
  }), h(InterruptableIntervalFitView, {
8074
8486
  "attrs": {
8487
+ "immediate": true,
8075
8488
  "interval": AUTO_FIT_VIEW_INTERVAL,
8076
8489
  "registerOverlay": registerOverlay
8077
8490
  }
@@ -8131,11 +8544,13 @@ const SectionEndService = defineSetup(function SectionEndService2(props) {
8131
8544
  }
8132
8545
  }), h(FitViewOnce, {
8133
8546
  "attrs": {
8134
- "registerOverlay": registerOverlay
8547
+ "registerOverlay": registerOverlay,
8548
+ "immediate": true
8135
8549
  }
8136
8550
  }), h(InterruptableIntervalFitView, {
8137
8551
  "attrs": {
8138
8552
  "interval": AUTO_FIT_VIEW_INTERVAL,
8553
+ "immediate": true,
8139
8554
  "registerOverlay": registerOverlay
8140
8555
  }
8141
8556
  })]);
@@ -8153,7 +8568,7 @@ const BusinessTaxiEndMap = defineSetup(function BusinessTaxiEndMap2(props) {
8153
8568
  autoFitTimeout: 5e3,
8154
8569
  padding: [19, 36, 19, 26]
8155
8570
  });
8156
- const deferedSetFitView = pipeDefer(registerFitVeiw.setFitView);
8571
+ const deferedSetFitView = pipeDefer(() => registerFitVeiw.setFitView(true));
8157
8572
  return () => {
8158
8573
  const {
8159
8574
  from: inputFrom,
@@ -8192,7 +8607,7 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
8192
8607
  renderStartSerivceTitle,
8193
8608
  renderInServiceTitle
8194
8609
  } = props;
8195
- const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
8610
+ const deferedSetFitView = pipeDefer(() => registerOverlay.setFitView(true));
8196
8611
  const {
8197
8612
  setMap,
8198
8613
  mapElementRef
@@ -8363,19 +8778,17 @@ const useBusinessRecomendPlaceMap = () => {
8363
8778
  displayName: ""
8364
8779
  });
8365
8780
  const placeCandidates = ref([]);
8781
+ const geoPositionRef = ref();
8366
8782
  const { apiMapDistance } = useMapGeometry();
8367
8783
  const { inChina } = useMapInChina();
8368
8784
  const panToGeoPositionByRecomend = (value) => mapContext.panToGeoPositionByRecomend(value);
8369
- const setCenterPlaceDisplayNameOnce = (value) => mapContext.setCenterPlaceDisplayNameOnce(value);
8370
8785
  const setCenterPlaceByUserSpecified = (value) => mapContext.setCenterPlaceByUserSpecified(value);
8371
8786
  const setCenterPlaceByUserSpecifiedInZone = (value) => mapContext.setCenterPlaceByUserSpecifiedInZone(value);
8372
8787
  const mapContext = {
8788
+ geoPositionRef,
8373
8789
  panToGeoPositionByRecomend: () => {
8374
8790
  throw new Error("MyError: panToGeoPositionByRecomend used before assigned");
8375
8791
  },
8376
- setCenterPlaceDisplayNameOnce: () => {
8377
- throw new Error("MyError: setCenterPlaceDisplayName used before assigned");
8378
- },
8379
8792
  setCenterPlaceByUserSpecified: () => {
8380
8793
  throw new Error("MyError: setCenterPlaceByRecomand used before assigned");
8381
8794
  },
@@ -8393,8 +8806,8 @@ const useBusinessRecomendPlaceMap = () => {
8393
8806
  mapContext,
8394
8807
  centerPlace,
8395
8808
  placeCandidates,
8809
+ geoPosition: readonly(geoPositionRef),
8396
8810
  panToGeoPositionByRecomend,
8397
- setCenterPlaceDisplayNameOnce,
8398
8811
  setCenterPlaceByUserSpecified,
8399
8812
  setCenterPlaceByUserSpecifiedInZone,
8400
8813
  apiMapDistance,