maplair
Version:
JavaScript library for mobile-friendly interactive maps
19 lines (18 loc) • 642 B
JavaScript
import { Transformation } from "../../geometry/Transformation.js";
import { EarthCRS } from "./EarthCRS.js";
import { SphericalMercator } from "../projection/Projection.SphericalMercator.js";
//#region src/geo/crs/EPSG3857.js
var EPSG3857 = class extends EarthCRS {
static code = "EPSG:3857";
static projection = SphericalMercator;
static transformation = (() => {
const scale = .5 / (Math.PI * SphericalMercator.R);
return new Transformation(scale, .5, -scale, .5);
})();
};
var EPSG900913 = class extends EPSG3857 {
static code = "EPSG:900913";
};
//#endregion
export { EPSG3857, EPSG900913 };
//# sourceMappingURL=EPSG3857.js.map