@heycar/heycars-map 0.3.6 → 0.3.8

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 (177) hide show
  1. package/dist/business-components/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +1 -2
  2. package/dist/business-components/AddressBox/AddressBox.d.ts +1 -2
  3. package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -0
  4. package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +1 -2
  5. package/dist/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +1 -2
  6. package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +2 -3
  7. package/dist/business-components/DrivingLine/DrivingLine.d.ts +1 -2
  8. package/dist/business-components/DrivingRoute/DrivingRoute.d.ts +1 -2
  9. package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +1 -2
  10. package/dist/business-components/PickupPoints/PickupPoints.d.ts +1 -2
  11. package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +1 -2
  12. package/dist/business-components/StartEndPoint/StartEndPoint.d.ts +1 -2
  13. package/dist/business-components/TaxiCar/TaxiCar.d.ts +1 -2
  14. package/dist/business-components/WalkingLine/WalkingLine.d.ts +1 -2
  15. package/dist/business-components/WalkingRoute/WalkingRoute.d.ts +1 -2
  16. package/dist/business-components/WaveCircle/WaveCircle.d.ts +1 -2
  17. package/dist/components/Gmap/Gmap.css.d.ts +1 -0
  18. package/dist/components/MapProvider/MapProvider.d.ts +1 -2
  19. package/dist/hooks/useMapAutoComplete.d.ts +1 -2
  20. package/dist/hooks/useMapPlace.d.ts +2 -1
  21. package/dist/hooks/useMapRecomendPlace.d.ts +1 -1
  22. package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -2
  23. package/dist/index.cjs +55 -55
  24. package/dist/index.js +1923 -1999
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
  27. package/todo.md +16 -4
  28. package/dist/Demo/CityBound/SearchDemo.d.ts +0 -1
  29. package/dist/Demo/CityBound/country.d.ts +0 -5
  30. package/dist/Demo/CityBound/searchResult.d.ts +0 -8
  31. package/dist/hooks/useMapLog.d.ts +0 -5
  32. package/src/App.tsx +0 -27
  33. package/src/Demo/CityBound/SearchDemo.tsx +0 -142
  34. package/src/Demo/CityBound/country.ts +0 -4179
  35. package/src/Demo/CityBound/searchResult.ts +0 -21122
  36. package/src/Demo/Demo.css.ts +0 -6
  37. package/src/Demo/Demo.tsx +0 -97
  38. package/src/Demo/DemoBusinessQuoting.tsx +0 -18
  39. package/src/Demo/DemoBusinessRecomendPlace.tsx +0 -89
  40. package/src/Demo/DemoBusinessTaxiEnd.tsx +0 -38
  41. package/src/Demo/DemoBusinessTaxiService.tsx +0 -58
  42. package/src/Demo/sample.json +0 -793
  43. package/src/api/contants.ts +0 -3
  44. package/src/api/driving.ts +0 -87
  45. package/src/api/geocoder.ts +0 -88
  46. package/src/api/geometry.ts +0 -44
  47. package/src/api/place.ts +0 -105
  48. package/src/assets/icons/svg/address-locator.svg +0 -1
  49. package/src/assets/icons/svg/arrow-right.svg +0 -1
  50. package/src/assets/icons/svg/end-point.svg +0 -1
  51. package/src/assets/icons/svg/passenger-circle.svg +0 -1
  52. package/src/assets/icons/svg/place-circle.svg +0 -22
  53. package/src/assets/icons/svg/start-point.svg +0 -1
  54. package/src/assets/icons/svg/taxi-car.svg +0 -1
  55. package/src/assets/icons/svg/wave-circle.svg +0 -1
  56. package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.css.ts +0 -68
  57. package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.tsx +0 -50
  58. package/src/business-components/AbsoluteAddressBox/index.ts +0 -1
  59. package/src/business-components/AddressBox/AddressBox.css.ts +0 -55
  60. package/src/business-components/AddressBox/AddressBox.tsx +0 -76
  61. package/src/business-components/AddressBox/index.ts +0 -1
  62. package/src/business-components/AddressLocator/AddressLocator.css.ts +0 -7
  63. package/src/business-components/AddressLocator/AddressLocator.tsx +0 -40
  64. package/src/business-components/AddressLocator/index.ts +0 -1
  65. package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +0 -49
  66. package/src/business-components/BusinessQuotingMap/index.ts +0 -1
  67. package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +0 -200
  68. package/src/business-components/BusinessRecomendPlaceMap/index.ts +0 -1
  69. package/src/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.tsx +0 -43
  70. package/src/business-components/BusinessTaxiEndMap/index.ts +0 -1
  71. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +0 -453
  72. package/src/business-components/BusinessTaxiServiceMap/index.ts +0 -1
  73. package/src/business-components/DrivingLine/DrivingLine.css.ts +0 -10
  74. package/src/business-components/DrivingLine/DrivingLine.tsx +0 -135
  75. package/src/business-components/DrivingLine/index.ts +0 -1
  76. package/src/business-components/DrivingRoute/DrivingRoute.tsx +0 -52
  77. package/src/business-components/DrivingRoute/index.ts +0 -1
  78. package/src/business-components/FitView/FitView.tsx +0 -22
  79. package/src/business-components/FitView/index.ts +0 -1
  80. package/src/business-components/PassengerCircle/PassengerCircle.css.ts +0 -21
  81. package/src/business-components/PassengerCircle/PassengerCircle.tsx +0 -69
  82. package/src/business-components/PassengerCircle/index.ts +0 -1
  83. package/src/business-components/PickupPoints/PickupPoints.tsx +0 -38
  84. package/src/business-components/PickupPoints/index.ts +0 -1
  85. package/src/business-components/PlaceCircle/PlaceCircle.css.ts +0 -76
  86. package/src/business-components/PlaceCircle/PlaceCircle.tsx +0 -110
  87. package/src/business-components/PlaceCircle/index.ts +0 -1
  88. package/src/business-components/StartEndPoint/StartEndPoint.css.ts +0 -70
  89. package/src/business-components/StartEndPoint/StartEndPoint.tsx +0 -122
  90. package/src/business-components/StartEndPoint/index.ts +0 -1
  91. package/src/business-components/TaxiCar/TaxiCar.css.ts +0 -16
  92. package/src/business-components/TaxiCar/TaxiCar.tsx +0 -93
  93. package/src/business-components/TaxiCar/index.ts +0 -1
  94. package/src/business-components/WalkingLine/WalkingLine.tsx +0 -80
  95. package/src/business-components/WalkingLine/index.ts +0 -1
  96. package/src/business-components/WalkingRoute/WalkingRoute.tsx +0 -43
  97. package/src/business-components/WalkingRoute/index.ts +0 -1
  98. package/src/business-components/WaveCircle/WaveCircle.css.ts +0 -54
  99. package/src/business-components/WaveCircle/WaveCircle.tsx +0 -59
  100. package/src/business-components/WaveCircle/index.ts +0 -1
  101. package/src/components/Amap/Amap.css.ts +0 -5
  102. package/src/components/Amap/Amap.ts +0 -76
  103. package/src/components/Amap/index.ts +0 -1
  104. package/src/components/AmapInfoWindow/AmapInfoWindow.ts +0 -45
  105. package/src/components/AmapInfoWindow/index.ts +0 -1
  106. package/src/components/AmapLoader/AmapLoader.ts +0 -20
  107. package/src/components/AmapLoader/index.ts +0 -1
  108. package/src/components/AmapMarker/AmapMarker.ts +0 -48
  109. package/src/components/AmapMarker/index.ts +0 -1
  110. package/src/components/AmapPolygon/AmapPolygon.ts +0 -41
  111. package/src/components/AmapPolygon/index.ts +0 -1
  112. package/src/components/AmapPolyline/AmapPolyline.ts +0 -40
  113. package/src/components/AmapPolyline/index.ts +0 -1
  114. package/src/components/AmapText/AmapText.ts +0 -39
  115. package/src/components/AmapText/index.ts +0 -1
  116. package/src/components/Gmap/Gmap.css.ts +0 -5
  117. package/src/components/Gmap/Gmap.ts +0 -56
  118. package/src/components/Gmap/index.ts +0 -1
  119. package/src/components/GmapAdvancedMarkerView/GmapAdvancedMarkerView.ts +0 -63
  120. package/src/components/GmapAdvancedMarkerView/index.ts +0 -1
  121. package/src/components/GmapInfoWindow/GmapInfoWindow.ts +0 -38
  122. package/src/components/GmapInfoWindow/index.ts +0 -1
  123. package/src/components/GmapLoader/GmapLoader.ts +0 -21
  124. package/src/components/GmapLoader/index.ts +0 -1
  125. package/src/components/GmapMarker/GmapMarker.ts +0 -34
  126. package/src/components/GmapMarker/index.ts +0 -1
  127. package/src/components/GmapPolygon/GmapPolygon.ts +0 -29
  128. package/src/components/GmapPolygon/index.ts +0 -1
  129. package/src/components/GmapPolyline/GmapPolyline.ts +0 -29
  130. package/src/components/GmapPolyline/index.ts +0 -1
  131. package/src/components/MapProvider/MapProvider.tsx +0 -81
  132. package/src/components/MapProvider/index.ts +0 -1
  133. package/src/hooks/useDrivingRoute.ts +0 -106
  134. package/src/hooks/useGeoLocation.ts +0 -70
  135. package/src/hooks/useHeycarMap.ts +0 -28
  136. package/src/hooks/useMap.ts +0 -43
  137. package/src/hooks/useMapAngle.ts +0 -42
  138. package/src/hooks/useMapAutoComplete.ts +0 -130
  139. package/src/hooks/useMapCityBound.ts +0 -64
  140. package/src/hooks/useMapDrag.ts +0 -72
  141. package/src/hooks/useMapEventSource.ts +0 -20
  142. package/src/hooks/useMapFitView.ts +0 -135
  143. package/src/hooks/useMapGeometry.ts +0 -27
  144. package/src/hooks/useMapLngLatToVw.ts +0 -31
  145. package/src/hooks/useMapLoader.ts +0 -164
  146. package/src/hooks/useMapLog.ts +0 -24
  147. package/src/hooks/useMapPlace.ts +0 -130
  148. package/src/hooks/useMapRecomendPlace.ts +0 -150
  149. package/src/hooks/useMapSupplier.ts +0 -16
  150. package/src/hooks/useOverlay.ts +0 -23
  151. package/src/hooks/usePlacesLabelDirection.ts +0 -61
  152. package/src/hooks/useUdate.ts +0 -9
  153. package/src/hooks/useWaitTimer.ts +0 -25
  154. package/src/hooks/useWalkingRoute.ts +0 -87
  155. package/src/hooks-business/useBusinessMapAutoComplete.ts +0 -22
  156. package/src/hooks-business/useBusinessQuotingMap.ts +0 -11
  157. package/src/hooks-business/useBusinessRecomendPlaceMap.ts +0 -45
  158. package/src/hooks-business/useBusinessTaxiServiceMap.ts +0 -12
  159. package/src/index.ts +0 -33
  160. package/src/main.ts +0 -6
  161. package/src/style.css +0 -0
  162. package/src/types/amap/autocomplete.d.ts +0 -64
  163. package/src/types/amap/driving.d.ts +0 -170
  164. package/src/types/amap/geocoder.d.ts +0 -217
  165. package/src/types/amap/marker.ts +0 -11
  166. package/src/types/amap/place.d.ts +0 -114
  167. package/src/types/amap/plugin.d.ts +0 -27
  168. package/src/types/amap/walking.d.ts +0 -78
  169. package/src/types/global.d.ts +0 -10
  170. package/src/types/helper.ts +0 -172
  171. package/src/types/interface.ts +0 -62
  172. package/src/types/mapHelper.ts +0 -1
  173. package/src/utils/compare.ts +0 -189
  174. package/src/utils/dom.ts +0 -14
  175. package/src/utils/helper.ts +0 -5
  176. package/src/utils/transform.ts +0 -68
  177. package/src/vite-env.d.ts +0 -12
