diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-14 13:34:41 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-17 15:48:28 -0600 |
commit | 9252fc84840220106e696cc2116e7804c9529c5a (patch) | |
tree | c1bafe27ad0cac8e4b49bd476ad2e3947fe4fca9 /extlib/leaflet/src/geo/projection | |
parent | 572106e23037997db9a4e131029b0a4f7cb969b5 (diff) | |
download | mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.lz mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.xz mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.zip |
Remove extlib deps moved into bower
Diffstat (limited to 'extlib/leaflet/src/geo/projection')
4 files changed, 0 insertions, 87 deletions
diff --git a/extlib/leaflet/src/geo/projection/Projection.LonLat.js b/extlib/leaflet/src/geo/projection/Projection.LonLat.js deleted file mode 100644 index ece29717..00000000 --- a/extlib/leaflet/src/geo/projection/Projection.LonLat.js +++ /dev/null @@ -1,10 +0,0 @@ -
-L.Projection.LonLat = {
- project: function(latlng) {
- return new L.Point(latlng.lng, latlng.lat);
- },
-
- unproject: function(point, unbounded) {
- return new L.LatLng(point.y, point.x, unbounded);
- }
-};
diff --git a/extlib/leaflet/src/geo/projection/Projection.Mercator.js b/extlib/leaflet/src/geo/projection/Projection.Mercator.js deleted file mode 100644 index 9eafff18..00000000 --- a/extlib/leaflet/src/geo/projection/Projection.Mercator.js +++ /dev/null @@ -1,49 +0,0 @@ -
-L.Projection.Mercator = {
- MAX_LATITUDE: 85.0840591556,
-
- R_MINOR: 6356752.3142,
- R_MAJOR: 6378137,
-
- project: function(/*LatLng*/ latlng) /*-> Point*/ {
- var d = L.LatLng.DEG_TO_RAD,
- max = this.MAX_LATITUDE,
- lat = Math.max(Math.min(max, latlng.lat), -max),
- r = this.R_MAJOR,
- x = latlng.lng * d * r,
- y = lat * d,
- tmp = this.R_MINOR / r,
- eccent = Math.sqrt(1.0 - tmp * tmp),
- con = eccent * Math.sin(y);
-
- con = Math.pow((1 - con)/(1 + con), eccent * 0.5);
-
- var ts = Math.tan(0.5 * ((Math.PI * 0.5) - y)) / con;
- y = -r * Math.log(ts);
-
- return new L.Point(x, y);
- },
-
- unproject: function(/*Point*/ point, /*Boolean*/ unbounded) /*-> LatLng*/ {
- var d = L.LatLng.RAD_TO_DEG,
- r = this.R_MAJOR,
- lng = point.x * d / r,
- tmp = this.R_MINOR / r,
- eccent = Math.sqrt(1 - (tmp * tmp)),
- ts = Math.exp(- point.y / r),
- phi = Math.PI/2 - 2 * Math.atan(ts),
- numIter = 15,
- tol = 1e-7,
- i = numIter,
- dphi = 0.1,
- con;
-
- while ((Math.abs(dphi) > tol) && (--i > 0)) {
- con = eccent * Math.sin(phi);
- dphi = Math.PI/2 - 2 * Math.atan(ts * Math.pow((1.0 - con)/(1.0 + con), 0.5 * eccent)) - phi;
- phi += dphi;
- }
-
- return new L.LatLng(phi * d, lng, unbounded);
- }
-};
diff --git a/extlib/leaflet/src/geo/projection/Projection.SphericalMercator.js b/extlib/leaflet/src/geo/projection/Projection.SphericalMercator.js deleted file mode 100644 index be0532ff..00000000 --- a/extlib/leaflet/src/geo/projection/Projection.SphericalMercator.js +++ /dev/null @@ -1,23 +0,0 @@ -
-L.Projection.SphericalMercator = {
- MAX_LATITUDE: 85.0511287798,
-
- project: function(/*LatLng*/ latlng) /*-> Point*/ {
- var d = L.LatLng.DEG_TO_RAD,
- max = this.MAX_LATITUDE,
- lat = Math.max(Math.min(max, latlng.lat), -max),
- x = latlng.lng * d,
- y = lat * d;
- y = Math.log(Math.tan(Math.PI/4 + y/2));
-
- return new L.Point(x, y);
- },
-
- unproject: function(/*Point*/ point, /*Boolean*/ unbounded) /*-> LatLng*/ {
- var d = L.LatLng.RAD_TO_DEG,
- lng = point.x * d,
- lat = (2 * Math.atan(Math.exp(point.y)) - Math.PI/2) * d;
-
- return new L.LatLng(lat, lng, unbounded);
- }
-};
diff --git a/extlib/leaflet/src/geo/projection/Projection.js b/extlib/leaflet/src/geo/projection/Projection.js deleted file mode 100644 index 84316b30..00000000 --- a/extlib/leaflet/src/geo/projection/Projection.js +++ /dev/null @@ -1,5 +0,0 @@ -/*
- * L.Projection contains various geographical projections used by CRS classes.
- */
-
-L.Projection = {};
|