Fix tiles bluriness regression in Chrome, ref #2078

This commit is contained in:
Vladimir Agafonkin 2013-11-12 00:52:03 +02:00
parent cef3c7bd85
commit 3797ac3ce7
2 changed files with 3 additions and 4 deletions

4
dist/leaflet.css vendored
View File

@ -42,10 +42,6 @@
.leaflet-container img.leaflet-image-layer {
max-width: 15000px !important;
}
/* Android chrome makes tiles disappear without this */
.leaflet-tile-container img {
-webkit-backface-visibility: hidden;
}
.leaflet-tile {
filter: inherit;
visibility: hidden;

View File

@ -521,6 +521,9 @@ L.TileLayer = L.Class.extend({
if (L.Browser.ielt9 && this.options.opacity !== undefined) {
L.DomUtil.setOpacity(tile, this.options.opacity);
}
if (L.Browser.mobileWebkit3d) {
tile.style.webkitBackfaceVisibility = 'hidden';
}
return tile;
},