Class adf.Extent
Defined in: Extent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.Extent(xmin, ymin, xmax, ymax)
Represents a given map extent.
|
Field Attributes | Field Name and Description |
---|---|
The largest X coordinate of the Extent
|
|
The smallest X coordinate of the Extent
|
|
The largest Y coordinate of the Extent
|
|
The smallest Y coordinate of the Extent
|
Method Attributes | Method Name and Description |
---|---|
equals(otherExtent)
Convenience method to check for equality
|
|
Returns the height of the Extent by subtracting ymin from ymax.
|
|
getWidth()
Returns the width of the Extent by subtracting xmin from xmax.
|
|
update(xmin, ymin, xmax, ymax)
Convenience method that sets all 4 Extent fields at once.
|
Class Detail
adf.Extent(xmin, ymin, xmax, ymax)
Represents a given map extent.
- Parameters:
- {Number} xmin
- {Number} ymin
- {Number} xmax
- {Number} ymax
Field Detail
{Number}
xmax
The largest X coordinate of the Extent
{Number}
xmin
The smallest X coordinate of the Extent
{Number}
ymax
The largest Y coordinate of the Extent
{Number}
ymin
The smallest Y coordinate of the Extent
Method Detail
equals(otherExtent)
Convenience method to check for equality
- Parameters:
- otherExtent
{Number}
getHeight()
Returns the height of the Extent by subtracting ymin from ymax.
- Returns:
- {Number} the height of the Extent
{Number}
getWidth()
Returns the width of the Extent by subtracting xmin from xmax.
- Returns:
- {Number} the width of the Extent
update(xmin, ymin, xmax, ymax)
Convenience method that sets all 4 Extent fields at once.
- Parameters:
- {Number} xmin
- the smallest X coordinate of the Extent
- {Number} ymin
- the smallest Y coordinate of the Extent
- {Number} xmax
- the largest X coordinate of the Extent
- {Number} ymax
- the largest Y coordinate of the Extent