You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/02 10:01:14 UTC

[GitHub] [incubator-echarts] SeanSunPeng opened a new issue #11768: echarts结合高德报错,Cannot read property 'getAMap' of undefined"

SeanSunPeng opened a new issue #11768: echarts结合高德报错,Cannot read property 'getAMap' of undefined"
URL: https://github.com/apache/incubator-echarts/issues/11768
 
 
   ### Version
   3.8.5
   
   ### Steps to reproduce
   
   this.echartObj = this.$echarts.init(document.getElementById(this.id));
         this.echartObj.setOption(option);
         console.log(this.echartObj.getModel(),"图层")
         var amap = this.echartObj
           .getModel()
           .getComponent("amap")
           .getAMap();
   
   ### What is expected?
   bug消失
   
   ### What is actually happening?
   我始终无法获this.echartObj.getModel().getComponent("amap"),一直为null
   
   ---
   代码如上,实例化后获取地图实例,之前这个功能我是做完了也没问题,但今日突然报错,我以为是高德KEY过期,但更换后依然存在,之后我将版本回退到之前正常时,依然无法正常显示,我可以确定echarts的版本和高德1.4.4版并无更改,
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org