Constructor
new Extent(minX, minY, maxX, maxY)
Parameters:
Name | Type | Description |
---|---|---|
minX |
Number | The minimum x coordinate. |
minY |
Number | The minimum y coordinate. |
maxX |
Number | The maximum x coordinate. |
maxY |
Number | The maximum y coordinate. |
Example
const extent = new Extent(0.0, 0.0, 1.0, 1.0);
Classes
Methods
getArea() → {number}
Returns the area of the extent
Returns:
- Type
- number
getCenter() → {Object}
Returns the center of the extent
Returns:
- Type
- Object
getCenterLonLat()
Returns the center of the extent
getHeight() → {number}
Returns the height of the extent
Returns:
- Type
- number
getMaxLat() → {*}
Returns the maximum latitude of the extent
Returns:
- Type
- *
getMaxLon() → {*}
Returns the maximum longitude of the
Returns:
- Type
- *
getMinLat() → {*}
Returns the minimum latitude of the extent
Returns:
- Type
- *
getMinLon() → {*}
Returns the minimum longitude of the extent
Returns:
- Type
- *
getWidth() → {number}
Returns the width of the extent
Returns:
- Type
- number
(static) createFromDegrees()
Returns the minimum longitude of the extent