Projection options.
Projection definition class. One of these is created for each projection supported in the application and stored in the ol.proj namespace. You can use these in applications, but this is not required, as API params and options use ol.ProjectionLike which means the simple string code will suffice.
You can use ol.proj.get to retrieve the object for a particular projection.
The library includes definitions for EPSG:4326
and EPSG:3857
, together
with the following aliases:
EPSG:4326
: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326,
urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84,
http://www.opengis.net/gml/srs/epsg.xml#4326,
urn:x-ogc:def:crs:EPSG:4326EPSG:3857
: EPSG:102100, EPSG:102113, EPSG:900913,
urn:ogc:def:crs:EPSG:6.18:3:3857,
http://www.opengis.net/gml/srs/epsg.xml#3857If you use proj4js, aliases can be added using proj4.defs()
; see
documentation. To set an alternative
namespace for proj4, use ol.proj.setProj4.
stable
Get the resolution of the point in degrees or distance units. For projections with degrees as the unit this will simply return the provided resolution. The default for other projections is to estimate the point resolution by transforming the 'point' pixel to EPSG:4326, measuring its width and height on the normal sphere, and taking the average of the width and height. An alternative implementation may be given when constructing a projection. For many local projections, such a custom function will return the resolution unchanged.
Resolution in projection units.
Point.
Point resolution in projection units.
Set the validity extent for this projection.
Extent.
stable
Set the getPointResolution function for this projection.
Function
Set the world extent for this projection.
World extent [minlon, minlat, maxlon, maxlat].
Generated using TypeDoc
Classdesc
Projection definition class. One of these is created for each projection supported in the application and stored in the ol.proj namespace. You can use these in applications, but this is not required, as API params and options use ol.ProjectionLike which means the simple string code will suffice.
You can use ol.proj.get to retrieve the object for a particular projection.
The library includes definitions for
EPSG:4326
andEPSG:3857
, together with the following aliases:EPSG:4326
: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326, urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84, http://www.opengis.net/gml/srs/epsg.xml#4326, urn:x-ogc:def:crs:EPSG:4326EPSG:3857
: EPSG:102100, EPSG:102113, EPSG:900913, urn:ogc:def:crs:EPSG:6.18:3:3857, http://www.opengis.net/gml/srs/epsg.xml#3857If you use proj4js, aliases can be added using
proj4.defs()
; see documentation. To set an alternative namespace for proj4, use ol.proj.setProj4.Param: options
Projection options.
Struct
Api
stable