feat(map-settings): 新增地图设置面板,支持底图偏好与离线瓦片下载 共享层新增 map_settings 模块,定义 Bounds、Region、Preferences 和 DownloadRequest 数据结构及验证逻辑,单次下载上限 20000 张瓦片。 前端新增独立地图设置视图,包含: - 底图切换(影像/路网)与默认定位点配置 - 地图选点、框选下载范围交互 - 常用区域保存与离线下载任务管理 实时地图适配器改为从 Preferences 读取初始中心点和缩放级别, 使设置面板与工作台地图共享视图状态。 同时微调目标列表行高与 footer 布局,在紧凑模式下隐藏黑名单提示。 ```
16 lines
799 B
PowerShell
16 lines
799 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$ridTools = 'D:/Rust_Contact/util/tools/rid-map-downloader/0.1.0'
|
|
$env:GOCACHE = 'D:/Rust_Contact/util/tools/go-cache'
|
|
$env:GOMODCACHE = 'D:/Rust_Contact/util/tools/go-modules'
|
|
New-Item -ItemType Directory -Force $ridTools | Out-Null
|
|
Push-Location (Join-Path $PSScriptRoot 'map-downloader')
|
|
try {
|
|
go test ./...
|
|
if ($LASTEXITCODE -ne 0) { throw 'Go map downloader tests failed' }
|
|
go build -trimpath -ldflags '-s -w' -o (Join-Path $ridTools 'rid-map-downloader.exe') .
|
|
if ($LASTEXITCODE -ne 0) { throw 'Go map downloader build failed' }
|
|
Copy-Item -LiteralPath 'LICENSE-upstream.txt' -Destination $ridTools
|
|
$env:RID_MAP_DOWNLOADER = Join-Path $ridTools 'rid-map-downloader.exe'
|
|
Write-Output $env:RID_MAP_DOWNLOADER
|
|
} finally { Pop-Location }
|