Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ironicstone opened this issue Mar 6, 2019 · 0 comments
Open

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

ironicstone opened this issue Mar 6, 2019 · 0 comments

Comments

@ironicstone
Copy link

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

const features = cloneDeep(data.features);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant