tg-map-vue3 3.1.2 → 3.1.4
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/src/components/index.d.ts +2 -0
- package/dist/src/utils/spherical-utils.d.ts +20 -0
- package/dist/tg-map.js +1031 -995
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +4 -4
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +7 -2
|
@@ -27,6 +27,7 @@ export * from '../map/lat-lng';
|
|
|
27
27
|
export * from '../map/map/map';
|
|
28
28
|
export * from '../map/map-factory';
|
|
29
29
|
export * from '../map/types';
|
|
30
|
+
export { type Tg } from '../map/event';
|
|
30
31
|
export * from '../map/map/overlay/icon';
|
|
31
32
|
export * from '../map/map/overlay/marker';
|
|
32
33
|
export * from '../map/map/overlay/circle';
|
|
@@ -43,6 +44,7 @@ export * from '../map/map/controls/zoom.control';
|
|
|
43
44
|
export * from '../utils/utils';
|
|
44
45
|
export * from '../utils/vue-utils';
|
|
45
46
|
export * from '../utils/mapped-types';
|
|
47
|
+
export * from '../utils/spherical-utils';
|
|
46
48
|
export { Objects } from '../utils/objects';
|
|
47
49
|
export * from '../utils/arrays';
|
|
48
50
|
export * from '../utils/strings';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { LatLngLiteral } from '../components';
|
|
2
|
+
/**
|
|
3
|
+
* 球面两点之间距离(米)
|
|
4
|
+
* @param p1
|
|
5
|
+
* @param p2
|
|
6
|
+
*/
|
|
7
|
+
declare function getDistance(p1: LatLngLiteral, p2: LatLngLiteral): number;
|
|
8
|
+
/**
|
|
9
|
+
* 已知一点经纬度,方位角,距离求另一点
|
|
10
|
+
* @param pt 点
|
|
11
|
+
* @param angle 角度
|
|
12
|
+
* @param dist 距离
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDestination(pt: LatLngLiteral, angle: number, dist: number): LatLngLiteral;
|
|
15
|
+
/** 球面工具 */
|
|
16
|
+
export declare const SphericalUtils: {
|
|
17
|
+
getDistance: typeof getDistance;
|
|
18
|
+
getDestination: typeof getDestination;
|
|
19
|
+
};
|
|
20
|
+
export {};
|