ol.proj. ol.proj.Projection

new Projection

Stability: experimental
Parameters:
Name Type Description
options olx.ProjectionOptions

Projection options.

Properties
Name Type Description
code string

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

units ol.proj.Units | string

Units.

extent ol.Extent | undefined

The validity extent for the SRS.

axisOrientation string | undefined

The axis orientation as specified in Proj4. The default is enu.

global boolean | undefined

Whether the projection is valid for the whole globe. Default is false.

Source:
  • proj.js, line 65

Methods

getCode

Stability: experimental

Get the code for this projection, e.g. 'EPSG:4326'.

Source:
  • proj.js, line 112
Returns:

Code.

Type
string

getExtent

Stability: experimental

Get the validity extent for this projection.

Source:
  • proj.js, line 122
Returns:

Extent.

Type
ol.Extent

getUnits

Stability: experimental

Get the units of this projection.

Source:
  • proj.js, line 145
Returns:

Units.

Type
ol.proj.Units