[Pkg-javascript-commits] [leaflet] 22/78: Clear tilelayer's BG buffer on zoomanim end if out of zoom limits

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:43 UTC 2016


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

js pushed a commit to branch master
in repository leaflet.

commit 55d3e7d83f7dbcb45d4834d0b4d97c5bd02818bf
Author: Iván Sánchez Ortega <ivan at mazemap.no>
Date:   Wed Aug 26 15:53:55 2015 +0200

    Clear tilelayer's BG buffer on zoomanim end if out of zoom limits
---
 src/layer/tile/TileLayer.Anim.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/layer/tile/TileLayer.Anim.js b/src/layer/tile/TileLayer.Anim.js
index 4610c09..70daa06 100644
--- a/src/layer/tile/TileLayer.Anim.js
+++ b/src/layer/tile/TileLayer.Anim.js
@@ -29,6 +29,11 @@ L.TileLayer.include({
 		// force reflow
 		L.Util.falseFn(bg.offsetWidth);
 
+		var zoom = this._map.getZoom();
+		if (zoom > this.options.maxZoom || zoom < this.options.minZoom) {
+			this._clearBgBuffer();
+		}
+
 		this._animating = false;
 	},
 

-- 
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