开发者社区> 问答> 正文

firefox下也有报错?报错

@pissang 你好,想跟你请教个问题:

TypeError: this._picking is undefined    Layer3D.js (第 196 行,第 8 列)

return this._picking.pick(x, y);

请帮忙看一下,谢谢

展开
收起
爱吃鱼的程序员 2020-06-14 17:30:06 505 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    是什么情况下报的错?在示例里?这个是我用Chrome能正常运行的代码,IE11报之前的错误,FireFox现在就看到有这个错误。我写的代码比较简单,基本上跟测试代码类似。我重新贴一下源代码吧。this是什么对象?有定义_picking吗?Layer3D.js(第196行,第8列)<preclass="brush:js;toolbar:true;auto-links:false;">require.config({packages:[{name:'echarts-x',location:'lib/echarts-x/src',main:'echarts-x'},{name:'echarts',location:'lib/echarts/src',main:'echarts'},{name:'zrender',location:'lib/zrender/src',main:'zrender'},{name:'qtek',location:'lib/qtek/src',main:'qtek.amd'}]});require(['echarts','qtek/core/request','echarts/component/dataRange','echarts-x','echarts-x/chart/map3d'],function(echarts,request){varchart=echarts.init(window.top.frames["iFramePageContent"].document.getElementById(divName));varoption={tooltip:{formatter:'{b}'},series:[{type:'map3d',mapType:'world',baseLayer:{backgroundColor:'',backgroundImage:'images/earth.jpg',quality:'low'},surfaceLayers:[{type:'texture',distance:3,image:'images/clouds.png'}],itemStyle:{normal:{label:{show:true},borderWidth:1,borderColor:'yellow',areaStyle:{color:'rgba(0,0,0,0)'}}},data:[{}]}]};chart.setOption(option);chart.on('click',PortalThreeDMap.ThreeDMapClick);});



    2020-06-14 17:30:24
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载