summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js
diff options
context:
space:
mode:
Diffstat (limited to 'debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js')
-rw-r--r--debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js b/debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js
new file mode 100644
index 0000000..d2b4a75
--- /dev/null
+++ b/debian/missing-sources/leaflet.js/geo/crs/CRS.EPSG3857.js
@@ -0,0 +1,27 @@
+import {Earth} from './CRS.Earth';
+import {SphericalMercator} from '../projection/Projection.SphericalMercator';
+import {toTransformation} from '../../geometry/Transformation';
+import * as Util from '../../core/Util';
+
+/*
+ * @namespace CRS
+ * @crs L.CRS.EPSG3857
+ *
+ * The most common CRS for online maps, used by almost all free and commercial
+ * tile providers. Uses Spherical Mercator projection. Set in by default in
+ * Map's `crs` option.
+ */
+
+export var EPSG3857 = Util.extend({}, Earth, {
+ code: 'EPSG:3857',
+ projection: SphericalMercator,
+
+ transformation: (function () {
+ var scale = 0.5 / (Math.PI * SphericalMercator.R);
+ return toTransformation(scale, 0.5, -scale, 0.5);
+ }())
+});
+
+export var EPSG900913 = Util.extend({}, EPSG3857, {
+ code: 'EPSG:900913'
+});