mohitsgw / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

Using CSS to scale earth messes up in Mac/Chrome #993

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am have a problem scaling the Google Earth player in Mac/Chrome using CSS 
transform. In Mac/Chrome it scales double the amount it should.

$("#earthDiv").css({   "-webkit-transform-origin":"0 0",               
        "transform-origin":"0 0",           
        "-webkit-transform":"matrix("+playerZoom+",0,0,"+playerZoom+",0,0)",
        "-transform":"matrix("+playerZoom+",0,0,"+playerZoom+",0,0)",
        });
You can see it fail here:

www.viseyes.org/mapscholar/mapedit.htm

Drag the slider bar to the left of the "File" menu item. Earth scales about 
half of what it should.

Works everywhere else, including Win/Chrome.

Original issue reported on code.google.com by bfers...@gmail.com on 19 Oct 2014 at 1:50