OpenLayers 打印功能不起作用

OpenLayers print function not working

使用 Save google map as an image - using javascript (able to take screenshot) 中的函数,解决方案停止工作,因为它现在在

上生成错误
var comp=transform.split(",");

好像是

返回的对象
$(".gm-style>div:first>div")

没有 css 属性。 有谁知道怎么回事吗?

先谢谢了

好的,我使用

让它工作
 $(".olMapViewport>div:first>div").css("transform");

似乎 .gm-style 在某些情况下可能不起作用。