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
+4
View File
@@ -8,7 +8,9 @@ declare namespace AMap {
setCenter(center: [number, number]): void
setZoom(zoom: number): void
setPitch(pitch: number): void
getPitch(): number
setRotation(rotation: number): void
getRotation(): number
on(event: string, callback: (...args: unknown[]) => void): void
off(event: string, callback: (...args: unknown[]) => void): void
getCenter(): { lng: number; lat: number }
@@ -28,6 +30,8 @@ declare namespace AMap {
mapStyle?: string
features?: string[]
layers?: unknown[]
skyColor?: string
maxPitch?: number
resizeEnable?: boolean
dragEnable?: boolean
zoomEnable?: boolean