@heycar/heycars-map 0.3.16 → 0.3.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @heycar/heycars-map
2
2
 
3
+ ## 0.3.18
4
+
5
+ ### Patch Changes
6
+
7
+ - add recommend place function
8
+
9
+ ## 0.3.17
10
+
11
+ ### Patch Changes
12
+
13
+ - fix recommend place
14
+
3
15
  ## 0.3.16
4
16
 
5
17
  ### Patch Changes
@@ -9,6 +9,7 @@ export interface UseMapRecomendPlaceProps<C = Record<string, any>> {
9
9
  onChangeCity?: UseMapPlaceProps["onChangeCity"];
10
10
  onChangePlace?: UseMapPlaceProps["onChange"];
11
11
  onChange?: (place: Place) => any;
12
+ isSearchRecommendPlace: Ref<boolean>;
12
13
  }
13
14
  export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>) => {
14
15
  recomendPlace: {
@@ -1,9 +1,12 @@
1
+ import { Ref } from "vue-demi";
1
2
  import type { Place, Point } from "../types/interface";
2
3
  export interface BusinessRecomendPlaceContext {
3
4
  panToGeoPositionByRecomend: (value: Point) => void;
4
5
  setCenterPlaceByUserSpecified: (value: Place) => void;
5
6
  onChangeCenterPlace: (value: Place) => void;
6
7
  onChangeRecomendPlaces: (value: Place[]) => void;
8
+ setIsSearchRecommendPlace: (isSearchRecommendPlace: boolean) => void;
9
+ isSearchRecommendPlace: Ref<boolean>;
7
10
  }
8
11
  export declare const useBusinessRecomendPlaceMap: () => {
9
12
  mapContext: BusinessRecomendPlaceContext;
@@ -15,7 +18,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
15
18
  cityParentName?: string | undefined;
16
19
  countryName?: string | undefined;
17
20
  };
18
- placeCandidates: import("vue-demi").Ref<{
21
+ placeCandidates: Ref<{
19
22
  lng: number;
20
23
  lat: number;
21
24
  name: string;
@@ -23,6 +26,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
23
26
  cityParentName?: string | undefined;
24
27
  countryName?: string | undefined;
25
28
  }[]>;
29
+ isSearchRecommendPlace: Ref<boolean>;
26
30
  panToGeoPositionByRecomend: (value: Point) => void;
27
31
  setCenterPlaceByUserSpecified: (value: Place) => void;
28
32
  apiMapDistance: (from: Point, to: Point) => number | undefined;