refactor: extract EncyclopediaProgressCard component and limit map pitch

- Create EncyclopediaProgressCard with dynamic progress color, reuse in
  encyclopedia and profile pages to unify styling
- Add skyColor and maxPitch to AMap 3D view to reduce empty tile area
  when tilting
- Extend AMap type declarations for skyColor, maxPitch, getPitch, getRotation
This commit is contained in:
2026-05-24 17:43:25 +08:00
parent 1e0da1fe36
commit 2a9f8d6a9c
5 changed files with 93 additions and 82 deletions
+2
View File
@@ -409,6 +409,8 @@ onMounted(async () => {
mapStyle: 'amap://styles/normal',
features: ['bg', 'road', 'building', 'point'],
resizeEnable: true,
skyColor: '#c8dce8',
maxPitch: 70,
} as AMap.MapOptions)
mapInst.addControl(new AMapLib.Scale())