This commit is contained in:
245
node_modules/ol/proj/Projection.d.ts
generated
vendored
Normal file
245
node_modules/ol/proj/Projection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,245 @@
|
||||
export default Projection;
|
||||
export type Options = {
|
||||
/**
|
||||
* The SRS identifier code, e.g. `EPSG:4326`.
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* Units. Required unless a
|
||||
* proj4 projection is defined for `code`.
|
||||
*/
|
||||
units?: string | undefined;
|
||||
/**
|
||||
* The validity extent for the SRS.
|
||||
*/
|
||||
extent?: import("../extent.js").Extent | undefined;
|
||||
/**
|
||||
* The axis orientation as specified in Proj4.
|
||||
*/
|
||||
axisOrientation?: string | undefined;
|
||||
/**
|
||||
* Whether the projection is valid for the whole globe.
|
||||
*/
|
||||
global?: boolean | undefined;
|
||||
/**
|
||||
* The meters per unit for the SRS.
|
||||
* If not provided, the `units` are used to get the meters per unit from the {@link module :ol/proj/Units~METERS_PER_UNIT}lookup table.
|
||||
*/
|
||||
metersPerUnit?: number | undefined;
|
||||
/**
|
||||
* The world extent for the SRS.
|
||||
*/
|
||||
worldExtent?: import("../extent.js").Extent | undefined;
|
||||
/**
|
||||
* Function to determine resolution at a point. The function is called with a
|
||||
* `number` view resolution and a {@link module :ol/coordinate~Coordinate Coordinate} as arguments, and returns
|
||||
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
||||
* the default {@link module :ol/proj.getPointResolution getPointResolution()} function will be used.
|
||||
*/
|
||||
getPointResolution?: ((arg0: number, arg1: import("../coordinate.js").Coordinate) => number) | undefined;
|
||||
};
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {string} code The SRS identifier code, e.g. `EPSG:4326`.
|
||||
* @property {import("./Units.js").default|string} [units] Units. Required unless a
|
||||
* proj4 projection is defined for `code`.
|
||||
* @property {import("../extent.js").Extent} [extent] The validity extent for the SRS.
|
||||
* @property {string} [axisOrientation='enu'] The axis orientation as specified in Proj4.
|
||||
* @property {boolean} [global=false] Whether the projection is valid for the whole globe.
|
||||
* @property {number} [metersPerUnit] The meters per unit for the SRS.
|
||||
* If not provided, the `units` are used to get the meters per unit from the {@link module:ol/proj/Units~METERS_PER_UNIT}
|
||||
* lookup table.
|
||||
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
||||
* @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution]
|
||||
* Function to determine resolution at a point. The function is called with a
|
||||
* `number` view resolution and a {@link module:ol/coordinate~Coordinate Coordinate} as arguments, and returns
|
||||
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
||||
* the default {@link module:ol/proj.getPointResolution getPointResolution()} function will be used.
|
||||
*/
|
||||
/**
|
||||
* @classdesc
|
||||
* Projection definition class. One of these is created for each projection
|
||||
* supported in the application and stored in the {@link module:ol/proj} namespace.
|
||||
* You can use these in applications, but this is not required, as API params
|
||||
* and options use {@link module:ol/proj~ProjectionLike} which means the simple string
|
||||
* code will suffice.
|
||||
*
|
||||
* You can use {@link module:ol/proj.get} to retrieve the object for a particular
|
||||
* projection.
|
||||
*
|
||||
* The library includes definitions for `EPSG:4326` and `EPSG:3857`, together
|
||||
* with the following aliases:
|
||||
* * `EPSG:4326`: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326,
|
||||
* urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84,
|
||||
* http://www.opengis.net/gml/srs/epsg.xml#4326,
|
||||
* urn:x-ogc:def:crs:EPSG:4326
|
||||
* * `EPSG:3857`: EPSG:102100, EPSG:102113, EPSG:900913,
|
||||
* urn:ogc:def:crs:EPSG:6.18:3:3857,
|
||||
* http://www.opengis.net/gml/srs/epsg.xml#3857
|
||||
*
|
||||
* If you use [proj4js](https://github.com/proj4js/proj4js), aliases can
|
||||
* be added using `proj4.defs()`. After all required projection definitions are
|
||||
* added, call the {@link module:ol/proj/proj4.register} function.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
declare class Projection {
|
||||
/**
|
||||
* @param {Options} options Projection options.
|
||||
*/
|
||||
constructor(options: Options);
|
||||
/**
|
||||
* @private
|
||||
* @type {string}
|
||||
*/
|
||||
private code_;
|
||||
/**
|
||||
* Units of projected coordinates. When set to `TILE_PIXELS`, a
|
||||
* `this.extent_` and `this.worldExtent_` must be configured properly for each
|
||||
* tile.
|
||||
* @private
|
||||
* @type {import("./Units.js").default}
|
||||
*/
|
||||
private units_;
|
||||
/**
|
||||
* Validity extent of the projection in projected coordinates. For projections
|
||||
* with `TILE_PIXELS` units, this is the extent of the tile in
|
||||
* tile pixel space.
|
||||
* @private
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
private extent_;
|
||||
/**
|
||||
* Extent of the world in EPSG:4326. For projections with
|
||||
* `TILE_PIXELS` units, this is the extent of the tile in
|
||||
* projected coordinate space.
|
||||
* @private
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
private worldExtent_;
|
||||
/**
|
||||
* @private
|
||||
* @type {string}
|
||||
*/
|
||||
private axisOrientation_;
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
private global_;
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
private canWrapX_;
|
||||
/**
|
||||
* @private
|
||||
* @type {function(number, import("../coordinate.js").Coordinate):number|undefined}
|
||||
*/
|
||||
private getPointResolutionFunc_;
|
||||
/**
|
||||
* @private
|
||||
* @type {import("../tilegrid/TileGrid.js").default}
|
||||
*/
|
||||
private defaultTileGrid_;
|
||||
/**
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
private metersPerUnit_;
|
||||
/**
|
||||
* @return {boolean} The projection is suitable for wrapping the x-axis
|
||||
*/
|
||||
canWrapX(): boolean;
|
||||
/**
|
||||
* Get the code for this projection, e.g. 'EPSG:4326'.
|
||||
* @return {string} Code.
|
||||
* @api
|
||||
*/
|
||||
getCode(): string;
|
||||
/**
|
||||
* Get the validity extent for this projection.
|
||||
* @return {import("../extent.js").Extent} Extent.
|
||||
* @api
|
||||
*/
|
||||
getExtent(): import("../extent.js").Extent;
|
||||
/**
|
||||
* Get the units of this projection.
|
||||
* @return {import("./Units.js").default} Units.
|
||||
* @api
|
||||
*/
|
||||
getUnits(): import("./Units.js").default;
|
||||
/**
|
||||
* Get the amount of meters per unit of this projection. If the projection is
|
||||
* not configured with `metersPerUnit` or a units identifier, the return is
|
||||
* `undefined`.
|
||||
* @return {number|undefined} Meters.
|
||||
* @api
|
||||
*/
|
||||
getMetersPerUnit(): number | undefined;
|
||||
/**
|
||||
* Get the world extent for this projection.
|
||||
* @return {import("../extent.js").Extent} Extent.
|
||||
* @api
|
||||
*/
|
||||
getWorldExtent(): import("../extent.js").Extent;
|
||||
/**
|
||||
* Get the axis orientation of this projection.
|
||||
* Example values are:
|
||||
* enu - the default easting, northing, elevation.
|
||||
* neu - northing, easting, up - useful for "lat/long" geographic coordinates,
|
||||
* or south orientated transverse mercator.
|
||||
* wnu - westing, northing, up - some planetary coordinate systems have
|
||||
* "west positive" coordinate systems
|
||||
* @return {string} Axis orientation.
|
||||
* @api
|
||||
*/
|
||||
getAxisOrientation(): string;
|
||||
/**
|
||||
* Is this projection a global projection which spans the whole world?
|
||||
* @return {boolean} Whether the projection is global.
|
||||
* @api
|
||||
*/
|
||||
isGlobal(): boolean;
|
||||
/**
|
||||
* Set if the projection is a global projection which spans the whole world
|
||||
* @param {boolean} global Whether the projection is global.
|
||||
* @api
|
||||
*/
|
||||
setGlobal(global: boolean): void;
|
||||
/**
|
||||
* @return {import("../tilegrid/TileGrid.js").default} The default tile grid.
|
||||
*/
|
||||
getDefaultTileGrid(): import("../tilegrid/TileGrid.js").default;
|
||||
/**
|
||||
* @param {import("../tilegrid/TileGrid.js").default} tileGrid The default tile grid.
|
||||
*/
|
||||
setDefaultTileGrid(tileGrid: import("../tilegrid/TileGrid.js").default): void;
|
||||
/**
|
||||
* Set the validity extent for this projection.
|
||||
* @param {import("../extent.js").Extent} extent Extent.
|
||||
* @api
|
||||
*/
|
||||
setExtent(extent: import("../extent.js").Extent): void;
|
||||
/**
|
||||
* Set the world extent for this projection.
|
||||
* @param {import("../extent.js").Extent} worldExtent World extent
|
||||
* [minlon, minlat, maxlon, maxlat].
|
||||
* @api
|
||||
*/
|
||||
setWorldExtent(worldExtent: import("../extent.js").Extent): void;
|
||||
/**
|
||||
* Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}
|
||||
* for this projection.
|
||||
* @param {function(number, import("../coordinate.js").Coordinate):number} func Function
|
||||
* @api
|
||||
*/
|
||||
setGetPointResolution(func: (arg0: number, arg1: import("../coordinate.js").Coordinate) => number): void;
|
||||
/**
|
||||
* Get the custom point resolution function for this projection (if set).
|
||||
* @return {function(number, import("../coordinate.js").Coordinate):number|undefined} The custom point
|
||||
* resolution function (if set).
|
||||
*/
|
||||
getPointResolutionFunc(): (arg0: number, arg1: import("../coordinate.js").Coordinate) => number | undefined;
|
||||
}
|
||||
//# sourceMappingURL=Projection.d.ts.map
|
||||
1
node_modules/ol/proj/Projection.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/Projection.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Projection.d.ts","sourceRoot":"","sources":["../src/proj/Projection.js"],"names":[],"mappings":";;;;;UAOc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAUG,MAAM,QAAE,OAAO,kBAAkB,EAAE,UAAU,KAAE,MAAM;;AAZ5E;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyEjB;IAtEC;;;OAGG;IACH,cAAyB;IAEzB;;;;;;OAMG;IACH,eAAyE;IAEzE;;;;;;OAMG;IACH,gBAAmE;IAEnE;;;;;;OAMG;IACH,qBACgE;IAEhE;;;OAGG;IACH,yBACyE;IAEzE;;;OAGG;IACH,gBAAoE;IAEpE;;;OAGG;IACH,kBAAiD;IAEjD;;;OAGG;IACH,gCAAyD;IAEzD;;;OAGG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,uBAA2C;IAG7C;;OAEG;IACH,YAFY,OAAO,CAIlB;IAED;;;;OAIG;IACH,WAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;OAIG;IACH,YAHY,OAAO,YAAY,EAAE,OAAO,CAKvC;IAED;;;;;;OAMG;IACH,oBAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,kBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;;;;;;;OAUG;IACH,sBAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,YAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,kBAHW,OAAO,QAMjB;IAED;;OAEG;IACH,sBAFY,OAAO,yBAAyB,EAAE,OAAO,CAIpD;IAED;;OAEG;IACH,6BAFW,OAAO,yBAAyB,EAAE,OAAO,QAInD;IAED;;;;OAIG;IACH,kBAHW,OAAO,cAAc,EAAE,MAAM,QAMvC;IAED;;;;;OAKG;IACH,4BAJW,OAAO,cAAc,EAAE,MAAM,QAMvC;IAED;;;;;OAKG;IACH,mCAHoB,MAAM,QAAE,OAAO,kBAAkB,EAAE,UAAU,KAAE,MAAM,QAKxE;IAED;;;;OAIG;IACH,iCAHqB,MAAM,QAAE,OAAO,kBAAkB,EAAE,UAAU,KAAE,MAAM,GAAC,SAAS,CAKnF;CACF"}
|
||||
246
node_modules/ol/proj/Projection.js
generated
vendored
Normal file
246
node_modules/ol/proj/Projection.js
generated
vendored
Normal file
@@ -0,0 +1,246 @@
|
||||
/**
|
||||
* @module ol/proj/Projection
|
||||
*/
|
||||
import { METERS_PER_UNIT } from './Units.js';
|
||||
/**
|
||||
* @typedef {Object} Options
|
||||
* @property {string} code The SRS identifier code, e.g. `EPSG:4326`.
|
||||
* @property {import("./Units.js").default|string} [units] Units. Required unless a
|
||||
* proj4 projection is defined for `code`.
|
||||
* @property {import("../extent.js").Extent} [extent] The validity extent for the SRS.
|
||||
* @property {string} [axisOrientation='enu'] The axis orientation as specified in Proj4.
|
||||
* @property {boolean} [global=false] Whether the projection is valid for the whole globe.
|
||||
* @property {number} [metersPerUnit] The meters per unit for the SRS.
|
||||
* If not provided, the `units` are used to get the meters per unit from the {@link module:ol/proj/Units~METERS_PER_UNIT}
|
||||
* lookup table.
|
||||
* @property {import("../extent.js").Extent} [worldExtent] The world extent for the SRS.
|
||||
* @property {function(number, import("../coordinate.js").Coordinate):number} [getPointResolution]
|
||||
* Function to determine resolution at a point. The function is called with a
|
||||
* `number` view resolution and a {@link module:ol/coordinate~Coordinate Coordinate} as arguments, and returns
|
||||
* the `number` resolution in projection units at the passed coordinate. If this is `undefined`,
|
||||
* the default {@link module:ol/proj.getPointResolution getPointResolution()} function will be used.
|
||||
*/
|
||||
/**
|
||||
* @classdesc
|
||||
* Projection definition class. One of these is created for each projection
|
||||
* supported in the application and stored in the {@link module:ol/proj} namespace.
|
||||
* You can use these in applications, but this is not required, as API params
|
||||
* and options use {@link module:ol/proj~ProjectionLike} which means the simple string
|
||||
* code will suffice.
|
||||
*
|
||||
* You can use {@link module:ol/proj.get} to retrieve the object for a particular
|
||||
* projection.
|
||||
*
|
||||
* The library includes definitions for `EPSG:4326` and `EPSG:3857`, together
|
||||
* with the following aliases:
|
||||
* * `EPSG:4326`: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326,
|
||||
* urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84,
|
||||
* http://www.opengis.net/gml/srs/epsg.xml#4326,
|
||||
* urn:x-ogc:def:crs:EPSG:4326
|
||||
* * `EPSG:3857`: EPSG:102100, EPSG:102113, EPSG:900913,
|
||||
* urn:ogc:def:crs:EPSG:6.18:3:3857,
|
||||
* http://www.opengis.net/gml/srs/epsg.xml#3857
|
||||
*
|
||||
* If you use [proj4js](https://github.com/proj4js/proj4js), aliases can
|
||||
* be added using `proj4.defs()`. After all required projection definitions are
|
||||
* added, call the {@link module:ol/proj/proj4.register} function.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
var Projection = /** @class */ (function () {
|
||||
/**
|
||||
* @param {Options} options Projection options.
|
||||
*/
|
||||
function Projection(options) {
|
||||
/**
|
||||
* @private
|
||||
* @type {string}
|
||||
*/
|
||||
this.code_ = options.code;
|
||||
/**
|
||||
* Units of projected coordinates. When set to `TILE_PIXELS`, a
|
||||
* `this.extent_` and `this.worldExtent_` must be configured properly for each
|
||||
* tile.
|
||||
* @private
|
||||
* @type {import("./Units.js").default}
|
||||
*/
|
||||
this.units_ = /** @type {import("./Units.js").default} */ (options.units);
|
||||
/**
|
||||
* Validity extent of the projection in projected coordinates. For projections
|
||||
* with `TILE_PIXELS` units, this is the extent of the tile in
|
||||
* tile pixel space.
|
||||
* @private
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
this.extent_ = options.extent !== undefined ? options.extent : null;
|
||||
/**
|
||||
* Extent of the world in EPSG:4326. For projections with
|
||||
* `TILE_PIXELS` units, this is the extent of the tile in
|
||||
* projected coordinate space.
|
||||
* @private
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
this.worldExtent_ =
|
||||
options.worldExtent !== undefined ? options.worldExtent : null;
|
||||
/**
|
||||
* @private
|
||||
* @type {string}
|
||||
*/
|
||||
this.axisOrientation_ =
|
||||
options.axisOrientation !== undefined ? options.axisOrientation : 'enu';
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.global_ = options.global !== undefined ? options.global : false;
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.canWrapX_ = !!(this.global_ && this.extent_);
|
||||
/**
|
||||
* @private
|
||||
* @type {function(number, import("../coordinate.js").Coordinate):number|undefined}
|
||||
*/
|
||||
this.getPointResolutionFunc_ = options.getPointResolution;
|
||||
/**
|
||||
* @private
|
||||
* @type {import("../tilegrid/TileGrid.js").default}
|
||||
*/
|
||||
this.defaultTileGrid_ = null;
|
||||
/**
|
||||
* @private
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.metersPerUnit_ = options.metersPerUnit;
|
||||
}
|
||||
/**
|
||||
* @return {boolean} The projection is suitable for wrapping the x-axis
|
||||
*/
|
||||
Projection.prototype.canWrapX = function () {
|
||||
return this.canWrapX_;
|
||||
};
|
||||
/**
|
||||
* Get the code for this projection, e.g. 'EPSG:4326'.
|
||||
* @return {string} Code.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getCode = function () {
|
||||
return this.code_;
|
||||
};
|
||||
/**
|
||||
* Get the validity extent for this projection.
|
||||
* @return {import("../extent.js").Extent} Extent.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getExtent = function () {
|
||||
return this.extent_;
|
||||
};
|
||||
/**
|
||||
* Get the units of this projection.
|
||||
* @return {import("./Units.js").default} Units.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getUnits = function () {
|
||||
return this.units_;
|
||||
};
|
||||
/**
|
||||
* Get the amount of meters per unit of this projection. If the projection is
|
||||
* not configured with `metersPerUnit` or a units identifier, the return is
|
||||
* `undefined`.
|
||||
* @return {number|undefined} Meters.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getMetersPerUnit = function () {
|
||||
return this.metersPerUnit_ || METERS_PER_UNIT[this.units_];
|
||||
};
|
||||
/**
|
||||
* Get the world extent for this projection.
|
||||
* @return {import("../extent.js").Extent} Extent.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getWorldExtent = function () {
|
||||
return this.worldExtent_;
|
||||
};
|
||||
/**
|
||||
* Get the axis orientation of this projection.
|
||||
* Example values are:
|
||||
* enu - the default easting, northing, elevation.
|
||||
* neu - northing, easting, up - useful for "lat/long" geographic coordinates,
|
||||
* or south orientated transverse mercator.
|
||||
* wnu - westing, northing, up - some planetary coordinate systems have
|
||||
* "west positive" coordinate systems
|
||||
* @return {string} Axis orientation.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.getAxisOrientation = function () {
|
||||
return this.axisOrientation_;
|
||||
};
|
||||
/**
|
||||
* Is this projection a global projection which spans the whole world?
|
||||
* @return {boolean} Whether the projection is global.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.isGlobal = function () {
|
||||
return this.global_;
|
||||
};
|
||||
/**
|
||||
* Set if the projection is a global projection which spans the whole world
|
||||
* @param {boolean} global Whether the projection is global.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.setGlobal = function (global) {
|
||||
this.global_ = global;
|
||||
this.canWrapX_ = !!(global && this.extent_);
|
||||
};
|
||||
/**
|
||||
* @return {import("../tilegrid/TileGrid.js").default} The default tile grid.
|
||||
*/
|
||||
Projection.prototype.getDefaultTileGrid = function () {
|
||||
return this.defaultTileGrid_;
|
||||
};
|
||||
/**
|
||||
* @param {import("../tilegrid/TileGrid.js").default} tileGrid The default tile grid.
|
||||
*/
|
||||
Projection.prototype.setDefaultTileGrid = function (tileGrid) {
|
||||
this.defaultTileGrid_ = tileGrid;
|
||||
};
|
||||
/**
|
||||
* Set the validity extent for this projection.
|
||||
* @param {import("../extent.js").Extent} extent Extent.
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.setExtent = function (extent) {
|
||||
this.extent_ = extent;
|
||||
this.canWrapX_ = !!(this.global_ && extent);
|
||||
};
|
||||
/**
|
||||
* Set the world extent for this projection.
|
||||
* @param {import("../extent.js").Extent} worldExtent World extent
|
||||
* [minlon, minlat, maxlon, maxlat].
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.setWorldExtent = function (worldExtent) {
|
||||
this.worldExtent_ = worldExtent;
|
||||
};
|
||||
/**
|
||||
* Set the getPointResolution function (see {@link module:ol/proj.getPointResolution}
|
||||
* for this projection.
|
||||
* @param {function(number, import("../coordinate.js").Coordinate):number} func Function
|
||||
* @api
|
||||
*/
|
||||
Projection.prototype.setGetPointResolution = function (func) {
|
||||
this.getPointResolutionFunc_ = func;
|
||||
};
|
||||
/**
|
||||
* Get the custom point resolution function for this projection (if set).
|
||||
* @return {function(number, import("../coordinate.js").Coordinate):number|undefined} The custom point
|
||||
* resolution function (if set).
|
||||
*/
|
||||
Projection.prototype.getPointResolutionFunc = function () {
|
||||
return this.getPointResolutionFunc_;
|
||||
};
|
||||
return Projection;
|
||||
}());
|
||||
export default Projection;
|
||||
//# sourceMappingURL=Projection.js.map
|
||||
1
node_modules/ol/proj/Projection.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/Projection.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Projection.js","sourceRoot":"","sources":["../src/proj/Projection.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IACE;;OAEG;IACH,oBAAY,OAAO;QACjB;;;WAGG;QACH,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;QAE1B;;;;;;WAMG;QACH,IAAI,CAAC,MAAM,GAAG,2CAA2C,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAE1E;;;;;;WAMG;QACH,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QAEpE;;;;;;WAMG;QACH,IAAI,CAAC,YAAY;YACf,OAAO,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;QAEjE;;;WAGG;QACH,IAAI,CAAC,gBAAgB;YACnB,OAAO,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC;QAE1E;;;WAGG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,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,uCAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,uCAAkB,GAAlB,UAAmB,QAAQ;QACzB,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,8BAAS,GAAT,UAAU,MAAM;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,mCAAc,GAAd,UAAe,WAAW;QACxB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACH,0CAAqB,GAArB,UAAsB,IAAI;QACxB,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACH,2CAAsB,GAAtB;QACE,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;IACH,iBAAC;AAAD,CAAC,AAzND,IAyNC;AAED,eAAe,UAAU,CAAC"}
|
||||
28
node_modules/ol/proj/Units.d.ts
generated
vendored
Normal file
28
node_modules/ol/proj/Units.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @param {number} code Unit code.
|
||||
* @return {Units} Units.
|
||||
*/
|
||||
export function fromCode(code: number): Units;
|
||||
/**
|
||||
* Meters per unit lookup table.
|
||||
* @const
|
||||
* @type {Object<Units, number>}
|
||||
* @api
|
||||
*/
|
||||
export const METERS_PER_UNIT: any;
|
||||
export default Units;
|
||||
/**
|
||||
* Projection units: `'degrees'`, `'ft'`, `'m'`, `'pixels'`, `'tile-pixels'` or
|
||||
* `'us-ft'`.
|
||||
*/
|
||||
type Units = string;
|
||||
declare namespace Units {
|
||||
const RADIANS: string;
|
||||
const DEGREES: string;
|
||||
const FEET: string;
|
||||
const METERS: string;
|
||||
const PIXELS: string;
|
||||
const TILE_PIXELS: string;
|
||||
const USFEET: string;
|
||||
}
|
||||
//# sourceMappingURL=Units.d.ts.map
|
||||
1
node_modules/ol/proj/Units.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/Units.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Units.d.ts","sourceRoot":"","sources":["../src/proj/Units.js"],"names":[],"mappings":"AA2DA;;;GAGG;AACH,+BAHW,MAAM,GACL,KAAK,CAIhB;AAED;;;;;GAKG;AACH,kCAAkC;;;;;;aAlExB,MAAM"}
|
||||
78
node_modules/ol/proj/Units.js
generated
vendored
Normal file
78
node_modules/ol/proj/Units.js
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @module ol/proj/Units
|
||||
*/
|
||||
/**
|
||||
* Projection units: `'degrees'`, `'ft'`, `'m'`, `'pixels'`, `'tile-pixels'` or
|
||||
* `'us-ft'`.
|
||||
* @enum {string}
|
||||
*/
|
||||
var Units = {
|
||||
/**
|
||||
* Radians
|
||||
* @api
|
||||
*/
|
||||
RADIANS: 'radians',
|
||||
/**
|
||||
* Degrees
|
||||
* @api
|
||||
*/
|
||||
DEGREES: 'degrees',
|
||||
/**
|
||||
* Feet
|
||||
* @api
|
||||
*/
|
||||
FEET: 'ft',
|
||||
/**
|
||||
* Meters
|
||||
* @api
|
||||
*/
|
||||
METERS: 'm',
|
||||
/**
|
||||
* Pixels
|
||||
* @api
|
||||
*/
|
||||
PIXELS: 'pixels',
|
||||
/**
|
||||
* Tile Pixels
|
||||
* @api
|
||||
*/
|
||||
TILE_PIXELS: 'tile-pixels',
|
||||
/**
|
||||
* US Feet
|
||||
* @api
|
||||
*/
|
||||
USFEET: 'us-ft',
|
||||
};
|
||||
/**
|
||||
* See http://duff.ess.washington.edu/data/raster/drg/docs/geotiff.txt
|
||||
* @type {Object<number, Units>}
|
||||
*/
|
||||
var unitByCode = {
|
||||
'9001': Units.METERS,
|
||||
'9002': Units.FEET,
|
||||
'9003': Units.USFEET,
|
||||
'9101': Units.RADIANS,
|
||||
'9102': Units.DEGREES,
|
||||
};
|
||||
/**
|
||||
* @param {number} code Unit code.
|
||||
* @return {Units} Units.
|
||||
*/
|
||||
export function fromCode(code) {
|
||||
return unitByCode[code];
|
||||
}
|
||||
/**
|
||||
* Meters per unit lookup table.
|
||||
* @const
|
||||
* @type {Object<Units, number>}
|
||||
* @api
|
||||
*/
|
||||
export var METERS_PER_UNIT = {};
|
||||
// use the radius of the Normal sphere
|
||||
METERS_PER_UNIT[Units.RADIANS] = 6370997 / (2 * Math.PI);
|
||||
METERS_PER_UNIT[Units.DEGREES] = (2 * Math.PI * 6370997) / 360;
|
||||
METERS_PER_UNIT[Units.FEET] = 0.3048;
|
||||
METERS_PER_UNIT[Units.METERS] = 1;
|
||||
METERS_PER_UNIT[Units.USFEET] = 1200 / 3937;
|
||||
export default Units;
|
||||
//# sourceMappingURL=Units.js.map
|
||||
1
node_modules/ol/proj/Units.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/Units.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Units.js","sourceRoot":"","sources":["../src/proj/Units.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,IAAM,KAAK,GAAG;IACZ;;;OAGG;IACH,OAAO,EAAE,SAAS;IAClB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAClB;;;OAGG;IACH,IAAI,EAAE,IAAI;IACV;;;OAGG;IACH,MAAM,EAAE,GAAG;IACX;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAChB;;;OAGG;IACH,WAAW,EAAE,aAAa;IAC1B;;;OAGG;IACH,MAAM,EAAE,OAAO;CAChB,CAAC;AAEF;;;GAGG;AACH,IAAM,UAAU,GAAG;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,MAAM,EAAE,KAAK,CAAC,IAAI;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,MAAM,EAAE,KAAK,CAAC,OAAO;IACrB,MAAM,EAAE,KAAK,CAAC,OAAO;CACtB,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAI;IAC3B,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,IAAM,eAAe,GAAG,EAAE,CAAC;AAClC,sCAAsC;AACtC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,GAAG,CAAC;AAC/D,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACrC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAClC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,eAAe,KAAK,CAAC"}
|
||||
54
node_modules/ol/proj/epsg3857.d.ts
generated
vendored
Normal file
54
node_modules/ol/proj/epsg3857.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Transformation from EPSG:4326 to EPSG:3857.
|
||||
*
|
||||
* @param {Array<number>} input Input array of coordinate values.
|
||||
* @param {Array<number>} [opt_output] Output array of coordinate values.
|
||||
* @param {number} [opt_dimension] Dimension (default is `2`).
|
||||
* @return {Array<number>} Output array of coordinate values.
|
||||
*/
|
||||
export function fromEPSG4326(input: Array<number>, opt_output?: number[] | undefined, opt_dimension?: number | undefined): Array<number>;
|
||||
/**
|
||||
* Transformation from EPSG:3857 to EPSG:4326.
|
||||
*
|
||||
* @param {Array<number>} input Input array of coordinate values.
|
||||
* @param {Array<number>} [opt_output] Output array of coordinate values.
|
||||
* @param {number} [opt_dimension] Dimension (default is `2`).
|
||||
* @return {Array<number>} Output array of coordinate values.
|
||||
*/
|
||||
export function toEPSG4326(input: Array<number>, opt_output?: number[] | undefined, opt_dimension?: number | undefined): Array<number>;
|
||||
/**
|
||||
* Radius of WGS84 sphere
|
||||
*
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export const RADIUS: number;
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export const HALF_SIZE: number;
|
||||
/**
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export const EXTENT: import("../extent.js").Extent;
|
||||
/**
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export const WORLD_EXTENT: import("../extent.js").Extent;
|
||||
/**
|
||||
* Maximum safe value in y direction
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export const MAX_SAFE_Y: number;
|
||||
/**
|
||||
* Projections equal to EPSG:3857.
|
||||
*
|
||||
* @const
|
||||
* @type {Array<import("./Projection.js").default>}
|
||||
*/
|
||||
export const PROJECTIONS: Array<import("./Projection.js").default>;
|
||||
//# sourceMappingURL=epsg3857.d.ts.map
|
||||
1
node_modules/ol/proj/epsg3857.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/epsg3857.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"epsg3857.d.ts","sourceRoot":"","sources":["../src/proj/epsg3857.js"],"names":[],"mappings":"AA6EA;;;;;;;GAOG;AACH,oCALW,MAAM,MAAM,CAAC,0EAGZ,MAAM,MAAM,CAAC,CAyBxB;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,MAAM,CAAC,0EAGZ,MAAM,MAAM,CAAC,CAoBxB;AAjID;;;;;GAKG;AACH,qBAFU,MAAM,CAEc;AAE9B;;;GAGG;AACH,wBAFU,MAAM,CAE0B;AAE1C;;;GAGG;AACH,qBAFU,OAAO,cAAc,EAAE,MAAM,CAE8B;AAErE;;;GAGG;AACH,2BAFU,OAAO,cAAc,EAAE,MAAM,CAEU;AAEjD;;;;GAIG;AACH,yBAFU,MAAM,CAEmD;AAwBnE;;;;;GAKG;AACH,0BAFU,MAAM,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAShD"}
|
||||
149
node_modules/ol/proj/epsg3857.js
generated
vendored
Normal file
149
node_modules/ol/proj/epsg3857.js
generated
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
/**
|
||||
* @module ol/proj/epsg3857
|
||||
*/
|
||||
import Projection from './Projection.js';
|
||||
import Units from './Units.js';
|
||||
import { cosh } from '../math.js';
|
||||
/**
|
||||
* Radius of WGS84 sphere
|
||||
*
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export var RADIUS = 6378137;
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export var HALF_SIZE = Math.PI * RADIUS;
|
||||
/**
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export var EXTENT = [-HALF_SIZE, -HALF_SIZE, HALF_SIZE, HALF_SIZE];
|
||||
/**
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export var WORLD_EXTENT = [-180, -85, 180, 85];
|
||||
/**
|
||||
* Maximum safe value in y direction
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export var MAX_SAFE_Y = RADIUS * Math.log(Math.tan(Math.PI / 2));
|
||||
/**
|
||||
* @classdesc
|
||||
* Projection object for web/spherical Mercator (EPSG:3857).
|
||||
*/
|
||||
var EPSG3857Projection = /** @class */ (function (_super) {
|
||||
__extends(EPSG3857Projection, _super);
|
||||
/**
|
||||
* @param {string} code Code.
|
||||
*/
|
||||
function EPSG3857Projection(code) {
|
||||
return _super.call(this, {
|
||||
code: code,
|
||||
units: Units.METERS,
|
||||
extent: EXTENT,
|
||||
global: true,
|
||||
worldExtent: WORLD_EXTENT,
|
||||
getPointResolution: function (resolution, point) {
|
||||
return resolution / cosh(point[1] / RADIUS);
|
||||
},
|
||||
}) || this;
|
||||
}
|
||||
return EPSG3857Projection;
|
||||
}(Projection));
|
||||
/**
|
||||
* Projections equal to EPSG:3857.
|
||||
*
|
||||
* @const
|
||||
* @type {Array<import("./Projection.js").default>}
|
||||
*/
|
||||
export var PROJECTIONS = [
|
||||
new EPSG3857Projection('EPSG:3857'),
|
||||
new EPSG3857Projection('EPSG:102100'),
|
||||
new EPSG3857Projection('EPSG:102113'),
|
||||
new EPSG3857Projection('EPSG:900913'),
|
||||
new EPSG3857Projection('http://www.opengis.net/def/crs/EPSG/0/3857'),
|
||||
new EPSG3857Projection('http://www.opengis.net/gml/srs/epsg.xml#3857'),
|
||||
];
|
||||
/**
|
||||
* Transformation from EPSG:4326 to EPSG:3857.
|
||||
*
|
||||
* @param {Array<number>} input Input array of coordinate values.
|
||||
* @param {Array<number>} [opt_output] Output array of coordinate values.
|
||||
* @param {number} [opt_dimension] Dimension (default is `2`).
|
||||
* @return {Array<number>} Output array of coordinate values.
|
||||
*/
|
||||
export function fromEPSG4326(input, opt_output, opt_dimension) {
|
||||
var length = input.length;
|
||||
var dimension = opt_dimension > 1 ? opt_dimension : 2;
|
||||
var output = opt_output;
|
||||
if (output === undefined) {
|
||||
if (dimension > 2) {
|
||||
// preserve values beyond second dimension
|
||||
output = input.slice();
|
||||
}
|
||||
else {
|
||||
output = new Array(length);
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < length; i += dimension) {
|
||||
output[i] = (HALF_SIZE * input[i]) / 180;
|
||||
var y = RADIUS * Math.log(Math.tan((Math.PI * (+input[i + 1] + 90)) / 360));
|
||||
if (y > MAX_SAFE_Y) {
|
||||
y = MAX_SAFE_Y;
|
||||
}
|
||||
else if (y < -MAX_SAFE_Y) {
|
||||
y = -MAX_SAFE_Y;
|
||||
}
|
||||
output[i + 1] = y;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
/**
|
||||
* Transformation from EPSG:3857 to EPSG:4326.
|
||||
*
|
||||
* @param {Array<number>} input Input array of coordinate values.
|
||||
* @param {Array<number>} [opt_output] Output array of coordinate values.
|
||||
* @param {number} [opt_dimension] Dimension (default is `2`).
|
||||
* @return {Array<number>} Output array of coordinate values.
|
||||
*/
|
||||
export function toEPSG4326(input, opt_output, opt_dimension) {
|
||||
var length = input.length;
|
||||
var dimension = opt_dimension > 1 ? opt_dimension : 2;
|
||||
var output = opt_output;
|
||||
if (output === undefined) {
|
||||
if (dimension > 2) {
|
||||
// preserve values beyond second dimension
|
||||
output = input.slice();
|
||||
}
|
||||
else {
|
||||
output = new Array(length);
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < length; i += dimension) {
|
||||
output[i] = (180 * input[i]) / HALF_SIZE;
|
||||
output[i + 1] =
|
||||
(360 * Math.atan(Math.exp(input[i + 1] / RADIUS))) / Math.PI - 90;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
//# sourceMappingURL=epsg3857.js.map
|
||||
1
node_modules/ol/proj/epsg3857.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/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d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Semi-major radius of the WGS84 ellipsoid.
|
||||
*
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export const RADIUS: number;
|
||||
/**
|
||||
* Extent of the EPSG:4326 projection which is the whole world.
|
||||
*
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export const EXTENT: import("../extent.js").Extent;
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export const METERS_PER_UNIT: number;
|
||||
/**
|
||||
* Projections equal to EPSG:4326.
|
||||
*
|
||||
* @const
|
||||
* @type {Array<import("./Projection.js").default>}
|
||||
*/
|
||||
export const PROJECTIONS: Array<import("./Projection.js").default>;
|
||||
//# sourceMappingURL=epsg4326.d.ts.map
|
||||
1
node_modules/ol/proj/epsg4326.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/epsg4326.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"epsg4326.d.ts","sourceRoot":"","sources":["../src/proj/epsg4326.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,qBAFU,MAAM,CAEc;AAE9B;;;;;GAKG;AACH,qBAFU,OAAO,cAAc,EAAE,MAAM,CAEI;AAE3C;;;GAGG;AACH,8BAFU,MAAM,CAEwC;AA4BxD;;;;;GAKG;AACH,0BAFU,MAAM,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAUhD"}
|
||||
82
node_modules/ol/proj/epsg4326.js
generated
vendored
Normal file
82
node_modules/ol/proj/epsg4326.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
/**
|
||||
* @module ol/proj/epsg4326
|
||||
*/
|
||||
import Projection from './Projection.js';
|
||||
import Units from './Units.js';
|
||||
/**
|
||||
* Semi-major radius of the WGS84 ellipsoid.
|
||||
*
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export var RADIUS = 6378137;
|
||||
/**
|
||||
* Extent of the EPSG:4326 projection which is the whole world.
|
||||
*
|
||||
* @const
|
||||
* @type {import("../extent.js").Extent}
|
||||
*/
|
||||
export var EXTENT = [-180, -90, 180, 90];
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
export var METERS_PER_UNIT = (Math.PI * RADIUS) / 180;
|
||||
/**
|
||||
* @classdesc
|
||||
* Projection object for WGS84 geographic coordinates (EPSG:4326).
|
||||
*
|
||||
* Note that OpenLayers does not strictly comply with the EPSG definition.
|
||||
* The EPSG registry defines 4326 as a CRS for Latitude,Longitude (y,x).
|
||||
* OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates.
|
||||
*/
|
||||
var EPSG4326Projection = /** @class */ (function (_super) {
|
||||
__extends(EPSG4326Projection, _super);
|
||||
/**
|
||||
* @param {string} code Code.
|
||||
* @param {string} [opt_axisOrientation] Axis orientation.
|
||||
*/
|
||||
function EPSG4326Projection(code, opt_axisOrientation) {
|
||||
return _super.call(this, {
|
||||
code: code,
|
||||
units: Units.DEGREES,
|
||||
extent: EXTENT,
|
||||
axisOrientation: opt_axisOrientation,
|
||||
global: true,
|
||||
metersPerUnit: METERS_PER_UNIT,
|
||||
worldExtent: EXTENT,
|
||||
}) || this;
|
||||
}
|
||||
return EPSG4326Projection;
|
||||
}(Projection));
|
||||
/**
|
||||
* Projections equal to EPSG:4326.
|
||||
*
|
||||
* @const
|
||||
* @type {Array<import("./Projection.js").default>}
|
||||
*/
|
||||
export var PROJECTIONS = [
|
||||
new EPSG4326Projection('CRS:84'),
|
||||
new EPSG4326Projection('EPSG:4326', 'neu'),
|
||||
new EPSG4326Projection('urn:ogc:def:crs:OGC:1.3:CRS84'),
|
||||
new EPSG4326Projection('urn:ogc:def:crs:OGC:2:84'),
|
||||
new EPSG4326Projection('http://www.opengis.net/def/crs/OGC/1.3/CRS84'),
|
||||
new EPSG4326Projection('http://www.opengis.net/gml/srs/epsg.xml#4326', 'neu'),
|
||||
new EPSG4326Projection('http://www.opengis.net/def/crs/EPSG/0/4326', 'neu'),
|
||||
];
|
||||
//# sourceMappingURL=epsg4326.js.map
|
||||
1
node_modules/ol/proj/epsg4326.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/epsg4326.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"epsg4326.js","sourceRoot":"","sources":["../src/proj/epsg4326.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;GAEG;AACH,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,CAAC,IAAM,MAAM,GAAG,OAAO,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,CAAC,IAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,IAAM,eAAe,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,GAAG,CAAC;AAExD;;;;;;;GAOG;AACH;IAAiC,sCAAU;IACzC;;;OAGG;IACH,4BAAY,IAAI,EAAE,mBAAmB;eACnC,kBAAM;YACJ,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK,CAAC,OAAO;YACpB,MAAM,EAAE,MAAM;YACd,eAAe,EAAE,mBAAmB;YACpC,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,eAAe;YAC9B,WAAW,EAAE,MAAM;SACpB,CAAC;IACJ,CAAC;IACH,yBAAC;AAAD,CAAC,AAhBD,CAAiC,UAAU,GAgB1C;AAED;;;;;GAKG;AACH,MAAM,CAAC,IAAM,WAAW,GAAG;IACzB,IAAI,kBAAkB,CAAC,QAAQ,CAAC;IAChC,IAAI,kBAAkB,CAAC,WAAW,EAAE,KAAK,CAAC;IAC1C,IAAI,kBAAkB,CAAC,+BAA+B,CAAC;IACvD,IAAI,kBAAkB,CAAC,0BAA0B,CAAC;IAClD,IAAI,kBAAkB,CAAC,8CAA8C,CAAC;IACtE,IAAI,kBAAkB,CAAC,8CAA8C,EAAE,KAAK,CAAC;IAC7E,IAAI,kBAAkB,CAAC,4CAA4C,EAAE,KAAK,CAAC;CAC5E,CAAC"}
|
||||
13
node_modules/ol/proj/proj4.d.ts
generated
vendored
Normal file
13
node_modules/ol/proj/proj4.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Make projections defined in proj4 (with `proj4.defs()`) available in
|
||||
* OpenLayers.
|
||||
*
|
||||
* This function should be called whenever changes are made to the proj4
|
||||
* registry, e.g. after calling `proj4.defs()`. Existing transforms will not be
|
||||
* modified by this function.
|
||||
*
|
||||
* @param {?} proj4 Proj4.
|
||||
* @api
|
||||
*/
|
||||
export function register(proj4: unknown): void;
|
||||
//# sourceMappingURL=proj4.d.ts.map
|
||||
1
node_modules/ol/proj/proj4.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/proj4.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"proj4.d.ts","sourceRoot":"","sources":["../src/proj/proj4.js"],"names":[],"mappings":"AAcA;;;;;;;;;;GAUG;AACH,+CA2CC"}
|
||||
57
node_modules/ol/proj/proj4.js
generated
vendored
Normal file
57
node_modules/ol/proj/proj4.js
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @module ol/proj/proj4
|
||||
*/
|
||||
import Projection from './Projection.js';
|
||||
import Units from './Units.js';
|
||||
import { addCoordinateTransforms, addEquivalentProjections, addProjection, createSafeCoordinateTransform, get, } from '../proj.js';
|
||||
import { get as getTransform } from './transforms.js';
|
||||
/**
|
||||
* Make projections defined in proj4 (with `proj4.defs()`) available in
|
||||
* OpenLayers.
|
||||
*
|
||||
* This function should be called whenever changes are made to the proj4
|
||||
* registry, e.g. after calling `proj4.defs()`. Existing transforms will not be
|
||||
* modified by this function.
|
||||
*
|
||||
* @param {?} proj4 Proj4.
|
||||
* @api
|
||||
*/
|
||||
export function register(proj4) {
|
||||
var projCodes = Object.keys(proj4.defs);
|
||||
var len = projCodes.length;
|
||||
var i, j;
|
||||
for (i = 0; i < len; ++i) {
|
||||
var code = projCodes[i];
|
||||
if (!get(code)) {
|
||||
var def = proj4.defs(code);
|
||||
var units = def.units;
|
||||
if (!units && def.projName === 'longlat') {
|
||||
units = Units.DEGREES;
|
||||
}
|
||||
addProjection(new Projection({
|
||||
code: code,
|
||||
axisOrientation: def.axis,
|
||||
metersPerUnit: def.to_meter,
|
||||
units: units,
|
||||
}));
|
||||
}
|
||||
}
|
||||
for (i = 0; i < len; ++i) {
|
||||
var code1 = projCodes[i];
|
||||
var proj1 = get(code1);
|
||||
for (j = 0; j < len; ++j) {
|
||||
var code2 = projCodes[j];
|
||||
var proj2 = get(code2);
|
||||
if (!getTransform(code1, code2)) {
|
||||
if (proj4.defs[code1] === proj4.defs[code2]) {
|
||||
addEquivalentProjections([proj1, proj2]);
|
||||
}
|
||||
else {
|
||||
var transform = proj4(code1, code2);
|
||||
addCoordinateTransforms(proj1, proj2, createSafeCoordinateTransform(proj1, proj2, transform.forward), createSafeCoordinateTransform(proj2, proj1, transform.inverse));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=proj4.js.map
|
||||
1
node_modules/ol/proj/proj4.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/proj4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"proj4.js","sourceRoot":"","sources":["../src/proj/proj4.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,6BAA6B,EAC7B,GAAG,GACJ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,GAAG,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAK;IAC5B,IAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;QACxB,IAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACd,IAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,IAAI,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;YACtB,IAAI,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,KAAK,SAAS,EAAE;gBACxC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;aACvB;YACD,aAAa,CACX,IAAI,UAAU,CAAC;gBACb,IAAI,EAAE,IAAI;gBACV,eAAe,EAAE,GAAG,CAAC,IAAI;gBACzB,aAAa,EAAE,GAAG,CAAC,QAAQ;gBAC3B,KAAK,OAAA;aACN,CAAC,CACH,CAAC;SACH;KACF;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;QACxB,IAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;YACxB,IAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;gBAC/B,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBAC3C,wBAAwB,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;iBAC1C;qBAAM;oBACL,IAAM,SAAS,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;oBACtC,uBAAuB,CACrB,KAAK,EACL,KAAK,EACL,6BAA6B,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9D,6BAA6B,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,CAC/D,CAAC;iBACH;aACF;SACF;KACF;AACH,CAAC"}
|
||||
17
node_modules/ol/proj/projections.d.ts
generated
vendored
Normal file
17
node_modules/ol/proj/projections.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Clear the projections cache.
|
||||
*/
|
||||
export function clear(): void;
|
||||
/**
|
||||
* Get a cached projection by code.
|
||||
* @param {string} code The code for the projection.
|
||||
* @return {import("./Projection.js").default} The projection (if cached).
|
||||
*/
|
||||
export function get(code: string): import("./Projection.js").default;
|
||||
/**
|
||||
* Add a projection to the cache.
|
||||
* @param {string} code The projection code.
|
||||
* @param {import("./Projection.js").default} projection The projection to cache.
|
||||
*/
|
||||
export function add(code: string, projection: import("./Projection.js").default): void;
|
||||
//# sourceMappingURL=projections.d.ts.map
|
||||
1
node_modules/ol/proj/projections.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/projections.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../src/proj/projections.js"],"names":[],"mappings":"AASA;;GAEG;AACH,8BAEC;AAED;;;;GAIG;AACH,0BAHW,MAAM,GACL,OAAO,iBAAiB,EAAE,OAAO,CAQ5C;AAED;;;;GAIG;AACH,0BAHW,MAAM,cACN,OAAO,iBAAiB,EAAE,OAAO,QAI3C"}
|
||||
32
node_modules/ol/proj/projections.js
generated
vendored
Normal file
32
node_modules/ol/proj/projections.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @module ol/proj/projections
|
||||
*/
|
||||
/**
|
||||
* @type {Object<string, import("./Projection.js").default>}
|
||||
*/
|
||||
var cache = {};
|
||||
/**
|
||||
* Clear the projections cache.
|
||||
*/
|
||||
export function clear() {
|
||||
cache = {};
|
||||
}
|
||||
/**
|
||||
* Get a cached projection by code.
|
||||
* @param {string} code The code for the projection.
|
||||
* @return {import("./Projection.js").default} The projection (if cached).
|
||||
*/
|
||||
export function get(code) {
|
||||
return (cache[code] ||
|
||||
cache[code.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, 'EPSG:$3')] ||
|
||||
null);
|
||||
}
|
||||
/**
|
||||
* Add a projection to the cache.
|
||||
* @param {string} code The projection code.
|
||||
* @param {import("./Projection.js").default} projection The projection to cache.
|
||||
*/
|
||||
export function add(code, projection) {
|
||||
cache[code] = projection;
|
||||
}
|
||||
//# sourceMappingURL=projections.js.map
|
||||
1
node_modules/ol/proj/projections.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/projections.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"projections.js","sourceRoot":"","sources":["../src/proj/projections.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,IAAI,KAAK,GAAG,EAAE,CAAC;AAEf;;GAEG;AACH,MAAM,UAAU,KAAK;IACnB,KAAK,GAAG,EAAE,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,IAAI;IACtB,OAAO,CACL,KAAK,CAAC,IAAI,CAAC;QACX,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,wCAAwC,EAAE,SAAS,CAAC,CAAC;QACxE,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,UAAU;IAClC,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;AAC3B,CAAC"}
|
||||
31
node_modules/ol/proj/transforms.d.ts
generated
vendored
Normal file
31
node_modules/ol/proj/transforms.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Clear the transform cache.
|
||||
*/
|
||||
export function clear(): void;
|
||||
/**
|
||||
* Registers a conversion function to convert coordinates from the source
|
||||
* projection to the destination projection.
|
||||
*
|
||||
* @param {import("./Projection.js").default} source Source.
|
||||
* @param {import("./Projection.js").default} destination Destination.
|
||||
* @param {import("../proj.js").TransformFunction} transformFn Transform.
|
||||
*/
|
||||
export function add(source: import("./Projection.js").default, destination: import("./Projection.js").default, transformFn: import("../proj.js").TransformFunction): void;
|
||||
/**
|
||||
* Unregisters the conversion function to convert coordinates from the source
|
||||
* projection to the destination projection. This method is used to clean up
|
||||
* cached transforms during testing.
|
||||
*
|
||||
* @param {import("./Projection.js").default} source Source projection.
|
||||
* @param {import("./Projection.js").default} destination Destination projection.
|
||||
* @return {import("../proj.js").TransformFunction} transformFn The unregistered transform.
|
||||
*/
|
||||
export function remove(source: import("./Projection.js").default, destination: import("./Projection.js").default): import("../proj.js").TransformFunction;
|
||||
/**
|
||||
* Get a transform given a source code and a destination code.
|
||||
* @param {string} sourceCode The code for the source projection.
|
||||
* @param {string} destinationCode The code for the destination projection.
|
||||
* @return {import("../proj.js").TransformFunction|undefined} The transform function (if found).
|
||||
*/
|
||||
export function get(sourceCode: string, destinationCode: string): import("../proj.js").TransformFunction | undefined;
|
||||
//# sourceMappingURL=transforms.d.ts.map
|
||||
1
node_modules/ol/proj/transforms.d.ts.map
generated
vendored
Normal file
1
node_modules/ol/proj/transforms.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transforms.d.ts","sourceRoot":"","sources":["../src/proj/transforms.js"],"names":[],"mappings":"AAWA;;GAEG;AACH,8BAEC;AAED;;;;;;;GAOG;AACH,4BAJW,OAAO,iBAAiB,EAAE,OAAO,eACjC,OAAO,iBAAiB,EAAE,OAAO,eACjC,OAAO,YAAY,EAAE,iBAAiB,QAShD;AAED;;;;;;;;GAQG;AACH,+BAJW,OAAO,iBAAiB,EAAE,OAAO,eACjC,OAAO,iBAAiB,EAAE,OAAO,GAChC,OAAO,YAAY,EAAE,iBAAiB,CAWjD;AAED;;;;;GAKG;AACH,gCAJW,MAAM,mBACN,MAAM,GACL,OAAO,YAAY,EAAE,iBAAiB,GAAC,SAAS,CAQ3D"}
|
||||
64
node_modules/ol/proj/transforms.js
generated
vendored
Normal file
64
node_modules/ol/proj/transforms.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* @module ol/proj/transforms
|
||||
*/
|
||||
import { isEmpty } from '../obj.js';
|
||||
/**
|
||||
* @private
|
||||
* @type {!Object<string, Object<string, import("../proj.js").TransformFunction>>}
|
||||
*/
|
||||
var transforms = {};
|
||||
/**
|
||||
* Clear the transform cache.
|
||||
*/
|
||||
export function clear() {
|
||||
transforms = {};
|
||||
}
|
||||
/**
|
||||
* Registers a conversion function to convert coordinates from the source
|
||||
* projection to the destination projection.
|
||||
*
|
||||
* @param {import("./Projection.js").default} source Source.
|
||||
* @param {import("./Projection.js").default} destination Destination.
|
||||
* @param {import("../proj.js").TransformFunction} transformFn Transform.
|
||||
*/
|
||||
export function add(source, destination, transformFn) {
|
||||
var sourceCode = source.getCode();
|
||||
var destinationCode = destination.getCode();
|
||||
if (!(sourceCode in transforms)) {
|
||||
transforms[sourceCode] = {};
|
||||
}
|
||||
transforms[sourceCode][destinationCode] = transformFn;
|
||||
}
|
||||
/**
|
||||
* Unregisters the conversion function to convert coordinates from the source
|
||||
* projection to the destination projection. This method is used to clean up
|
||||
* cached transforms during testing.
|
||||
*
|
||||
* @param {import("./Projection.js").default} source Source projection.
|
||||
* @param {import("./Projection.js").default} destination Destination projection.
|
||||
* @return {import("../proj.js").TransformFunction} transformFn The unregistered transform.
|
||||
*/
|
||||
export function remove(source, destination) {
|
||||
var sourceCode = source.getCode();
|
||||
var destinationCode = destination.getCode();
|
||||
var transform = transforms[sourceCode][destinationCode];
|
||||
delete transforms[sourceCode][destinationCode];
|
||||
if (isEmpty(transforms[sourceCode])) {
|
||||
delete transforms[sourceCode];
|
||||
}
|
||||
return transform;
|
||||
}
|
||||
/**
|
||||
* Get a transform given a source code and a destination code.
|
||||
* @param {string} sourceCode The code for the source projection.
|
||||
* @param {string} destinationCode The code for the destination projection.
|
||||
* @return {import("../proj.js").TransformFunction|undefined} The transform function (if found).
|
||||
*/
|
||||
export function get(sourceCode, destinationCode) {
|
||||
var transform;
|
||||
if (sourceCode in transforms && destinationCode in transforms[sourceCode]) {
|
||||
transform = transforms[sourceCode][destinationCode];
|
||||
}
|
||||
return transform;
|
||||
}
|
||||
//# sourceMappingURL=transforms.js.map
|
||||
1
node_modules/ol/proj/transforms.js.map
generated
vendored
Normal file
1
node_modules/ol/proj/transforms.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"transforms.js","sourceRoot":"","sources":["../src/proj/transforms.js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