我使用Github中的示例构建单个页面。如何将json文件添加到应用程序?我这样尝试过,但他不知道addDataToMap:
<script>
/**
* Customize map.
* Interact with map store to customize data and behavior
*/
(function customize(keplerGl, store) {
// store.dispatch(keplerGl.toggleSplitMap());
store.dispatch(addDataToMap({
datasets:{
info: {
label: 'Hi',
id: 'hi'
},
data: Processors.processGeojson('test2.json')
}
}));
}(KeplerGl, store))
</script>