tg-map-vue3 3.8.6 → 3.8.9
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 +1 -1
- package/dist/src/map/lat-lng.d.ts +0 -1
- package/dist/src/map/map/overlay/info-box.d.ts +1 -0
- package/dist/src/map/map/overlay/info-window.d.ts +1 -0
- package/dist/src/utils/baidu-utils.d.ts +14 -0
- package/dist/tg-map.js +446 -441
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +6 -6
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -50,7 +50,6 @@ export declare class LatLng {
|
|
|
50
50
|
static fromGoogle(latlng: google.maps.LatLng, coord: CoordType): LatLng;
|
|
51
51
|
static fromHere(point: H.geo.IPoint, coord: CoordType): LatLng;
|
|
52
52
|
static fromLiteral(latlng: LatLngLiteral): LatLng;
|
|
53
|
-
static fromPartialLiteral(latlng?: Partial<LatLngLiteral>): LatLng;
|
|
54
53
|
static fromLngLat(lng: number, lat: number, coord?: CoordType): LatLng;
|
|
55
54
|
static create(lat: number, lng: number, coord?: CoordType): LatLng;
|
|
56
55
|
constructor(
|
|
@@ -4,6 +4,7 @@ import type { Point } from '../../types';
|
|
|
4
4
|
import type { BaiduMap } from '../baidu-map';
|
|
5
5
|
import type { GoogleMap } from '../google-map';
|
|
6
6
|
import { type BaiduInfoBox } from './baidu-info-box';
|
|
7
|
+
import './google-info.scss';
|
|
7
8
|
import { InfoWindow } from './info-window';
|
|
8
9
|
import type { BaiduMarker, GoogleMarker, Marker } from './marker';
|
|
9
10
|
import { BaiduOverlay } from './overlay';
|
|
@@ -6,6 +6,7 @@ import type { Point } from '../../types';
|
|
|
6
6
|
import type { UnionInfoWindow } from '../../unions';
|
|
7
7
|
import type { BaiduMap } from '../baidu-map';
|
|
8
8
|
import type { GoogleMap } from '../google-map';
|
|
9
|
+
import './google-info.scss';
|
|
9
10
|
import type { BaiduMarker, GoogleMarker, Marker } from './marker';
|
|
10
11
|
/**
|
|
11
12
|
* ## InfoWindow的初始偏移, 不同实现
|
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
* @see http://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference_3_0.html#a3b0
|
|
4
4
|
*/
|
|
5
5
|
export declare function ensureBaiduV3(): void;
|
|
6
|
+
/**
|
|
7
|
+
* 尝试修复baidu内存占用会越来越大的问题
|
|
8
|
+
*
|
|
9
|
+
* 当前版本的baidu源码中, 存在如下代码:
|
|
10
|
+
* ```
|
|
11
|
+
* A.lang.qx = function(a) {
|
|
12
|
+
* var b = window[A.da]; // A.da等于'$BAIDU$'
|
|
13
|
+
* b.kT && delete b.kT[a] // kT属性不存在, 故永远无法移除成功
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* 最终会导致`$BAIDU$._instances`对象不断增长, 故我们把`$BAIDU$`对象的`kT`属性重定向到`_instances`
|
|
17
|
+
* 保证该方法能够执行成功
|
|
18
|
+
*/
|
|
19
|
+
export declare function tryFixBaiduOutOfMemory(): void;
|
|
6
20
|
export declare const BMapPoints: {
|
|
7
21
|
/** {@link BMap.Point.equals} 无效, 故需要自己写一个 */
|
|
8
22
|
equals(a: BMap.Point, b: BMap.Point): boolean;
|