feat(location): 旅行热力图 — 在照片地图上叠加拍摄密度热力层
Open
Nobody has claimed this yet.
enhancement
status: pending-review
- Dominant language
- Python
- Stars
- 739
- Forks
- 97
- Avg merge
- 10h 3m
- Merged PRs (30d)
- 82
Description
功能描述
在 LocationMap.vue 的天地图上叠加热力图(Heatmap)图层,用颜色深浅表示照片拍摄密度,对旅行密集区域(如城市中心)的视觉冲击力更强。
实现思路
- 天地图 API 自带
HeatmapOverlay,可直接使用 - 后端
get_map_markers已返回所有照片的经纬度数据,无需新增 API - 前端在
LocationMap.vue中根据当前 zoom 级别和可视区域聚合坐标,渲染热力层 - 可增加开关按钮,让用户在"标记模式"和"热力模式"之间切换
优先级
中 — 纯前端改动,数据已完备,视觉效果好
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with LocationMap.vue and inspect how the existing Tian Map markers are rendered from get_map_markers data. Check the HeatmapOverlay API and the current zoom and viewport handling, then implement the marker/heatmap switch; done means the map displays photo density by color and both modes remain usable.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100