New to KendoReact? Start a free 30-day trial
Represents a geographic region defined by two extreme locations (North West and South East).
(nw: number[] | Location | [number, number], se: number[] | Location | [number, number])
Creates a new Extent.
number[] | Location | [number, number]
The North West extreme location.
number[] | Location | [number, number]
The South East extreme location.
|  | 
|---|
| Returns the center of the extent. | 
| | Returns |  | 
|---|
 | 
Location | The extent center location. | 
 | 
|  | 
|---|
| Tests if a location is contained within the extent. | 
| | Parameters |  |  | 
|---|
 | location | 
Location | The location to test for. | 
 | 
| | Returns |  | 
|---|
 | 
boolean | true if the extent contains the location, false otherwise. | 
 | 
|  | 
|---|
| Tests if any of the locations is contained within the extent. | 
| | Parameters |  |  | 
|---|
 | locations | 
Location[] | An array of locations to test for. | 
 | 
| | Returns |  | 
|---|
 | 
boolean | true if the extent contains any of the locations, false otherwise. | 
 | 
|  | 
|---|
| Returns the four extreme locations of the extent. | 
|  | 
|  | 
|---|
| Grows the extent, if required, to contain the specified location. | 
| | Parameters |  |  | 
|---|
 | location | 
Location | The location to include in the extent. | 
 | 
|  | 
|---|
| Grows the extent, if required, to contain all specified locations. | 
| | Parameters |  |  | 
|---|
 | locations | 
any | The locations to include in the extent. | 
 | 
|  | 
|---|
| Tests if the given extent overlaps with this instance. | 
| | Parameters |  |  | 
|---|
 | extent | 
Extent | The extent to test with. | 
 | 
| | Returns |  | 
|---|
 | 
boolean | true if the extents overlap, false otherwise. | 
 | 
|  | 
|---|
| Returns the four extreme locations of the extent as an array. | 
|  |