support for HiDPI
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- backend
调研方向
首先使用提供的 config.json 以及 /toner 和 /toner-http @2x URL 重现该行为。将该模块与链接的 node-tilejson pull request 中提出的修改进行比较。当 /toner/6/11/26@2x.png 端点返回预期的 512x512 图像而不是 256x256 图像时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The module doesn't seem to works with HiDPI screens like Retina.
Example:
save following under config.json, then run /usr/bin/nodejs /usr/bin/tessera -c . -p 28089
{
"/toner": {
"source": "tilejson+http://staging.tile.stamen.com/toner-background/index.json"
},
"/toner-http": {
"source": "http://toner-elb-3vaew2i23b6d-1666871272.us-east-1.elb.amazonaws.com/toner-background/{z}/{x}/{y}.png"
}
}
http://127.0.0.1:28089/toner-http/6/11/26@2x.png returns a 512x512 image. Fine.
http://toner-elb-3vaew2i23b6d-1666871272.us-east-1.elb.amazonaws.com/toner-background/6/11/26@2x.png returns a 512x512 image (it's the link described in the tilejson file). Fine.
http://127.0.0.1:28089/toner/6/11/26@2x.png returns a 256x256 image. Wrong :-(.
The solution is probably as simple as integrating the modifications proposed in https://github.com/mapbox/node-tilejson/pull/26/files.
- 主要语言
- JavaScript
- 星标
- 33
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/node-tilejson 的其他 Issue
-
mapbox/node-tilejson#54 · 已指派 1 人 ·
-
README 未关闭
难度 4/5 3-5 天 新手友好度 15/100
mapbox/node-tilejson#38 · 1 条评论 ·
查看 mapbox/node-tilejson 的全部 Issue
相似的 Issue
-
curation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
amponce/archive-movie-browser#186 ·
-
难度 2/5 1-3 小时 新手友好度 86/100
clerk/javascript#9852 ·
-
bug p1 tools
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 84/100