不错
通过设置地图组件的circles的radius值,实现涟漪效果,但是报错?alertIcon(n) { let that = this; setInterval(() => { for (let i in that.data.circles) { if (that.data.circles[i].radius < 500) { that.data.circles[i].radius += 50; } else { that.data.circles[i].radius = 0; }; }; that.setData({ markers: that.data.mapData, circles: that.data.circles }) }, n); }, //Console: /* *[渲染层错误] MultiPolyline.styles: 样式id *[渲染层错误] MultiCircle.geometries: 希望传入CircleGeometry数组,实际第0元素的radius属性无效! *[渲染层错误] MultiCircle.geometries: 希望传入CircleGeometry数组,实际第1元素的radius属性无效! *[渲染层错误] MultiCircle.geometries: 希望传入CircleGeometry数组,实际第2元素的radius属性无效! *[渲染层错误] MultiPolyline.geometries: 希望传入PolylineGeometry数组,实际第0元素的paths属性无效! *[渲染层错误] MultiPolyline.geometries: 希望传入PolylineGeometry数组,实际第1元素的paths属性无效! *[渲染层错误] MultiPolyline.geometries: 希望传入PolylineGeometry数组,实际第2元素的paths属性无效! *[/__pageframe__/pages/mapalert/mapalert] width and heigth of marker id 0 are required *[/__pageframe__/pages/mapalert/mapalert] width and heigth of marker id 1 are required *[/__pageframe__/pages/mapalert/mapalert] width and heigth of marker id 2 are required */ //打算在每一个markers下增加一个涟漪效果,作为警告标志。但是出现上诉错误和警告,请教大神如何解决?
2021-01-31