Script and makefile adjustments for updating extlib
[larjonas-mediagoblin.git] / extlib / leaflet / src / geo / crs / CRS.EPSG3857.js
blobcbdbd03a7459671b08a035d8ecaa1c7fa73d5151
2 L.CRS.EPSG3857 = L.Util.extend({}, L.CRS, {
3 code: 'EPSG:3857',
5 projection: L.Projection.SphericalMercator,
6 transformation: new L.Transformation(0.5/Math.PI, 0.5, -0.5/Math.PI, 0.5),
8 project: function(/*LatLng*/ latlng)/*-> Point*/ {
9 var projectedPoint = this.projection.project(latlng),
10 earthRadius = 6378137;
11 return projectedPoint.multiplyBy(earthRadius);
13 });
15 L.CRS.EPSG900913 = L.Util.extend({}, L.CRS.EPSG3857, {
16 code: 'EPSG:900913'
17 });