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 33

Members

<static, constant> EPSG_3857_EXTENT :ol.Extent

Source:
  • projection.js, line 425

<static, constant> EPSG_3857_HALF_SIZE :number

Source:
  • projection.js, line 418

<static, constant> EPSG_3857_RADIUS :number

Source:
  • projection.js, line 387

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

Source:
  • projection.js, line 482

Methods

<static> addProj4jsProjection

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

<static> addProjection

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

<static> addProjections

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

<static> addTransform

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

<static> cloneTransform

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

<static> equivalent

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

<static> forwardSphericalMercator

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

getCode

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

getExtent

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

<static> getFromCode

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

<static> getTransform

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

<static> getTransformFromCodes

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

getUnits

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

<static> identityTransform

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

<static> inverseSphericalMercator

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

<static> isProj4jsSupported

Source:
  • projection.js, line 334
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 363
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 375
Returns:
Point.
Type
ol.Coordinate