L.CRS.NonEarthCRS(options)
NonEarthCRS.js, line 32
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The optional parameters to construct NonEarthCRS object.
|
Extends
Members
-
includesObject
-
It contains the coordinate objects.
- Default Value: L.CRS
Methods
-
distance(latlng1, latlng2){number}
NonEarthCRS.js, line 97 -
Calculate the distance between two coordinates.
Name Type Description latlng1L.latLng The latitude and longitude coordinates point1.
latlng2L.latLng The latitude and longitude coordinates point2.
Returns:
Type Description number Return the length of the distance. -
scale(zoom){number}
NonEarthCRS.js, line 62 -
Get the scale value according to the zoom level
Name Type Description zoomnumber The zoom level.
Returns:
Type Description number The scale value. -
zoom(scale){number}
NonEarthCRS.js, line 77 -
Get the zoom level according to the scale value.
Name Type Description scalenumber The scale.
Returns:
Type Description number The zoom level.