ol. ol.proj

Source:
  • proj.jsdoc, line 1

Classes

ol.proj.Projection

Members

<static> ProjectionLike

Stability: not documented
Source:
  • proj.js, line 35

<static> Units :string

Stability: experimental
Properties:
Name Type Default Description
DEGREES string degrees
FEET string ft
METERS string m
PIXELS string pixels
Source:
  • proj.js, line 42

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.

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 29