Skip to content

Commit

Permalink
Fixed smart tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Nov 6, 2013
1 parent 8ae0e27 commit 63e8469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/geo/crs/CRS.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
L.CRS = {
latLngToPoint: function (latlng, zoom) { // (LatLng, Number) -> Point
var projectedPoint = this.projection.project(latlng),
scale = this.scale(zoom);
scale = this.scale(zoom);

return this.transformation._transform(projectedPoint, scale);
},

pointToLatLng: function (point, zoom) { // (Point, Number[, Boolean]) -> LatLng
var scale = this.scale(zoom),
untransformedPoint = this.transformation.untransform(point, scale);
untransformedPoint = this.transformation.untransform(point, scale);

return this.projection.unproject(untransformedPoint);
},
Expand Down
2 changes: 1 addition & 1 deletion src/layer/tile/TileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ L.TileLayer = L.Class.extend({

_getWrapTileNum: function () {
var crs = this._map.options.crs,
size = crs.getSize(this._getZoomForUrl());
size = crs.getSize(this._getZoomForUrl());
return size.divideBy(this.options.tileSize);
},

Expand Down

0 comments on commit 63e8469

Please sign in to comment.