Adding transforms to turn on GPU

This commit is contained in:
ahocevar
2012-12-15 10:24:22 +01:00
parent 980792e190
commit 25c8b0ceaf

View File

@@ -12,6 +12,16 @@ html, body, #map {
#title, #tags, #shortdesc {
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 {
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
@@ -166,4 +176,4 @@ div.layerPanel div.mapButtonItemActive:after {
div.layerPanel div.mapButtonItemInactive,
div.layerPanel div.mapButtonItemActive {
margin-left: 1px;
}
}