labelgrid
@ian29 已经在做这个了。
开始于 2014年9月19日。
评估
这个 Issue 还没有评估数据。
描述
- set up a new fx file in this dir https://github.com/mapbox/vtfx/blob/master/fx/drop.js
- add it to list of processors https://github.com/mapbox/vtfx/blob/master/index.js#L16-L17
- add a test for it so you can actually see the result of the processor as geojson https://github.com/mapbox/vtfx/blob/master/test/test.js#L17-L29
- then start hammering on it : )
vtfx currently doesn't turn the encoded geometries into something easier to work with. See ref here for how to interpret geom values https://github.com/mapbox/mapnik-vector-tile/blob/master/proto/vector_tile.proto#L41-L62. Luckily point geoms should be easy to interpret ([ 9 x y]).
My guess is the flow of the processor will basically be:
- Set up an object to collect features by grid coord
- Iterate through features bucketing them in said object by nearest grid coord
- Grab the first feature from each bucket and push into a new features array
- Replace old features array on layer with new
- 主要语言
- JavaScript
- 星标
- 4
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/vtfx 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
orderby faster未关闭
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
FEATURE REQUEST
难度 2/5 1-3 小时 新手友好度 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
Fei2411/DeepSeek-Bot#703 ·
-
area:web first-timers-only good first issue
难度 1/5 1 小时以内 新手友好度 95/100
career-ops-hq/career-ops#6264 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 83/100
cline/mcp-marketplace#3394 ·
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
exelearning/exelearning#2677 ·
维护者通常 1 天内回复