Fix tiles bluriness regression in Chrome, ref #2078
This commit is contained in:
parent
cef3c7bd85
commit
3797ac3ce7
4
dist/leaflet.css
vendored
4
dist/leaflet.css
vendored
@ -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;
|
||||
|
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user