0

我目前正在使用此代码打印谷歌地图

<script language="javascript">
var contents = window.opener.document.getElementById("map_container");
document.write(contents.innerHTML);
window.print();
</script> 

问题是一些奇怪的控件显示在左下角也带有谷歌版权水印。以下是图片: -缩小:http://imageshack.us/photo/my-images/833/zoomoutd.png/ -放大:http ://imageshack.us/photo/my-images/708/zoominb 。 .png/ . 我对右上角的控件没有问题,但我想摆脱底部的那些东西。顺便说一句,如果可以在所有浏览器中工作

4

1 回答 1

1

I don't think you're supposed to be a-printing the satellite view, Google has details here. Likely, there's no supported way to do this. This questions has details on a workaround using the static maps API, so that might be an option.

于 2012-10-26T21:47:00.577 回答