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 52

<static, constant> EXTENT :ol.Extent

Source:
  • epsg3857.js, line 42

<static, constant> HALF_SIZE :number

Source:
  • epsg3857.js, line 35

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

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

<static, constant> RADIUS :number

Source:
  • epsg3857.js, line 28

Methods

getAxisOrientation

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

getCode

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

getDefaultTileGrid

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

getExtent

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

getPointResolution

Source:
  • epsg3857.js, line 137

getUnits

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

setDefaultTileGrid

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

<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 81
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 112
Returns:
Output array of coordinate values.
Type
Array.<number>