[Pkg-javascript-commits] [leaflet] 288/301: Use _getTileSize() instead of using options.tileSize directly
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:57 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 c480c5c80afc0ce2d0a3d64cb844f4fcf724b359
Author: Per Liedman <per at liedman.net>
Date: Fri Dec 20 11:47:41 2013 +0100
Use _getTileSize() instead of using options.tileSize directly
---
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 fe44759..3f2e378 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -473,7 +473,7 @@ L.TileLayer = L.Class.extend({
_getWrapTileNum: function () {
var crs = this._map.options.crs,
size = crs.getSize(this._map.getZoom());
- return size.divideBy(this.options.tileSize);
+ return size.divideBy(this._getTileSize());
},
_adjustTilePoint: function (tilePoint) {
--
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