UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

17 lines (14 loc) 412 B
/* * @namespace CRS * @crs L.CRS.EPSG3395 * * Rarely used by some commercial tile providers. Uses Elliptical Mercator projection. */ L.CRS.EPSG3395 = L.extend({}, L.CRS.Earth, { code: 'EPSG:3395', projection: L.Projection.Mercator, transformation: (function () { var scale = 0.5 / (Math.PI * L.Projection.Mercator.R); return new L.Transformation(scale, 0.5, -scale, 0.5); }()) });