mapbox / mapbox/mapbox-java

Add support for Turf transformScale

未关闭
#1,045 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Turf
主要语言
Java
星标
438
派生
117
PR 合并指标
30 天内没有已合并 PR

描述

Have seen some maps examples in the wild that do some interesting data visualization with "radiating" Polygon `FillLayer`s. This is possible with Mapbox but it'd be a lot easier to do this with [the Turf transformScale method ](http://turfjs.org/docs/#transformScale)

Ancestry.com (Mapbox):
![Screen Shot 2019-06-10 at 4 47 33 PM](https://user-images.githubusercontent.com/4394910/59233984-a40eb900-8b9f-11e9-8ea5-1e6e90c4b56c.png)

Caviar food delivery (GMaps):
![Screen Shot 2019-06-10 at 4 47 30 PM](https://user-images.githubusercontent.com/4394910/59233986-a40eb900-8b9f-11e9-9cb9-e0f5928d8d50.png)
![Screen Shot 2019-06-10 at 4 47 25 PM](https://user-images.githubusercontent.com/4394910/59233987-a40eb900-8b9f-11e9-9dc3-2a49cbaabe06.png)

Port https://github.com/Turfjs/turf/blob/master/packages/turf-transform-scale/index.js to this repo's Turf package. Looks like [this method uses a lot of other ones](https://github.com/Turfjs/turf/blob/master/packages/turf-transform-scale/index.js#L1-L10)

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

阅读 Turf 的 packages/turf-transform-scale/index.js,尤其是其中列出的依赖项,然后在此存储库中找到对应的 Turf 包。移植 transformScale 方法,并验证 Java 包提供的缩放行为与所引用的 Turf 实现等效。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, javascript
领域
mobile-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。