@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.
- package/dist/index.cjs +506 -93
- package/dist/index.js +507 -94
- package/dist/src/Demo/DemoBusinessTaxiService.d.ts +805 -560
- package/dist/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +0 -1
- package/dist/src/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +2 -2
- package/dist/src/business-components/FitView/FitView.d.ts +9 -2
- package/dist/src/business-components/PassengerCircle/PassengerCircle.d.ts +825 -825
- package/dist/src/business-components/StartEndPoint/StartEndPoint.d.ts +825 -825
- package/dist/src/business-components/TaxiCar/TaxiCar.d.ts +825 -825
- package/dist/src/components/Amap/Amap.d.ts +8 -7
- package/dist/src/components/Amap/SafeAmap.d.ts +103 -0
- package/dist/src/components/MapProvider/MapProvider.d.ts +2 -1
- package/dist/src/hooks/useHeycarMap.d.ts +5 -1585
- package/dist/src/hooks/useMap.d.ts +4 -794
- package/dist/src/hooks/useMapAngle.d.ts +3 -3
- package/dist/src/hooks/useMapDrag.d.ts +3 -3
- package/dist/src/hooks/useMapFitView.d.ts +108 -108
- package/dist/src/hooks/useMapLngLatToVw.d.ts +3 -3
- package/dist/src/hooks/useMapRecomendPlace.d.ts +1 -0
- package/dist/src/hooks/useMapWheelZoomCenter.d.ts +3 -2
- package/dist/src/hooks/useMapZoom.d.ts +3 -2
- package/dist/src/hooks-business/useBusinessQuotingMap.d.ts +806 -561
- package/dist/src/hooks-business/useBusinessRecomendPlaceMap.d.ts +4 -3
- package/dist/src/hooks-business/useBusinessReselectPlaceMap.d.ts +1 -1
- package/dist/src/hooks-business/useBusinessTaxiServiceMap.d.ts +806 -561
- package/dist/src/index.d.ts +1 -0
- package/dist/src/types/interface.d.ts +4 -2
- package/dist/src/types/my.d.ts +21 -0
- package/dist/src/types/wx.d.ts +1 -0
- package/dist/src/utils/alipayPolyfill.d.ts +1 -0
- package/dist/src/utils/helper.d.ts +0 -1
- package/dist/src/utils/referenceCount.d.ts +8 -0
- package/package.json +1 -1
- package/todo.md +15 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
+
import "./utils/alipayPolyfill";
|
|
2
3
|
export { AbsoluteAddressBox } from "./business-components/AbsoluteAddressBox";
|
|
3
4
|
export { AddressBox } from "./business-components/AddressBox";
|
|
4
5
|
export { BusinessQuotingMap } from "./business-components/BusinessQuotingMap";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
import type { ShallowRef } from "vue-demi";
|
|
3
|
+
import type { SafeAmap } from "../components/Amap/SafeAmap";
|
|
3
4
|
export type Point = [number, number];
|
|
4
|
-
export type
|
|
5
|
+
export type AmapMap = SafeAmap;
|
|
6
|
+
export type MapShallowRef<M = AmapMap | google.maps.Map> = ShallowRef<M | undefined>;
|
|
5
7
|
export type Place = {
|
|
6
8
|
lng: number;
|
|
7
9
|
lat: number;
|
|
@@ -20,7 +22,7 @@ export interface RecommendZonePlaces {
|
|
|
20
22
|
export interface RegisterOverlay<T> {
|
|
21
23
|
add: (overlay: T) => void;
|
|
22
24
|
remove: (overlay: T) => void;
|
|
23
|
-
setFitView: () => void;
|
|
25
|
+
setFitView: (immediate?: boolean) => void;
|
|
24
26
|
}
|
|
25
27
|
export interface RouteStep {
|
|
26
28
|
path: Point[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface MyGetLocationSuccessResponse {
|
|
2
|
+
longitude: number;
|
|
3
|
+
latitude: number;
|
|
4
|
+
accuracy: number;
|
|
5
|
+
altitude: number;
|
|
6
|
+
}
|
|
7
|
+
interface MyErrorResponse {
|
|
8
|
+
error: number;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
}
|
|
11
|
+
interface MyGetLocationProps {
|
|
12
|
+
type: 0 | 1 | 2 | 3;
|
|
13
|
+
cacheTimeout: number;
|
|
14
|
+
success: (response: MyGetLocationSuccessResponse) => void;
|
|
15
|
+
fail?: (response: MyErrorResponse) => void;
|
|
16
|
+
complete?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface My {
|
|
19
|
+
getLocation: (props: MyGetLocationProps) => void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/dist/src/types/wx.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/todo.md
CHANGED
|
@@ -5,3 +5,18 @@ https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-
|
|
|
5
5
|
3. regeo 不应该阻塞 getRecommendPlace
|
|
6
6
|
4. 手机缩放导致 onPlaceChange 触发,并且 getRecommendPlace 也被调用了
|
|
7
7
|
5. 绿区内拖动问题
|
|
8
|
+
|
|
9
|
+
v3.8
|
|
10
|
+
|
|
11
|
+
- BusinessReselectPlaceMap 加一个初始化 绿区吸附的功能
|
|
12
|
+
|
|
13
|
+
### log
|
|
14
|
+
|
|
15
|
+
手机关闭位置信息 errMsg: "getLocation:gps closed"
|
|
16
|
+
手机取消微信权限 errMsg: "getLocation:fail permission"
|
|
17
|
+
|
|
18
|
+
ios
|
|
19
|
+
errMsg: "getLocation:fail"
|
|
20
|
+
|
|
21
|
+
android ALIPAY
|
|
22
|
+
code 2
|