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/10/12 09:25:36 UTC

[GitHub] [incubator-echarts] ArthurLoveGY commented on issue #10378: 使用百度地图之后,解决toolbox下载为图片中没有百度地图?

ArthurLoveGY commented on issue #10378: 使用百度地图之后,解决toolbox下载为图片中没有百度地图?
URL: https://github.com/apache/incubator-echarts/issues/10378#issuecomment-541306154
 
 
   > @gao384688949
   > 出现这个问题是使用bmap扩展,echarts容器以div的方式插入到百度地图的容器中,整个百度地图的渲染没有被echarts托管,百度地图瓦片的渲染完全有bmap来完成的,所以导出图片的时候,echarts只能导出自己自己画布上的内容,**而且任何的第三方地图引擎(非 geo组件)和echarts结合的都会存在这个问题**。
   > 
   > 想要将百度地图和echarts的绘制结果一并导出图片你需要将百度地图的瓦片渲染结果和echarts的渲染结果合并绘制到一个新的的画布上,
   > 
   > 我做的一个例子 https://gallery.echartsjs.com/editor.html?c=xKdf51HpRE&v=1
   > 
   > 目前百度地图关于瓦片的渲染使用的是dom(img标签),合并的时候有点烦,需要将瓦片的图片集一个一个的合并起来,如果你使用其他的地图组件(瓦片渲染是使用画布的(canvas)),整个合并将很简单,只需要将地图的画布和echarts的画布合并起来即可,例如openlayers,maptalks,mapbox-gl等,关于这些地图引擎和echarts的结合,社区应该都能找到相应的插件
   
   我在拖拽或者缩放以后再使用截图,会出现截图不全的情况,请问怎么处理这样的情况呢
   ![1570872286987](https://user-images.githubusercontent.com/19769776/66698955-44731680-ed15-11e9-8827-36b9f858c9b9.png)
   

----------------------------------------------------------------
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