ol. ol.proj

Source:
  • proj.jsdoc, line 1

Classes

ol.proj.CH
ol.proj.EPSG2056
ol.proj.EPSG3857
ol.proj.EPSG4326
ol.proj.EPSG21781
ol.proj.Projection

Members

<static, constant> METERS_PER_UNIT[undefined] :Object.<ol.proj.Units, number>

Stability: experimental

Meters per unit lookup table.

Source:
  • proj.js, line 52

Methods

<static> addProjection

Stability: experimental
Parameters:
Name Type Description
projection ol.proj.Projection

Projection.

Source:
  • proj.js, line 376

<static> configureProj4jsProjection

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

Proj4js projection options.

Properties
Name Type Description
code string

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

extent ol.Extent | undefined

The validity extent for the SRS.

global boolean | undefined

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

Source:
  • proj.js, line 721
Returns:

Proj4js projection.

Type
ol.proj.Projection

<static> get

Stability: experimental
Parameters:
Name Type Description
projectionLike ol.proj.ProjectionLike

Either a code string which is a combination of authority and identifier such as "EPSG:4326", or an existing projection object, or undefined.

Source:
  • proj.js, line 474
Returns:

Projection.

Type
ol.proj.Projection

<static> getTransform

Stability: experimental

Given the projection-like objects this method searches for a transformation function to convert a coordinates array from the source projection to the destination projection.

Parameters:
Name Type Description
source ol.proj.ProjectionLike

Source.

destination ol.proj.ProjectionLike

Destination.

Source:
  • proj.js, line 556
Returns:

Transform.

Type
ol.TransformFunction

<static> getTransformFromProjections

Stability: experimental

Searches a function that can be used to convert coordinates from the source projection to the destination projection.

Parameters:
Name Type Description
sourceProjection ol.proj.Projection

Source projection.

destinationProjection ol.proj.Projection

Destination projection.

Source:
  • proj.js, line 573
Returns:

Transform.

Type
ol.TransformFunction

<static> transform

Stability: experimental
Parameters:
Name Type Description
point ol.Coordinate

Point.

source ol.proj.ProjectionLike

Source.

destination ol.proj.ProjectionLike

Destination.

Source:
  • proj.js, line 693
Returns:

Point.

Type
ol.Coordinate

<static> transformWithProjections

Stability: experimental

Transforms the given point to the destination projection.

Parameters:
Name Type Description
point ol.Coordinate

Point.

sourceProjection ol.proj.Projection

Source projection.

destinationProjection ol.proj.Projection

Destination projection.

Source:
  • proj.js, line 708
Returns:

Point.

Type
ol.Coordinate

TypeDefs

ProjectionLike

Stability: experimental

A projection as ol.proj.Projection, SRS identifier string or undefined.

Source:
  • proj.js, line 24

Units

Stability: experimental

Projection units: 'degrees', 'ft', 'm' or 'pixels'.

Source:
  • proj.js, line 38