Class: NonEarthCRS

NonEarthCRS

The NonEarthCRS class.

L.CRS.NonEarthCRS(options)

NonEarthCRS.js, line 32
Name Type Description
options Object

The optional parameters to construct NonEarthCRS object.

Name Type Description
origin Object

The origin.

bounds L.bounds

The bounds array.

resolutions Array.<number> optional

The resolutions.

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
latlng1 L.latLng

The latitude and longitude coordinates point1.

latlng2 L.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
zoom number

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
scale number

The scale.

Returns:
Type Description
number The zoom level.