Class: ol.Projection

ol.Projection

new Projection

Parameters:
Name Type Description
code string Code.
units ol.ProjectionUnits Units.
extent ol.Extent Extent.
Source:
  • projection.js, line 34

Members

<static, constant> EPSG_3857_EXTENT :ol.Extent

Source:
  • projection.js, line 447

<static, constant> EPSG_3857_HALF_SIZE :number

Source:
  • projection.js, line 440

<static, constant> EPSG_3857_RADIUS :number

Source:
  • projection.js, line 409

<static, constant> EPSG_4326_LIKE_PROJECTIONS :Array.<ol.Projection>

Source:
  • projection.js, line 504

Methods

<static> addProj4jsProjection

Parameters:
Name Type Description
proj4jsProjection ol.Proj4jsProjection Proj4js projection.
Source:
  • projection.js, line 171

<static> addProjection

Parameters:
Name Type Description
projection ol.Projection Projection.
Source:
  • projection.js, line 182

<static> addProjections

Parameters:
Name Type Description
projections Array.<ol.Projection> Projections.
Source:
  • projection.js, line 195

<static> addTransform

Parameters:
Name Type Description
source ol.Projection Source.
destination ol.Projection Destination.
transformFn ol.TransformFunction Transform.
Source:
  • projection.js, line 224

<static> cloneTransform

Parameters:
Name Type Description
point ol.Coordinate Point.
Source:
  • projection.js, line 374
Returns:
Point.
Type
ol.Coordinate

<static> createProjection

Parameters:
Name Type Description
projection ol.Projection | string | undefined Projection.
defaultCode string Default code.
Source:
  • projection.js, line 207
Returns:
Projection.
Type
ol.Projection

<static> equivalent

Parameters:
Name Type Description
projection1 ol.Projection Projection 1.
projection2 ol.Projection Projection 2.
Source:
  • projection.js, line 277
Returns:
Equivalent.
Type
boolean

<static> forwardSphericalMercator

Parameters:
Name Type Description
point ol.Coordinate Point.
Source:
  • projection.js, line 416
Returns:
Point.
Type
ol.Coordinate

<static> getFromCode

Parameters:
Name Type Description
code string Code.
Source:
  • projection.js, line 242
Returns:
Projection.
Type
ol.Projection

<static> getTransform

Parameters:
Name Type Description
source ol.Projection Source.
destination ol.Projection Destination.
Source:
  • projection.js, line 294
Returns:
Transform.
Type
ol.TransformFunction

<static> getTransformFromCodes

Parameters:
Name Type Description
sourceCode string Source code.
destinationCode string Destination code.
Source:
  • projection.js, line 346
Returns:
Transform.
Type
ol.TransformFunction

<static> identityTransform

Parameters:
Name Type Description
point ol.Coordinate Point.
Source:
  • projection.js, line 365
Returns:
Point.
Type
ol.Coordinate

<static> inverseSphericalMercator

Parameters:
Name Type Description
point ol.Coordinate Point.
Source:
  • projection.js, line 428
Returns:
Point.
Type
ol.Coordinate

<static> isProj4jsSupported

Source:
  • projection.js, line 356
Returns:
Has Proj4js.
Type
boolean

<static> transform

Parameters:
Name Type Description
point ol.Coordinate Point.
source ol.Projection Source.
destination ol.Projection Destination.
Source:
  • projection.js, line 385
Returns:
Point.
Type
ol.Coordinate

<static> transformWithCodes

Parameters:
Name Type Description
point ol.Coordinate Point.
sourceCode string Source code.
destinationCode string Destination code.
Source:
  • projection.js, line 397
Returns:
Point.
Type
ol.Coordinate

getCode

Source:
  • projection.js, line 60
Returns:
Code.
Type
string

getExtent

Source:
  • projection.js, line 68
Returns:
Extent.
Type
ol.Extent

getUnits

Source:
  • projection.js, line 76
Returns:
Units.
Type
ol.ProjectionUnits