[Pkg-javascript-commits] [leaflet] 226/301: Fix tiles bluriness regression in Chrome, ref #2078

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 3797ac3ce7f1d8aa5f3a26874a59fbb913022706
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Tue Nov 12 00:52:03 2013 +0200

    Fix tiles bluriness regression in Chrome, ref #2078
---
 dist/leaflet.css            | 4 ----
 src/layer/tile/TileLayer.js | 3 +++
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dist/leaflet.css b/dist/leaflet.css
index 82a1a5b..3e17bf6 100644
--- a/dist/leaflet.css
+++ b/dist/leaflet.css
@@ -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;
diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index 0f27b06..e6e02f2 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -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;
 	},
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list