UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

14 lines (11 loc) 333 B
/* * L.CRS.EPSG3857 (World Mercator) CRS implementation. */ 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); }()) });