- Source:
- proj.jsdoc, line 1
Classes
Members
-
<static, constant> METERS_PER_UNIT[undefined] :Object.<ol.proj.Units, number>
Stability: experimental -
Meters per unit lookup table.
- Source:
- proj.js, line 52
Methods
-
<static> addProjection
Stability: experimental -
Parameters:
Name Type Description projectionol.proj.Projection Projection.
- Source:
- proj.js, line 376
-
<static> configureProj4jsProjection
Stability: experimental -
Parameters:
Name Type Description optionsolx.Proj4jsProjectionOptions Proj4js projection options.
Properties
Name Type Description codestring The SRS identifier code, e.g.
EPSG:31256.extentol.Extent | undefined The validity extent for the SRS.
globalboolean | undefined Whether the projection is valid for the whole globe. Default is
false.- Source:
- proj.js, line 721
Returns:
Proj4js projection.
- Type
- ol.proj.Projection
-
<static> get
Stability: experimental -
Parameters:
Name Type Description projectionLikeol.proj.ProjectionLike Either a code string which is a combination of authority and identifier such as "EPSG:4326", or an existing projection object, or undefined.
- Source:
- proj.js, line 474
Returns:
Projection.
- Type
- ol.proj.Projection
-
<static> getTransform
Stability: experimental -
Given the projection-like objects this method searches for a transformation function to convert a coordinates array from the source projection to the destination projection.
Parameters:
Name Type Description sourceol.proj.ProjectionLike Source.
destinationol.proj.ProjectionLike Destination.
- Source:
- proj.js, line 556
Returns:
Transform.
- Type
- ol.TransformFunction
-
<static> getTransformFromProjections
Stability: experimental -
Searches a function that can be used to convert coordinates from the source projection to the destination projection.
Parameters:
Name Type Description sourceProjectionol.proj.Projection Source projection.
destinationProjectionol.proj.Projection Destination projection.
- Source:
- proj.js, line 573
Returns:
Transform.
- Type
- ol.TransformFunction
-
<static> transform
Stability: experimental -
Parameters:
Name Type Description pointol.Coordinate Point.
sourceol.proj.ProjectionLike Source.
destinationol.proj.ProjectionLike Destination.
- Source:
- proj.js, line 693
Returns:
Point.
- Type
- ol.Coordinate
-
<static> transformWithProjections
Stability: experimental -
Transforms the given point to the destination projection.
Parameters:
Name Type Description pointol.Coordinate Point.
sourceProjectionol.proj.Projection Source projection.
destinationProjectionol.proj.Projection Destination projection.
- Source:
- proj.js, line 708
Returns:
Point.
- Type
- ol.Coordinate
TypeDefs
-
ProjectionLike
Stability: experimental -
A projection as ol.proj.Projection, SRS identifier string or undefined.
- Source:
- proj.js, line 24
-
Units
Stability: experimental -
Projection units:
'degrees','ft','m'or'pixels'.- Source:
- proj.js, line 38
OpenLayers 3