Turn on GPU support for all children of the layerContainerDiv
This seems to remove all kinds of flicker and jumpiness, and to me it feels also like it makes panning on slow mobile devices smoother.
This commit is contained in:
1 parent
44f28f8791
commit
64d291ea20
2 files changed
+7
-2
No files matched your search
@@ -17,8 +17,6 @@ html, body, #map {
|
||||
-moz-transition: opacity 0.2s linear;
|
||||
-o-transition: opacity 0.2s linear;
|
||||
transition: opacity 0.2s linear;
|
||||
/* workaround for strange border tile squeezing on Android 4.x */
|
||||
-webkit-transform: scale(1.001);
|
||||
}
|
||||
div.olControlAttribution {
|
||||
position: absolute;
|
||||
|
||||
@@ -487,6 +487,13 @@ a.olControlZoomOut {
|
||||
transition: opacity 0.2s linear;
|
||||
}
|
||||
|
||||
.olTileImage, .olLayerDiv {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-o-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
/* override any max-width image settings (e.g. bootstrap.css) */
|
||||
img.olTileImage {
|
||||
max-width: none;
|
||||
|
||||
Reference in new issue
Block a user