1
0
forked from dyf/dyf-vue-ui

增加集成工具坐标系转换

This commit is contained in:
微微一笑
2025-09-11 09:49:52 +08:00
parent 589a1eafed
commit 2e54b6e85b
2 changed files with 223 additions and 0 deletions

View File

@ -316,3 +316,15 @@ export const removeClass = (ele: HTMLElement, cls: string) => {
export const isExternal = (path: string) => {
return /^(https?:|http?:|mailto:|tel:)/.test(path);
};
// 导出坐标系转换工具
export { default as coordinateTransform } from './coordinate-transform';
export type { CoordinatePoint } from './coordinate-transform';
export {
wgs84ToGcj02,
gcj02ToWgs84,
wgs84ToGcj02Point,
gcj02ToWgs84Point,
batchWgs84ToGcj02,
batchGcj02ToWgs84
} from './coordinate-transform';