@heycar/heycars-map 0.2.5 → 0.2.7

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 (44) hide show
  1. package/README.md +1 -0
  2. package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +12 -0
  3. package/dist/business-components/BusinessQuotingMap/index.d.ts +1 -0
  4. package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +4 -3
  5. package/dist/business-components/FitView/FitView.d.ts +3 -1
  6. package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +18309 -4
  7. package/dist/business-components/TaxiCar/TaxiCar.d.ts +18309 -4
  8. package/dist/components/Demo/DemoBusinessQuoting.d.ts +1 -0
  9. package/dist/hooks/useMap.d.ts +4 -0
  10. package/dist/hooks/useMapAutoComplete.d.ts +3 -0
  11. package/dist/hooks/useMapPlace.d.ts +3 -0
  12. package/dist/hooks/useMapRecomendPlace.d.ts +6 -0
  13. package/dist/hooks/useOverlay.d.ts +1 -0
  14. package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -0
  15. package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +2 -0
  16. package/dist/hooks-business/useBusinessQuotingMap.d.ts +2049 -0
  17. package/dist/hooks-business/useBusinessTaxiServiceMap.d.ts +2049 -0
  18. package/dist/index.cjs +51 -51
  19. package/dist/index.d.ts +3 -1
  20. package/dist/index.js +1460 -1276
  21. package/dist/style.css +1 -1
  22. package/dist/types/interface.d.ts +2 -0
  23. package/package.json +1 -1
  24. package/src/App.tsx +4 -3
  25. package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +49 -0
  26. package/src/business-components/BusinessQuotingMap/index.ts +1 -0
  27. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +159 -89
  28. package/src/business-components/FitView/FitView.tsx +10 -2
  29. package/src/business-components/PassengerCircle/PassengerCircle.tsx +26 -8
  30. package/src/business-components/TaxiCar/TaxiCar.tsx +18 -6
  31. package/src/components/Demo/DemoBusinessQuoting.tsx +38 -0
  32. package/src/components/Demo/DemoBusinessTaxiService.tsx +5 -1
  33. package/src/hooks/useGeoLocation.ts +3 -3
  34. package/src/hooks/useMap.ts +15 -1
  35. package/src/hooks/useMapFitView.ts +18 -16
  36. package/src/hooks/useOverlay.ts +1 -0
  37. package/src/hooks/useWalkingRoute.ts +0 -1
  38. package/src/hooks-business/useBusinessMapRecomendPlace.ts +1 -0
  39. package/src/hooks-business/useBusinessQuotingMap.ts +11 -0
  40. package/src/hooks-business/useBusinessTaxiServiceMap.ts +12 -0
  41. package/src/index.ts +3 -1
  42. package/src/types/interface.ts +2 -0
  43. package/dist/hooks-business/useBusinessMapFitView.d.ts +0 -2291
  44. package/src/hooks-business/useBusinessMapFitView.ts +0 -6
@@ -0,0 +1 @@
1
+ export declare const DemoBusinessQuoting: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<unknown>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<unknown, Required<unknown>>, never, unknown, {}>;
@@ -799,3 +799,7 @@ export declare const useMap: () => MapShallowRef<{
799
799
  getEvents(): Record<string, any[]>;
800
800
  } | google.maps.Map>;
801
801
  export declare const provideMap: (mapRef: MapShallowRef) => void;
802
+ export interface MapMountedProps {
803
+ onMapMounted?: () => any;
804
+ }
805
+ export declare const onMapMounted: (callback: (...args: any) => any) => void;
@@ -12,6 +12,7 @@ export declare const useAmapAutoComplete: (props: UseMapAutoCompleteProps) => {
12
12
  lat: number;
13
13
  name: string;
14
14
  cityName?: string | undefined;
15
+ cityId?: string | undefined;
15
16
  }[]>;
16
17
  };
17
18
  export declare const useGmapAutoComplete: (props: UseMapAutoCompleteProps) => {
@@ -24,6 +25,7 @@ export declare const useGmapAutoComplete: (props: UseMapAutoCompleteProps) => {
24
25
  lat: number;
25
26
  name: string;
26
27
  cityName?: string | undefined;
28
+ cityId?: string | undefined;
27
29
  }[]>;
28
30
  };
