support for HiDPI
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 33
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用提供的 config.json 以及 /toner 和 /toner-http @2x URL 重现该行为。将该模块与链接的 node-tilejson pull request 中提出的修改进行比较。当 /toner/6/11/26@2x.png 端点返回预期的 512x512 图像而不是 256x256 图像时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100