Classes
Members
-
static,constantol.proj.METERS_PER_UNIT[undefined]{Object.<ol.proj.Units, number>} experimental
-
Meters per unit lookup table.
Methods
-
staticol.proj.addProjection(projection) experimental
-
Name Type Description projectionol.proj.Projection Projection.
-
staticol.proj.configureProj4jsProjection(options){ol.proj.Projection} experimental
-
Name Type Description optionsProj4js projection options.
Name Type Description codestring The SRS identifier code, e.g.
EPSG:31256.extentol.Extent | undefined optional The validity extent for the SRS.
globalboolean | undefined optional Whether the projection is valid for the whole globe. Default is
false.Returns:
Proj4js projection.
-
staticol.proj.get(projectionLike){ol.proj.Projection} experimental
-
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.
Returns:
Projection.
-
staticol.proj.getTransform(source, destination){ol.TransformFunction} 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.
Name Type Description sourceol.proj.ProjectionLike Source.
destinationol.proj.ProjectionLike Destination.
Returns:
Transform.
-
staticol.proj.getTransformFromProjections(sourceProjection, destinationProjection){ol.TransformFunction} experimental
-
Searches a function that can be used to convert coordinates from the source projection to the destination projection.
Name Type Description sourceProjectionol.proj.Projection Source projection.
destinationProjectionol.proj.Projection Destination projection.
Returns:
Transform.
-
staticol.proj.transform(point, source, destination){ol.Coordinate} experimental
-
Name Type Description pointol.Coordinate Point.
sourceol.proj.ProjectionLike Source.
destinationol.proj.ProjectionLike Destination.
Returns:
Point.
-
staticol.proj.transformWithProjections(point, sourceProjection, destinationProjection){ol.Coordinate} experimental
-
Transforms the given point to the destination projection.
Name Type Description pointol.Coordinate Point.
sourceProjectionol.proj.Projection Source projection.
destinationProjectionol.proj.Projection Destination projection.
Returns:
Point.
Type Definitions
-
ol.proj.ProjectionLike{ol.proj.Projection} {string} {undefined} experimental
-
A projection as
ol.proj.Projection, SRS identifier string or undefined. -
ol.proj.Units{string} experimental
-
Projection units:
'degrees','ft','m'or'pixels'.
OpenLayers 3