Crs()
Crs class is used to define the coordinate system of the map
Parameter | Type | Description |
---|---|---|
options | Object | The options of the instance |
Crs's constructor
Projects coordinates using the CRS projection
Reverses the projection of a point to its original coordinates
Projects the coordinates using the CRS projection and applies transformation (see transform()) using the zoom level
Reverses the projection of a point to its original coordinates and unstranforms it (see untransform()) using the zoom level
Transforms the projected point to pixels
Pixels are transformed back to projected point
Returns the associated scale for the given zoom level from the list of scales (calculated as 1 / resolution
)
Returns the associated resolution for the given zoom level from the list of resolutions
Crs class is used to define the coordinate system of the map
Parameter | Type | Description |
---|---|---|
options | Object | The options of the instance |
Projects coordinates using the CRS projection
Parameter | Type | Description |
---|---|---|
latLng | LatLng | The coordinates that will be projected |
Reverses the projection of a point to its original coordinates
Parameter | Type | Description |
---|---|---|
point | Point | The point that will be unprojected |
Projects the coordinates using the CRS projection and applies transformation (see transform()) using the zoom level
Parameter | Type | Description |
---|---|---|
latLng | LatLng | The coordinates that will be projected |
zoom | Number | The zoom level for the transformation |
Reverses the projection of a point to its original coordinates and unstranforms it (see untransform()) using the zoom level
Parameter | Type | Description |
---|---|---|
point | Point | The point that will be unprojected |
zoom | Number | The zoom level for the transformation |
Transforms the projected point to pixels
Parameter | Type | Description |
---|---|---|
point | Point | The projected point |
zoom | Number | The zoom level that will be scaled (see scale()) for the transformation |
Pixels are transformed back to projected point
Parameter | Type | Description |
---|---|---|
point | Point | The pixel point that will be transformed back |
zoom | Number | The zoom level that will be scaled (see scale()) for the transformation |