maplair
Version:
JavaScript library for mobile-friendly interactive maps
26 lines (25 loc) • 1.1 kB
JavaScript
import { EarthCRS } from "./EarthCRS.js";
import { Transformation } from "../../geometry/Transformation.js";
import { LonLatProjection } from "../projection/LonLatProjection.js";
// src/geo/crs/EPSG4326.js
/** @import {Projection} from '../projection/index.js' */
/**
* A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
*
* Maplair complies with the
* [TMS coordinate scheme for EPSG:4326](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic).
* If you are using a `TileLayer` with this CRS, ensure that there are two 256x256
* pixel tiles covering the whole earth at zoom level zero, and that the tile
* coordinate origin is (-180,+90), or (-180,-90) for `TileLayer`s with
* [the `tms` option](#tilelayer-tms) set.
*/
var EPSG4326 = class extends EarthCRS {
/** @type {string} */
static code = "EPSG:4326";
/** @type {Projection} */
static projection = LonLatProjection;
/** @type {Transformation} */
static transformation = /* @__PURE__ */ new Transformation(1 / 180, 1, -1 / 180, .5);
};
export { EPSG4326 };
//# sourceMappingURL=EPSG4326.js.map