@heycar/heycars-map 0.2.2 → 0.2.3

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 (32) hide show
  1. package/dist/api/geometry.d.ts +3 -3
  2. package/dist/business-components/PassengerCircle/PassengerCircle.css.d.ts +14 -1
  3. package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +1 -0
  4. package/dist/business-components/PlaceCircle/PlaceCircle.css.d.ts +8 -1
  5. package/dist/business-components/PlaceCircle/PlaceCircle.d.ts +1 -0
  6. package/dist/hooks/useDrivingRoute.d.ts +12 -5
  7. package/dist/hooks/useGeoLocation.d.ts +1 -1
  8. package/dist/hooks/useMapGeometry.d.ts +10 -0
  9. package/dist/index.cjs +45 -45
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +929 -825
  12. package/dist/style.css +1 -1
  13. package/dist/types/interface.d.ts +5 -0
  14. package/package.json +1 -1
  15. package/src/api/geometry.ts +3 -4
  16. package/src/business-components/DrivingRoute/DrivingRoute.tsx +5 -5
  17. package/src/business-components/PassengerCircle/PassengerCircle.css.ts +19 -6
  18. package/src/business-components/PassengerCircle/PassengerCircle.tsx +14 -8
  19. package/src/business-components/PlaceCircle/PlaceCircle.css.ts +14 -4
  20. package/src/business-components/PlaceCircle/PlaceCircle.tsx +30 -24
  21. package/src/business-components/WalkingLine/WalkingLine.tsx +6 -2
  22. package/src/business-components/WalkingRoute/WalkingRoute.tsx +2 -8
  23. package/src/components/Demo/HeycarDemo.tsx +20 -8
  24. package/src/hooks/useDrivingRoute.ts +57 -25
  25. package/src/hooks/useGeoLocation.ts +2 -2
  26. package/src/hooks/useMapGeometry.ts +27 -0
  27. package/src/hooks/useMapLoader.ts +1 -1
  28. package/src/hooks/useWalkingRoute.ts +24 -11
  29. package/src/index.ts +1 -0
  30. package/src/types/amap/plugin.d.ts +1 -1
  31. package/src/types/interface.ts +6 -0
  32. package/todo.md +10 -5
@@ -7,7 +7,7 @@ declare global {
7
7
  | "PlaceSearch"
8
8
  | "AutoComplete"
9
9
  | "Driving"
10
- | "Walker"
10
+ | "Walking"
11
11
  | "Transfer"
12
12
  | "Riding"
13
13
  | "Truck"
@@ -28,3 +28,9 @@ export interface RegisterOverlay<T> {
28
28
  add: (overlay: T) => void;
29
29
  remove: (overlay: T) => void;
30
30
  }
31
+
32
+ export interface Route {
33
+ path: Point[];
34
+ distance: number;
35
+ duration: number;
36
+ }
package/todo.md CHANGED
@@ -1,13 +1,18 @@
1
1
  https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-component-like-airbnb-in-nextjs
2
2
 
3
- 0. place [0,0] 不应该查询 推荐地址
4
- 1. map loading place 多次 【0,0】
5
3
  2. Google 地址名称太长
6
4
  3. 中心点 drag 期间位置
7
5
  4. place 需要包含 autocomplete 查询需要的信息
8
6
  5. 高德地图加载期间出现大量的请求
9
7
  6. google/高德 坐标系转化
10
- 7. 车辆行驶 fitview
8
+ 7. click 事件
11
9
 
12
- 8. 缺用户定位
13
- 9. 当用户外部进入,url 传入的地址,需要地图支持
10
+ ---
11
+
12
+ 1. 需要计算用户与上车点的预估时间 导出
13
+ 2. 全程时间与距离导出
14
+ 3. 司机接单页起点名称怎么显示 ?
15
+ 4. passenger 超过 10 公里 fitview 不考虑怎么设计
16
+ 5. home 页面用户 出发点与终点小于 200 米,需要提示,需要导出接口
17
+ 6. walkingRoute 显示报错
18
+ 7. 需要一个手段让 fitview 初始化起作用