huiyan-fe / react-bmap

基于百度地图JavaScript API封装的React组件库
http://huiyan-fe.github.io/react-bmap
MIT License
498 stars 97 forks source link

MapvLayer options={{draw: 'cluster'}}报错 #73

Closed Y-sen closed 4 years ago

Y-sen commented 4 years ago

你好,问一下

<MapvLayer data={this.state.dataSet} options={{ fillStyle: 'rgba(255, 50, 0, 1.0)', size: 5, minSize: 8, maxSize: 31, globalAlpha: 0.8, clusterRadius: 150, maxZoom: 19, label: { show: true, fillStyle: 'white', }, gradient: { 0: "blue", 0.5: 'yellow', 1.0: "rgb(255,0,0)"}, draw: 'cluster'}} /> 我这样使用,页面报错 Uncaught TypeError: Cannot read property 'getClusters' of undefined 请问是怎么回事呢

Junior2Ran commented 4 years ago

您好,这个问题在1.0.104版本解决,请升级到最新版本的react-bmap

zim-lee commented 4 years ago

1.0.117依然有这个问题