@@ -1,6 +0,0 @@
1
- import { style } from "@vanilla-extract/css";
2
-
3
- export const demo = style({
4
- width: "100vw",
5
- height: "70vh",
6
- });
package/src/Demo/Demo.tsx DELETED
@@ -1,97 +0,0 @@
1
- import { ref } from "vue-demi";
2
- import { Amap } from "../components/Amap";
3
- import { AmapInfoWindow } from "../components/AmapInfoWindow";
4
- import { AmapLoader } from "../components/AmapLoader";
5
- import { AmapMarker } from "../components/AmapMarker";
6
- import { AmapPolygon } from "../components/AmapPolygon";
7
- import { AmapPolyline } from "../components/AmapPolyline";
8
- import { Gmap } from "../components/Gmap";
9
- import { GmapInfoWindow } from "../components/GmapInfoWindow";
10
- import { GmapLoader } from "../components/GmapLoader";
11
- import { GmapMarker } from "../components/GmapMarker";
12
- import { GmapPolygon } from "../components/GmapPolygon";
13
- import { GmapPolyline } from "../components/GmapPolyline";
14
- import { defineSetup } from "../types/helper";
15
-
16
- import * as css from "./Demo.css";
17
- const gmapApiKey = import.meta.env.VITE_GMAP_API_KEY;
18
- const amapApiKey = import.meta.env.VITE_AMAP_API_KEY;
19
- const amapApiSecret = import.meta.env.VITE_AMAP_API_SECRET;
20
-
21
- export const DemoGmap = defineSetup(function DemoGmap() {
22
- const latRef = ref(0);
23
- const visibleRef = ref(false);
24
- return () => (
25
- <GmapLoader
26
- apiKey={gmapApiKey}
27
- loading={() => <div>loading</div>}
28
- fallback={() => <div>error</div>}
29
- libraries={["places"]}
30
- >
31
- <div>gmap {latRef.value}</div>
32
- <Gmap class={css.demo} center={{ lat: 0, lng: 0 }} zoom={3}>
33
- <GmapMarker position={{ lat: 0, lng: 0 }} label="hello" />
34
- <GmapPolyline
35
- path={[
36
- { lng: -5, lat: -5 },
37
- { lng: 3, lat: 0 },
38
- { lng: 5, lat: 5 },
39
- ]}
40
- />
41
- <GmapPolygon
42
- paths={[
43
- { lng: -10, lat: -10 },
44
- { lng: -20, lat: -5 },
45
- { lng: -15, lat: -10 },
46
- { lng: -20, lat: -20 },
47
- { lng: -10, lat: -10 },
48
- ]}
49
- />
50
- <GmapInfoWindow
51
- visible={visibleRef.value}
52
- content={"info window content"}
53
- position={{ lng: 0, lat: 0 }}
54
- />
55
- </Gmap>
56
- </GmapLoader>
57
- );
58
- });
59
-
60
- export const DemoAmap = defineSetup(function DemoAmap() {
61
- const latRef = ref(0);
62
- return () => (
63
- <AmapLoader
64
- apiKey={amapApiKey}
65
- apiSecret={amapApiSecret}
66
- loading={() => <div>loading</div>}
67
- fallback={() => <div>error</div>}
68
- plugins={["AMap.AutoComplete"]}
69
- >
70
- <div>amap {latRef.value}</div>
71
- <Amap class={css.demo} center={[latRef.value, 0]} zoom={3}>
72
- <AmapMarker
73
- position={[0, 0]}
74
- label={{ content: `haha ${latRef.value}`, offset: [0, 0], direction: "" }}
75
- />
76
- <AmapPolyline
77
- path={[
78
- [-5, -5],
79
- [3, latRef.value],
80
- [5, 5],
81
- ]}
82
- />
83
- <AmapPolygon
84
- path={[
85
- [-10, -10],
86
- [-10, latRef.value],
87
- [-20, -5],
88
- [-15, -10],
89
- [-20, -20],
90
- [-10, -10],
91
- ]}
92
- />
93
- <AmapInfoWindow visible content={"info window content"} position={[0, 0]} />
94
- </Amap>
95
- </AmapLoader>
96
- );
97
- });
@@ -1,18 +0,0 @@
1
- import { BusinessQuotingMap } from "../business-components/BusinessQuotingMap";
2
- import { useBusinessQuotingMap } from "../hooks-business/useBusinessQuotingMap";
3
- import { defineSetup } from "../types/helper";
4
- import * as css from "./Demo.css";
5
-
6
- export const DemoBusinessQuoting = defineSetup(function DemoBusinessQuoting() {
7
- const { setMap, registerFitVeiw } = useBusinessQuotingMap();
8
- return () => (
9
- <BusinessQuotingMap
10
- class={css.demo}
11
- from={{ lng: 121.4, lat: 31.2, name: "from place name" }}
12
- to={{ lng: 121.5, lat: 31.4, name: "to place name" }}
13
- renderDescription={({ distance, duration }) => `全程 *${distance}公里* 约行驶 *${duration}*`}
14
- mapRef={setMap}
15
- registerOverlay={registerFitVeiw}
16
- />
17
- );
18
- });
@@ -1,89 +0,0 @@
1
- import { computed, reactive } from "vue-demi";
2
- import {
3
- BusinessRecomendPlaceMap,
4
- BusinessRecomendPlaceMapProps,
5
- } from "../business-components/BusinessRecomendPlaceMap";
6
- import { useBusinessMapAutoComplete } from "../hooks-business/useBusinessMapAutoComplete";
7
- import { useBusinessRecomendPlaceMap } from "../hooks-business/useBusinessRecomendPlaceMap";
8
- import { defineSetup } from "../types/helper";
9
- import type { Region } from "../types/interface";
10
- import * as css from "./Demo.css";
11
-
12
- const SomeAutoComplete = defineSetup(function SomeAutoComplete(props: { cityName: string }) {
13
- const { autoCompletePlaces, handleKeywordInput, setCity } = useBusinessMapAutoComplete({
14
- cityNameRef: computed(() => props.cityName),
15
- log: true,
16
- });
17
- (window as any).setCity = setCity;
18
- return () => {
19
- const list = autoCompletePlaces.value.map((place) => (
20
- <div>
21
- {place.lng} | {place.lat} | {place.name} | {place.description} | {place.distance}
22
- </div>
23
- ));
24
- return (
25
- <div>
26
- <div>
27
- <input onInput={handleKeywordInput} />
28
- </div>
29
- {list}
30
- </div>
31
- );
32
- };
33
- });
34
-
35
- export const DemoBusinessRecomendPlace = defineSetup(function DemoBusinessRecomendPlace() {
36
- const city = reactive<Region>({ name: "" });
37
- const cityParent = reactive<Region>({ name: "" });
38
- const getRecomendPlace: BusinessRecomendPlaceMapProps["getRecomendPlace"] = async (
39
- place,
40
- context
41
- ) => {
42
- const { lat, lng } = place;
43
- console.log("getRecomendPlace context?.source = ", context?.source);
44
- return [
45
- {
46
- lat: lat + 0.1001,
47
- lng: lng + 0.0001,
48
- name: "Blessing Koko Dayc are Blessing Koko which is a very long name",
49
- },
50
- { lat: lat + 0.0002, lng: lng + 0.0003, name: "place name 2" },
51
- { lat: lat + 0.0003, lng: lng + 0.0002, name: "place name 3" },
52
- ];
53
- };
54
- const {
55
- centerPlace,
56
- placeCandidates,
57
- setCenterPlaceByUserSpecified,
58
- mapContext,
59
- panToGeoPositionByRecomend,
60
- } = useBusinessRecomendPlaceMap();
61
- (window as any).setCenterPlaceByUserSpecified = setCenterPlaceByUserSpecified;
62
- (window as any).panToGeoPositionByRecomend = panToGeoPositionByRecomend;
63
- return () => {
64
- return (
65
- <div>
66
- placeCandidates: {placeCandidates} <br />
67
- centerPlace: {centerPlace.lng} | {centerPlace.lat} | {centerPlace.name} | {city.name} |{" "}
68
- {cityParent.name} <br />
69
- <SomeAutoComplete cityName="Shinjuku-ku"></SomeAutoComplete>
70
- <BusinessRecomendPlaceMap
71
- class={css.demo}
72
- geoLoadingTitle={"正在读取GPS位置信息..."}
73
- unavailableTitle={"当前区域暂未开通服务"}
74
- noRecomendDescription={""}
75
- recomendDescription={"最佳上车地点"}
76
- geoDefaultPosition={[139.728287, 35.661007]}
77
- getRecomendPlace={getRecomendPlace}
78
- mapContext={mapContext}
79
- onGeoError={(e) => console.log("onGeoError e = ", e)}
80
- onClickLocator={() => alert("hi")}
81
- onChangeCity={({ cityName, cityParentName }) => {
82
- city.name = cityName ?? "";
83
- cityParent.name = cityParentName ?? "";
84
- }}
85
- />
86
- </div>
87
- );
88
- };
89
- });
@@ -1,38 +0,0 @@
1
- import { defineComponent } from "vue";
2
- import { BusinessTaxiEndMap } from "../business-components/BusinessTaxiEndMap";
3
- import * as css from "./Demo.css";
4
-
5
- export const DemoBusinessTaxiEnd = defineComponent({
6
- name: "DemoBusinessTaxiEnd",
7
- data() {
8
- return {
9
- from: {},
10
- to: {},
11
- };
12
- },
13
- created() {
14
- setTimeout(() => {
15
- this.from = {
16
- lng: 103.7719939,
17
- lat: 1.296648,
18
- name: "2 College Ave West, Stephen Riady Centre, Singapore 138607",
19
- };
20
- this.to = {
21
- lng: 103.781421,
22
- lat: 1.283855,
23
- name: "虎豹别墅 (Haw Par Villa)",
24
- };
25
- }, 2000);
26
- },
27
- render() {
28
- const { from, to } = this;
29
- return (
30
- <div>
31
- <div>
32
- {JSON.stringify(from)} | {JSON.stringify(to)}
33
- </div>
34
- <BusinessTaxiEndMap class={css.demo} from={from} to={to} log />
35
- </div>
36
- );
37
- },
38
- });
@@ -1,58 +0,0 @@
1
- import { defineComponent } from "vue";
2
- import { BusinessTaxiServiceMap } from "../business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap";
3
- import { useBusinessTaxiServiceMap } from "../hooks-business/useBusinessTaxiServiceMap";
4
- import type { Place, Point } from "../types/interface";
5
- import { isPlace } from "../utils/helper";
6
- import * as css from "./Demo.css";
7
-
8
- export const DemoBusinessTaxiService = defineComponent({
9
- setup() {
10
- const { setMap, registerFitVeiw } = useBusinessTaxiServiceMap();
11
- return { setMap, registerFitVeiw };
12
- },
13
- data() {
14
- return {
15
- from: {} as Partial<Place>,
16
- to: {} as Partial<Place>,
17
- };
18
- },
19
- created() {
20
- setTimeout(() => {
21
- this.from = { lng: 121.4, lat: 31.2, name: "from place name" };
22
- this.to = { lng: 121.5, lat: 31.4, name: "to place name" };
23
- }, 1000);
24
- },
25
- methods: {
26
- getDriverPosition() {
27
- return Promise.resolve([121.42, 31.25] as Point);
28
- },
29
- },
30
- render() {
31
- const { setMap, getDriverPosition, registerFitVeiw, from, to } = this;
32
- const isReady = isPlace(from) && isPlace(to);
33
- if (!isReady) return null;
34
- return (
35
- <BusinessTaxiServiceMap
36
- class={css.demo}
37
- from={from}
38
- to={to}
39
- driverStatus="completed"
40
- bookDispatchingTitle="2月14日 11:00 用车"
41
- bookDispatchedTitle="司机位置将在临近出发时间展示"
42
- dispatchingTitle="正在为您搜索附近司机"
43
- driverArrivedTitle="司机已等待 00:35"
44
- renderStartSerivceTitle={({ distance, duration }) =>
45
- `距你*${distance}*公里, *${duration}*分钟`
46
- }
47
- renderInServiceTitle={({ distance, duration }) =>
48
- `距离终点${distance}公里, 预计${duration}分钟`
49
- }
50
- getDriverPosition={getDriverPosition}
51
- interval={5000}
52
- mapRef={setMap}
53
- registerOverlay={registerFitVeiw}
54
- log
55
- />
56
- );
57
- },
58
- });