antvis / data-set

state driven all in one data process for data visualization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GeoJSON数据处理只支持FeatureCollection形式

ironicstone opened this issue · comments

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

const features = cloneDeep(data.features);