@heycar/heycars-map 0.9.8-fix2 → 0.9.8-memory2

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.
@@ -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 MapShallowRef<M = AMap.Map | google.maps.Map> = ShallowRef<M | undefined>;
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 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ declare class ReferenceCount {
2
+ count: number;
3
+ log(): void;
4
+ add(): void;
5
+ remove(): void;
6
+ }
7
+ export declare const referenceCount: ReferenceCount;
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.8-fix2",
3
+ "version": "0.9.8-memory2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"
package/todo.md CHANGED
@@ -5,3 +5,14 @@ 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
+ ### log
10
+
11
+ 手机关闭位置信息 errMsg: "getLocation:gps closed"
12
+ 手机取消微信权限 errMsg: "getLocation:fail permission"
13
+
14
+ ios
15
+ errMsg: "getLocation:fail"
16
+
17
+ android ALIPAY
18
+ code 2