0

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

Community
  • 1
  • 1
Joao
  • 619
  • 1
  • 5
  • 14

1 Answers1

0

ok, i got it to work using

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

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

Joao
  • 619
  • 1
  • 5
  • 14