add support for other GeoJson types (LineString, MultiLineString)
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
From: Screen Shot 2023-01-24 at 10.40.45 AM
Note that we only accept GeoJSONs of type "FeatureCollection" or "Feature" with geometries of type "Polygon" or "MultiPolygon".
I see a few references to LineString and MultiLineString here but I'm uncertain if they are actually support or if the docs are old?
Here is a CodePen that should work if this feature was supported.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 src/lib/geojson_utils.js,并复现链接的 CodePen 示例,以跟踪 Feature 和 FeatureCollection 几何图形的处理方式。确定现有对 LineString 和 MultiLineString 的支持,然后验证这两种 GeoJSON 类型是否能与 Polygon 和 MultiPolygon 输入一起正确渲染。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100