We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
L7 Version: 2.0.0
Platform: Windows
Mini Showcase(like screenshots):
CodePen Link:
如果HeatmapLayer传入的data为空数组,会报错TypeError: Cannot read property 'filter' of undefined
TypeError: Cannot read property 'filter' of undefined
The text was updated successfully, but these errors were encountered:
L7 Version: 2.0.0 Platform: Windows Mini Showcase(like screenshots): CodePen Link: 如果HeatmapLayer传入的data为空数组,会报错TypeError: Cannot read property 'filter' of undefined
提供一下具体的data配置项
Sorry, something went wrong.
就是传的data为[],因为这个是后台提供的,有时会为空,最好数据为空时不渲染图层就行,但是不能报错
[]
geojson 需要传入geojson
layer .source({ type: 'FeatureCollection', features: [], })
2.0.5 版本已修复
No branches or pull requests
L7 Version: 2.0.0
Platform: Windows
Mini Showcase(like screenshots):
CodePen Link:
如果HeatmapLayer传入的data为空数组,会报错
TypeError: Cannot read property 'filter' of undefined
The text was updated successfully, but these errors were encountered: