new mars3d.layer.HeatLayer({})

调用HeatLayer绘制热力图时报错:

RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:7: 'texture' : no matching overloaded function found ERROR: 0:7: '=' : dimension mismatch ERROR: 0:7: '=' : cannot convert from 'const mediump float' to 'highp 4-component vector of float'

导致出现该问题的原因是:mars3dmars3d-heatmap 安装的 版本必须保持一致

还有可能你在引入mars3d-heatmap就报错:

Module parse failed: Unexpected token (93:29745) File was processed with these loaders: * ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. (Source code omitted for this binary file)

也是版本没有一致导致的问题