-
staticmodule:og/Extent.Extent.createByCoordinates(arr){Extent}
-
Creates bound extent instance by coordinate array.
Name |
Type |
Description |
arr |
Array.<LonLat>
|
Coordinate array. |
Returns:
Type |
Description |
Extent
|
Extent object. |
-
staticmodule:og/Extent.Extent.createByCoordinatesArr(arr){Extent}
-
Creates bound extent instance by coordinate array.
Name |
Type |
Description |
arr |
Array.<Array.<number>>
|
Coordinate array. (exactly 2 entries) |
Returns:
Type |
Description |
Extent
|
Extent object. |
-
staticmodule:og/Extent.Extent.createFromArray(arr){Extent}
-
Creates extent instance from values in array.
Name |
Type |
Description |
arr |
Array.<number>
|
South west and north east longitude and latidudes packed in array. (exactly 4 entries) |
Returns:
Type |
Description |
Extent
|
Extent object. |
-
staticmodule:og/Extent.Extent.fromTile(x, y, z, width, height){Extent}
-
Creates extent by meractor grid tile coordinates.
Name |
Type |
Description |
x |
number
|
- |
y |
number
|
- |
z |
number
|
- |
width |
number
|
- |
height |
number
|
- |
Returns:
Type |
Description |
Extent
|
- |
-
-
Creates clone instance of the current extent.
Returns:
Type |
Description |
Extent
|
Extent clone. |
-
-
Returns extents are equals.
Name |
Type |
Description |
extent |
Extent
|
Extent. |
Returns:
Type |
Description |
boolean
|
- |
-
forwardMercator(){Extent}
-
Converts extent coordinates to mercator projection coordinates.
Returns:
Type |
Description |
Extent
|
New instance of the current extent. |
-
getCartesianBounds(ellipsoid){Array.<number>}
-
Gets cartesian bounding bounds of the current ellipsoid.
Name |
Type |
Description |
ellipsoid |
Ellipsoid
|
Ellipsoid. |
Returns:
Type |
Description |
Array.<number>
|
Cartesian 3d coordinate array. (exactly 6 entries) |
-
-
Gets the center coordinate of the extent.
Returns:
Type |
Description |
number
|
Center coordinate. |
-
-
Gets extent height.
Returns:
Type |
Description |
number
|
Extent height. |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Gets extent width.
Returns:
Type |
Description |
number
|
Extent width. |
-
inverseMercator(){Extent}
-
Converts extent coordinates from mercator projection to degrees.
Returns:
Type |
Description |
Extent
|
New instance of the current extent. |
-
isInside(lonlat){boolean}
-
Determines if point inside extent.
Name |
Type |
Description |
lonlat |
LonLat
|
Coordinate point. |
Returns:
Type |
Description |
boolean
|
Returns true if point inside extent. |
-
-
Returns true if two extent overlap each other.
Name |
Type |
Description |
e |
Extent
|
Another extent. |
Returns:
Type |
Description |
boolean
|
- |
-
setByCoordinates(arr){Extent}
-
Sets current bounding extent object by coordinate array.
Name |
Type |
Description |
arr |
Array.<LonLat>
|
Coordinate array. |
Returns:
Type |
Description |
Extent
|
Current extent. |