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:
Vendored
+4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user