new Projection(options)
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Projection options.
|
Methods
-
getAxisOrientation(){string}
proj/Projection.js, line 197 -
Get the axis orientation of this projection. Example values are: enu - the default easting, northing, elevation. neu - northing, easting, up - useful for "lat/long" geographic coordinates, or south orientated transverse mercator. wnu - westing, northing, up - some planetary coordinate systems have "west positive" coordinate systems
Returns:
Axis orientation.
-
getCode(){string}
proj/Projection.js, line 144 -
Get the code for this projection, e.g. 'EPSG:4326'.
Returns:
Code.
-
Get the validity extent for this projection.
Returns:
Extent.
-
getMetersPerUnit(){number|undefined}
proj/Projection.js, line 173 -
Get the amount of meters per unit of this projection. If the projection is not configured with
metersPerUnit
or a units identifier, the return isundefined
.Returns:
Meters.
-
Get the units of this projection.
Returns:
Units.
-
Get the world extent for this projection.
Returns:
Extent.
-
isGlobal(){boolean}
proj/Projection.js, line 206 -
Is this projection a global projection which spans the whole world?
Returns:
Whether the projection is global.
-
setExtent(extent)
proj/Projection.js, line 239 -
Set the validity extent for this projection.
Name Type Description extent
module:ol/extent~Extent Extent.
-
setGetPointResolution(func)
proj/Projection.js, line 260 -
Set the getPointResolution function (see
module:ol/proj~getPointResolution
for this projection.Name Type Description func
function Function
-
setGlobal(global)
proj/Projection.js, line 215 -
Set if the projection is a global projection which spans the whole world
Name Type Description global
boolean Whether the projection is global.
-
setWorldExtent(worldExtent)
proj/Projection.js, line 250 -
Set the world extent for this projection.
Name Type Description worldExtent
module:ol/extent~Extent World extent [minlon, minlat, maxlon, maxlat].