Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description code
string The SRS identifier code, e.g.
EPSG:4326
.units
Units | undefined Units. Required unless a proj4 projection is defined for
code
.extent
Extent | undefined The validity extent for the SRS.
axisOrientation
string
(defaults to 'enu')The axis orientation as specified in Proj4.
global
boolean
(defaults to false)Whether the projection is valid for the whole globe.
metersPerUnit
number | undefined The meters per unit for the SRS. If not provided, the
units
are used to get the meters per unit from theMETERS_PER_UNIT
lookup table.worldExtent
Extent | undefined The world extent for the SRS.
getPointResolution
function | undefined Function to determine resolution at a point. The function is called with a
number
view resolution and aCoordinate
as arguments, and returns thenumber
resolution in projection units at the passed coordinate. If this isundefined
, the defaultgetPointResolution
function will be used.