feat: add map interaction and coordinate plotter tools, optimize dev config

1. 新增图上量测与拾取、坐标展点两个地图工具页面
2. 安装leaflet依赖并配置vite开发服务器允许局域网访问
3. 更新首页工具列表,新增两个工具入口
4. 优化坐标转换器默认参数和文件读取方式
5. 调整面积计算精度,删除无用的HelloWorld组件
This commit is contained in:
2026-06-08 09:37:20 +08:00
parent 8bf55b6716
commit be48495dcf
10 changed files with 1933 additions and 54 deletions

View File

@@ -276,11 +276,11 @@ const projConfig = ref({
direction: 'toPlane', // or 'toLngLat'
zoneType: 3, // 3 or 6
withZone: true,
lng: 116.397451,
lat: 39.909235,
x: 39533966.82, // Easting (Y)
y: 4419519.82, // Northing (X)
manualZone: 39
lng: 108.55972199,
lat: 22.85808956,
x: 36557444.5725, // Easting (Y)
y: 2528930.9851, // Northing (X)
manualZone: null
})
const result = ref(null)
@@ -532,7 +532,7 @@ const handleFileUpload = (e) => {
alert('文件解析失败: ' + err.message)
}
}
reader.readAsBinaryString(file)
reader.readAsArrayBuffer(file)
}
</script>