Class: Projection

ol.proj. Projection

experimental new ol.proj.Projection(options)

Name Type Description
options

Projection options.

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.

Subclasses

Methods

experimental getCode(){string}

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

experimental getExtent(){ol.Extent}

Get the validity extent for this projection.

experimental getUnits(){ol.proj.Units}

Get the units of this projection.