29
31
  export declare const useMapAutoComplete: (props: UseMapAutoCompleteProps) => {
@@ -36,5 +38,6 @@ export declare const useMapAutoComplete: (props: UseMapAutoCompleteProps) => {
36
38
  lat: number;
37
39
  name: string;
38
40
  cityName?: string | undefined;
41
+ cityId?: string | undefined;
39
42
  }[]>;
40
43
  };
@@ -10,6 +10,7 @@ export declare const useAmapPlace: (props: UseMapPlaceProps) => {
10
10
  lat: number;
11
11
  name: string;
12
12
  cityName?: string | undefined;
13
+ cityId?: string | undefined;
13
14
  };
14
15
  updatePlace: () => void;
15
16
  };
@@ -19,6 +20,7 @@ export declare const useGmapPlace: (props: UseMapPlaceProps) => {
19
20
  lat: number;
20
21
  name: string;
21
22
  cityName?: string | undefined;
23
+ cityId?: string | undefined;
22
24
  };
23
25
  updatePlace: () => void;
24
26
  };
@@ -28,6 +30,7 @@ export declare const useMapPlace: (props: UseMapPlaceProps) => {
28
30
  lat: number;
29
31
  name: string;
30
32
  cityName?: string | undefined;
33
+ cityId?: string | undefined;
31
34
  };
32
35
  updatePlace: () => void;
33
36
  };
@@ -15,12 +15,14 @@ export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
15
15
  lat: number;
16
16
  name: string;
17
17
  cityName?: string | undefined;
18
+ cityId?: string | undefined;
18
19
  };
19
20
  placeCandidates: Ref<{
20
21
  lng: number;
21
22
  lat: number;
22
23
  name: string;
23
24
  cityName?: string | undefined;
25
+ cityId?: string | undefined;
24
26
  }[]>;
25
27
  updateRecomandPlace: () => void;
26
28
  updatePlace: () => void;
@@ -31,12 +33,14 @@ export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
31
33
  lat: number;
32
34
  name: string;
33
35
  cityName?: string | undefined;
36
+ cityId?: string | undefined;
34
37
  };
35
38
  placeCandidates: Ref<{
36
39
  lng: number;
37
40
  lat: number;
38
41
  name: string;
39
42
  cityName?: string | undefined;
43
+ cityId?: string | undefined;
40
44
  }[]>;
41
45
  updateRecomandPlace: () => void;
42
46
  updatePlace: () => void;
@@ -47,12 +51,14 @@ export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>
47
51
  lat: number;
48
52
  name: string;
49
53
  cityName?: string | undefined;
54
+ cityId?: string | undefined;
50
55
  };
51
56
  placeCandidates: Ref<{
52
57
  lng: number;
53
58
  lat: number;
54
59
  name: string;
55
60
  cityName?: string | undefined;
61
+ cityId?: string | undefined;
56
62
  }[]>;
57
63
  updateRecomandPlace: () => void;
58
64
  updatePlace: () => void;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="google.maps" />
2
2
  import { ShallowRef } from "vue-demi";
3
3
  import type { RegisterOverlay } from "../types/interface";
4
+ export type MROP = MapRegisterOverlayProps<AmapOverlay> | MapRegisterOverlayProps<GmapOverlay>;
4
5
  export interface MapRegisterOverlayProps<T> {
5
6
  registerOverlay?: RegisterOverlay<T>;
6
7
  }
@@ -10,6 +10,7 @@ export declare const useBusinessMapAutoComplete: (props: UseBusinessMapAutoCompl
10
10
  lat: number;
11
11
  name: string;
12
12
  cityName?: string | undefined;
13
+ cityId?: string | undefined;
13
14
  }[]>;
14
15
  setKeyword: (value: string) => void;
15
16
  setCity: (value: import("..").City) => void;
@@ -39,6 +39,7 @@ export declare const useBusinessMapRecomendPlace: (props: UseBusinessMapRecomend
39
39
  lat: number;
40
40
  name: string;
41
41
  cityName?: string | undefined;
42
+ cityId?: string | undefined;
42
43
  };
43
44
  centerPoint: import("vue-demi").ComputedRef<Point>;
44
45
  placeCandidates: import("vue-demi").Ref<{
@@ -46,6 +47,7 @@ export declare const useBusinessMapRecomendPlace: (props: UseBusinessMapRecomend
46
47
  lat: number;
47
48
  name: string;
48
49
  cityName?: string | undefined;
50
+ cityId?: string | undefined;
49
51
  }[]>;
50
52
  setCenterPlaceByRecomand: (point: Point) => void;
51
53
  setCenterByPlace: (place: Place) => void;