问题描述
我添加了一些带有自定义着色器的四边形进行映射(示例为here和here)。我需要将数据从源传递到着色器。 Tutorials说,我可以将'source': 'point',
传递给图层类构造函数。可以将源数据传递到custom layer吗?
以下是源示例:
map.addSource('point',{
'type': 'geojson','data': {
'type': 'FeatureCollection','features': [
{
'type': 'Feature','geometry': {
'type': 'Point','coordinates': [0,0]
}
}
]
}
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)