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 476
-
<static, constant> EPSG_3857_HALF_SIZE :number
-
- Source:
- projection.js, line 469
-
<static, constant> EPSG_3857_RADIUS :number
-
- Source:
- projection.js, line 434
-
<static, constant> EPSG_4326_LIKE_PROJECTIONS :Array.<ol.Projection>
-
Projections equal to EPSG:4326.
- Source:
- projection.js, line 542
Methods
-
<static> addProj4jsProjection
-
Parameters:
Name Type Description proj4jsProjectionol.Proj4jsProjection Proj4js projection. - Source:
- projection.js, line 179
-
<static> addProjection
-
Parameters:
Name Type Description projectionol.Projection Projection. - Source:
- projection.js, line 190
-
<static> addProjections
-
Parameters:
Name Type Description projectionsArray.<ol.Projection> Projections. - Source:
- projection.js, line 203
-
<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 235
-
<static> cloneTransform
-
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 397
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 215
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 293
Returns:
Equivalent.- Type
- boolean
-
<static> forwardSphericalMercator
-
Transformation from EPSG:4326 to EPSG:3857.
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 443
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 254
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 313
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 369
Returns:
Transform.- Type
- ol.TransformFunction
-
<static> identityTransform
-
Parameters:
Name Type Description pointol.Coordinate Point. - Source:
- projection.js, line 388
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 457
Returns:
Point.- Type
- ol.Coordinate
-
<static> isProj4jsSupported
-
- Source:
- projection.js, line 379
Returns:
True if Proj4js is available and enabled.- Type
- boolean
-
<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 410
Returns:
Point.- Type
- ol.Coordinate
-
<static> transformWithCodes
-
Parameters:
Name Type Description pointol.Coordinate Point. sourceCodestring Source code. destinationCodestring Destination code. - Source:
- projection.js, line 422
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