Adding transforms to turn on GPU

This commit is contained in:
ahocevar
2012-12-15 10:24:22 +01:00
parent 980792e190
commit 25c8b0ceaf
+10
View File
@@ -12,6 +12,16 @@ html, body, #map {
#title, #tags, #shortdesc { #title, #tags, #shortdesc {
display: none; display: none;
} }
/* Turn on GPU support on devices that support it */
.olMapViewport * {
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
.olLayerGrid .olTileImage { .olLayerGrid .olTileImage {
-webkit-transition: opacity 0.2s linear; -webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear;