maplair
Version:
JavaScript library for mobile-friendly interactive maps
22 lines (21 loc) • 776 B
JavaScript
import { EarthCRS } from "./EarthCRS.js";
import { Transformation } from "../../geometry/Transformation.js";
import { MercatorProjection } from "../projection/MercatorProjection.js";
// src/geo/crs/EPSG3395.js
/** @import {Projection} from '../projection/index.js' */
/**
* Rarely used by some commercial tile providers. Uses Elliptical Mercator projection.
*/
var EPSG3395 = class extends EarthCRS {
/** @type {string} */
static code = "EPSG:3395";
/** @type {Projection} */
static projection = MercatorProjection;
/** @type {Transformation} */
static transformation = /* @__PURE__ */ (() => {
const scale = .5 / (Math.PI * MercatorProjection.R);
return new Transformation(scale, .5, -scale, .5);
})();
};
export { EPSG3395 };
//# sourceMappingURL=EPSG3395.js.map