Going one element up with GPU support, adding it to mobile css also
This commit is contained in:
@@ -14,7 +14,7 @@ html, body, #map {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Turn on GPU support on devices that support it */
|
/* Turn on GPU support on devices that support it */
|
||||||
.olMapViewport * {
|
.olMapViewport, .olMapViewport * {
|
||||||
-webkit-transform: translate3d(0,0,0);
|
-webkit-transform: translate3d(0,0,0);
|
||||||
-moz-transform: translate3d(0,0,0);
|
-moz-transform: translate3d(0,0,0);
|
||||||
-o-transform: translate3d(0,0,0);
|
-o-transform: translate3d(0,0,0);
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ a.olControlZoomOut {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Turn on GPU support where available */
|
/* Turn on GPU support where available */
|
||||||
.olMapViewport * {
|
.olMapViewport, .olMapViewport * {
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
-moz-transform: translate3d(0, 0, 0);
|
-moz-transform: translate3d(0, 0, 0);
|
||||||
-o-transform: translate3d(0, 0, 0);
|
-o-transform: translate3d(0, 0, 0);
|
||||||
|
|||||||
@@ -49,15 +49,11 @@ div.olControlZoom a:hover {
|
|||||||
-o-transition: opacity 0.2s linear;
|
-o-transition: opacity 0.2s linear;
|
||||||
transition: opacity 0.2s linear;
|
transition: opacity 0.2s linear;
|
||||||
}
|
}
|
||||||
/* Enable 3d acceleration when operating on tiles, this is
|
/* Turn on GPU support on devices that support it */
|
||||||
known to yield better performance on IOS Safari.
|
.olMapViewport, .olMapViewport * {
|
||||||
http://osgeo-org.1803224.n2.nabble.com/Harware-accelerated-CSS3-animations-for-iOS-td6255560.html
|
-webkit-transform: translate3d(0,0,0);
|
||||||
|
-moz-transform: translate3d(0,0,0);
|
||||||
It also prevents tile blinking effects in iOS 5.
|
-o-transform: translate3d(0,0,0);
|
||||||
See https://github.com/openlayers/openlayers/issues/511
|
-ms-transform: translate3d(0,0,0);
|
||||||
*/
|
transform: translate3d(0,0,0);
|
||||||
@media (-webkit-transform-3d) {
|
}
|
||||||
img.olTileImage {
|
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user