Class: ol.Extent

ol.Extent

new Extent

Rectangular extent which is not rotated. An extent does not know its projection.
Parameters:
Name Type Description
minX number Minimum X.
minY number Minimum Y.
maxX number Maximum X.
maxY number Maximum Y.
Source:
  • extent.js, line 20

Extends

Members

maxX :number

Inherited From:
Source:
  • rectangle.js, line 34

maxY :number

Inherited From:
Source:
  • rectangle.js, line 39

minX :number

Inherited From:
Source:
  • rectangle.js, line 24

minY :number

Inherited From:
Source:
  • rectangle.js, line 29

Methods

<static> boundingExtent

Builds an extent that includes all given coordinates.
Parameters:
Name Type Description
var_args ol.Coordinate Coordinates.
Source:
  • extent.js, line 32
Returns:
Bounding extent.
Type
ol.Extent

contains

Checks if the given coordinate is contained or on the edge of the extent.
Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate.
Source:
  • extent.js, line 54
Returns:
Contains.
Type
boolean

extend

Parameters:
Name Type Description
rectangle ol.Rectangle Rectangle.
Inherited From:
Source:
  • rectangle.js, line 47

getBottomLeft

Source:
  • extent.js, line 63
Returns:
Bottom left coordinate.
Type
ol.Coordinate

getBottomRight

Source:
  • extent.js, line 71
Returns:
Bottom right coordinate.
Type
ol.Coordinate

getCenter

Inherited From:
Source:
  • rectangle.js, line 58
Returns:
Center.
Type
ol.Coordinate

getHeight

Inherited From:
Source:
  • rectangle.js, line 67
Returns:
Height.
Type
number

getSize

Inherited From:
Source:
  • rectangle.js, line 75
Returns:
Size.
Type
ol.Size

getTopLeft

Source:
  • extent.js, line 79
Returns:
Top left coordinate.
Type
ol.Coordinate

getTopRight

Source:
  • extent.js, line 87
Returns:
Top right coordinate.
Type
ol.Coordinate

getWidth

Inherited From:
Source:
  • rectangle.js, line 83
Returns:
Width.
Type
number

intersects

Parameters:
Name Type Description
rectangle ol.Rectangle Rectangle.
Inherited From:
Source:
  • rectangle.js, line 92
Returns:
Intersects.
Type
boolean

normalize

Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate.
Inherited From:
Source:
  • rectangle.js, line 104
Returns:
Coordinate.
Type
ol.Coordinate

toString

Inherited From:
Source:
  • rectangle.js, line 114
Returns:
String.
Type
string

transform

Parameters:
Name Type Description
transformFn ol.TransformFunction Transform function.
Source:
  • extent.js, line 96
Returns:
Extent.
Type
ol.Extent