[Pkg-javascript-commits] [leaflet] 07/78: TileLayer - Use correct tileSize when checking tile bounds
Jonas Smedegaard
dr at jones.dk
Sat May 7 08:58:42 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 94b63b4b560e2b4a2dd96d364444c1a8fb2e8573
Author: John Laxson <jlaxson at mac.com>
Date: Wed Apr 29 22:34:52 2015 -0700
TileLayer - Use correct tileSize when checking tile bounds
When using options.bounds in combination with options.maxNativezoom,
the tileSize used in _tileShouldBeLoaded can be incorrect, causing
tiles to not get loaded or not get displayed.
---
src/layer/tile/TileLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index 6f8222e..1892df1 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -360,7 +360,7 @@ L.TileLayer = L.Class.extend({
}
if (options.bounds) {
- var tileSize = options.tileSize,
+ var tileSize = this._getTileSize(),
nwPoint = tilePoint.multiplyBy(tileSize),
sePoint = nwPoint.add([tileSize, tileSize]),
nw = this._map.unproject(nwPoint),
--
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