fix EPSG3395 zooming, close #1796

This commit is contained in:
Vladimir Agafonkin 2013-06-27 09:27:25 -04:00
parent 504390d67c
commit e468704738
4 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ Leaflet Changelog
An in-progress version being developed on the master branch.
* Fixed a bug where zoom buttons inherited Bootstrap link hover styles. [#1791](https://github.com/Leaflet/Leaflet/issues/1791)
* Fixed a bug with broken zooming on maps with EPSG3395 projection. [#1796](https://github.com/Leaflet/Leaflet/issues/1796)
## 0.6 (June 26, 2013)

2
dist/leaflet-src.js vendored
View File

@ -2335,7 +2335,7 @@ L.Projection.Mercator = {
lng = point.x * d / r,
tmp = r2 / r,
eccent = Math.sqrt(1 - (tmp * tmp)),
ts = Math.exp(- point.y / r2),
ts = Math.exp(- point.y / r),
phi = (Math.PI / 2) - 2 * Math.atan(ts),
numIter = 15,
tol = 1e-7,

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ L.Projection.Mercator = {
lng = point.x * d / r,
tmp = r2 / r,
eccent = Math.sqrt(1 - (tmp * tmp)),
ts = Math.exp(- point.y / r2),
ts = Math.exp(- point.y / r),
phi = (Math.PI / 2) - 2 * Math.atan(ts),
numIter = 15,
tol = 1e-7,