fix EPSG3395 zooming, close #1796
This commit is contained in:
parent
504390d67c
commit
e468704738
@ -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
2
dist/leaflet-src.js
vendored
@ -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
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user