UNPKG

maplair

Version:

JavaScript library for mobile-friendly interactive maps

19 lines (18 loc) • 520 B
import { Point } from "../../geometry/Point.js"; import { Bounds } from "../../geometry/Bounds.js"; import { LatLng } from "../LatLng.js"; //#region src/geo/projection/Projection.LonLat.js const LonLat = { project(latlng) { latlng = new LatLng(latlng); return new Point(latlng.lng, latlng.lat); }, unproject(point) { point = new Point(point); return new LatLng(point.y, point.x); }, bounds: new Bounds([-180, -90], [180, 90]) }; //#endregion export { LonLat }; //# sourceMappingURL=Projection.LonLat.js.map