Module: ol/proj/Projection




Type Definitions


Name Type Argument Default Description
code string

The SRS identifier code, e.g. EPSG:4326.

units module:ol/proj/Units | string <optional>

Units. Required unless a proj4 projection is defined for code.

extent module:ol/extent~Extent <optional>

The validity extent for the SRS.

axisOrientation string <optional>

The axis orientation as specified in Proj4.

global boolean <optional>

Whether the projection is valid for the whole globe.

metersPerUnit number <optional>

The meters per unit for the SRS. If not provided, the units are used to get the meters per unit from the module:ol/proj/Units~METERS_PER_UNIT lookup table.

worldExtent module:ol/extent~Extent <optional>

The world extent for the SRS.

getPointResolution function <optional>

Function to determine resolution at a point. The function is called with a {number} view resolution and an {module:ol/coordinate~Coordinate} as arguments, and returns the {number} resolution at the passed coordinate. If this is undefined, the default module:ol/proj#getPointResolution function will be used.