Class: ol.projection.EPSG3857

ol.projection.EPSG3857

new EPSG3857

Parameters:
Name Type Description
code string Code.
Source:
  • epsg3857.js, line 17

Extends

Members

<static> CODES :Array.<string>

Lists several projection codes with the same meaning as EPSG:3857.
Source:
  • epsg3857.js, line 56

<static, constant> EXTENT :ol.Extent

Source:
  • epsg3857.js, line 46

<static, constant> HALF_SIZE :number

Source:
  • epsg3857.js, line 39

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

Projections equal to EPSG:3857.
Source:
  • epsg3857.js, line 70

<static, constant> RADIUS :number

Source:
  • epsg3857.js, line 32

Methods

getAxisOrientation

Inherited From:
Source:
  • projection.js, line 144
Returns:
Axis orientation.
Type
string

getCode

Inherited From:
Source:
  • projection.js, line 104
Returns:
Code.
Type
string

getDefaultTileGrid

Inherited From:
Source:
  • projection.js, line 160
Returns:
The default tile grid.
Type
ol.tilegrid.TileGrid

getExtent

Inherited From:
Source:
  • projection.js, line 112
Returns:
Extent.
Type
ol.Extent

getMetersPerUnit

Inherited From:
Source:
  • projection.js, line 136
Returns:
Meters.
Type
number

getPointResolution

Source:
  • epsg3857.js, line 141

getUnits

Inherited From:
Source:
  • projection.js, line 128
Returns:
Units.
Type
ol.ProjectionUnits

isGlobal

Inherited From:
Source:
  • projection.js, line 152
Returns:
Wether the projection is global.
Type
boolean

setDefaultTileGrid

Parameters:
Name Type Description
tileGrid ol.tilegrid.TileGrid The default tile grid.
Inherited From:
Source:
  • projection.js, line 168

<static> fromEPSG4326

Transformation from EPSG:4326 to EPSG:3857.
Parameters:
Name Type Argument Description
input Array.<number> Input array of coordinate values.
output Array.<number>= <optional>
(Optional) Output array of coordinate values.
dimension number= <optional>
(Optional) Dimension (default is 2).
Source:
  • epsg3857.js, line 85
Returns:
Output array of coordinate values.
Type
Array.<number>

<static> toEPSG4326

Transformation from EPSG:3857 to EPSG:4326.
Parameters:
Name Type Argument Description
input Array.<number> Input array of coordinate values.
output Array.<number>= <optional>
(Optional) Output array of coordinate values.
dimension number= <optional>
(Optional) Dimension (default is 2).
Source:
  • epsg3857.js, line 116
Returns:
Output array of coordinate values.
Type
Array.<number>