OpenLayers print function not working

89 views Asked by At

Taking the function as in Save google map as an image - using javascript (able to take screenshot) , the solution ceased to work, as it is now generating an error on

var comp=transform.split(",");

It seems that the object returned by

$(".gm-style>div:first>div")

doesn't have the css property. Does anyone know what's going on?

Thanks is advance

1

There are 1 answers

0
Joao On BEST ANSWER

ok, i got it to work using

 $(".olMapViewport>div:first>div").css("transform");

it seems that .gm-style may not work in some situations.