antvis / data-set

state driven all in one data process for data visualization.
MIT License
248 stars 46 forks source link

GeoJSON数据处理只支持FeatureCollection形式 #54

Open ironicstone opened 5 years ago

ironicstone commented 5 years ago

RT,源码中取data.features,features字段只会在FeatureCollection中出现。标准的GeoJSON类型还有很多,Feature, Point, Polygon等等,目前拿到数据后需要自己再包一层。

https://github.com/antvis/data-set/blob/55526ac5663b87cdc988fc579404df186603b2d9/src/connector/geojson.js#L15