new Projection
Parameters:
| Name | Type | Description |
|---|---|---|
code |
string | Code. |
units |
ol.ProjectionUnits | Units. |
extent |
ol.Extent | Extent. |
- Source:
- projection.js, line 40
Members
-
<static, constant> EPSG_3857_EXTENT :ol.Extent
-
- Source:
- projection.js, line 474
-
<static, constant> EPSG_3857_HALF_SIZE :number
-
- Source:
- projection.js, line 467
-
<static, constant> EPSG_3857_RADIUS :number
-
- Source:
- projection.js, line 432
-
<static, constant> EPSG_4326_LIKE_PROJECTIONS :Array.<ol.Projection>
-
Projections equal to EPSG:4326.
- Source:
- projection.js, line 540
Methods
-
<static> addProj4jsProjection
-
Parameters:
Name Type Description proj4jsProjectionol.Proj4jsProjection Proj4js projection. - Source:
- projection.js, line 185
-
<static> addProjection
-
Parameters:
Name Type Description projectionol.Projection Projection. - Source:
- projection.js, line 196
-
<static> addProjections
-
Parameters:
Name Type Description projectionsArray.<ol.Projection> Projections. - Source:
- projection.js, line 209
-
<static> addTransform
-
Registers a conversion function to convert coordinates from the source projection to the destination projection.
Parameters:
Name Type Description sourceol.Projection Source. destinationol.Projection Destination. transformFnol.TransformFunction Transform. - Source:
- projection.js, line 241
-
<static> cloneTransform
-
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 395
Returns:
Equal point (different reference).- Type
- ol.Coordinate
-
<static> createProjection
-
Parameters:
Name Type Description projectionol.Projection | string | undefined Projection. defaultCodestring Default code. - Source:
- projection.js, line 221
Returns:
Projection.- Type
- ol.Projection
-
<static> equivalent
-
Checks if two projections are the same, that is every coordinate in one projection does represent the same geographic point as the same coordinate in the other projection.
Parameters:
Name Type Description projection1ol.Projection Projection 1. projection2ol.Projection Projection 2. - Source:
- projection.js, line 299
Returns:
Equivalent.- Type
- boolean
-
<static> forwardSphericalMercator
-
Transformation from EPSG:4326 to EPSG:3857.
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 441
Returns:
Point.- Type
- ol.Coordinate
-
<static> getFromCode
-
Parameters:
Name Type Description codestring Code which is a combination of authority and identifier such as “EPSG:4326”. - Source:
- projection.js, line 260
Returns:
Projection.- Type
- ol.Projection
-
<static> getTransform
-
Searches a function that can be used to convert coordinates from the source projection to the destination projection.
Parameters:
Name Type Description sourceol.Projection Source. destinationol.Projection Destination. - Source:
- projection.js, line 319
Returns:
Transform.- Type
- ol.TransformFunction
-
<static> getTransformFromCodes
-
Given the projection codes this method searches for a transformation function to convert coordinate from the source projection to the destination projection.
Parameters:
Name Type Description sourceCodestring Source code. destinationCodestring Destination code. - Source:
- projection.js, line 375
Returns:
Transform.- Type
- ol.TransformFunction
-
<static> identityTransform
-
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 386
Returns:
Unaltered point (same reference).- Type
- ol.Coordinate
-
<static> inverseSphericalMercator
-
Transformation from EPSG:3857 to EPSG:4326.
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 455
Returns:
Point.- Type
- ol.Coordinate
-
<static> transform
-
Transforms the given point to the destination projection.
Parameters:
Name Type Description pointol.Coordinate Point. sourceol.Projection Source. destinationol.Projection Destination. - Source:
- projection.js, line 408
Returns:
Point.- Type
- ol.Coordinate
-
<static> transformWithCodes
-
Parameters:
Name Type Description pointol.Coordinate Point. sourceCodestring Source code. destinationCodestring Destination code. - Source:
- projection.js, line 420
Returns:
Point.- Type
- ol.Coordinate
-
getCode
-
- Source:
- projection.js, line 66
Returns:
Code.- Type
- string
-
getExtent
-
- Source:
- projection.js, line 74
Returns:
Extent.- Type
- ol.Extent
-
getUnits
-
- Source:
- projection.js, line 82
Returns:
Units.- Type
- ol.ProjectionUnits