| Package | com.yahoo.maps.api.core.location |
| Class | public class BoundingBox |
See also
| Property | Defined by | ||
|---|---|---|---|
| centerLatLon : LatLon
[read-only]
The center LatLon point as defined by the bounds of this object.
| BoundingBox | ||
| latSpan : Number [read-only]
Returns the span of the bounding box on the latitude.
| BoundingBox | ||
| lonSpan : Number [read-only]
Returns the span of the bounding box on the longitude.
| BoundingBox | ||
| maxLat : Number [read-only]
The northwest latitude.
| BoundingBox | ||
| maxLon : Number [read-only]
The northwest longitude.
| BoundingBox | ||
| minLat : Number [read-only]
The southeast latitude.
| BoundingBox | ||
| minLon : Number [read-only]
The southeast longitude
| BoundingBox | ||
| northeast : LatLon
[read-only]
A LatLon object defining the northeast corner of the rectangle.
| BoundingBox | ||
| northwest : LatLon
[read-only]
A LatLon object defining the northwest corner of the rectangle.
| BoundingBox | ||
| southeast : LatLon
[read-only]
A LatLon object defining the southeast corner of the rectangle.
| BoundingBox | ||
| southwest : LatLon
[read-only]
A LatLon object defining the southwest corner of the rectangle.
| BoundingBox | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new BoundingBox object.
| BoundingBox | ||
|
Creates a clone of this BoundingBox instance.
| BoundingBox | ||
|
Returns true if the provided LatLon object in contained in this bounding box.
| BoundingBox | ||
|
getBoundingBox(points:Array):BoundingBox
[static]
Returns a BoundingBox object that contains all LatLon points in the provided array.
| BoundingBox | ||
|
Returns a DistanceResult object containing the distances from this bounding box center LatLon to the provided bounding box center LatLon.
| BoundingBox | ||
|
toString():String
Returns a bbox string for use in location APIs such as Flickr.
| BoundingBox | ||
| centerLatLon | property |
centerLatLon:LatLon [read-only]The center LatLon point as defined by the bounds of this object.
Implementation public function get centerLatLon():LatLon
See also
| latSpan | property |
latSpan:Number [read-only]Returns the span of the bounding box on the latitude.
Implementation public function get latSpan():Number
| lonSpan | property |
lonSpan:Number [read-only]Returns the span of the bounding box on the longitude.
Implementation public function get lonSpan():Number
| maxLat | property |
maxLat:Number [read-only]The northwest latitude.
Implementation public function get maxLat():Number
| maxLon | property |
maxLon:Number [read-only]The northwest longitude.
Implementation public function get maxLon():Number
| minLat | property |
minLat:Number [read-only]The southeast latitude.
Implementation public function get minLat():Number
| minLon | property |
minLon:Number [read-only]The southeast longitude
Implementation public function get minLon():Number
| northeast | property |
northeast:LatLon [read-only]A LatLon object defining the northeast corner of the rectangle.
Implementation public function get northeast():LatLon
| northwest | property |
northwest:LatLon [read-only]A LatLon object defining the northwest corner of the rectangle.
Implementation public function get northwest():LatLon
See also
| southeast | property |
southeast:LatLon [read-only]A LatLon object defining the southeast corner of the rectangle.
Implementation public function get southeast():LatLon
See also
| southwest | property |
southwest:LatLon [read-only]A LatLon object defining the southwest corner of the rectangle.
Implementation public function get southwest():LatLon
See also
| BoundingBox | () | constructor |
public function BoundingBox(southwest:LatLon, northeast:LatLon)Creates a new BoundingBox object.
Parameterssouthwest:LatLon — A LatLon object defining the northwest corner of the rectangle.
|
|
northeast:LatLon — A LatLon object defining the southeast corner of the rectangle.
|
See also
| clone | () | method |
public function clone():BoundingBoxCreates a clone of this BoundingBox instance.
ReturnsBoundingBox |
| contains | () | method |
public function contains(latlon:LatLon):BooleanReturns true if the provided LatLon object in contained in this bounding box.
Parameterslatlon:LatLon |
Boolean |
See also
| getBoundingBox | () | method |
public static function getBoundingBox(points:Array):BoundingBoxReturns a BoundingBox object that contains all LatLon points in the provided array.
Parameterspoints:Array |
BoundingBox |
See also
| getDistanceFrom | () | method |
public function getDistanceFrom(boundingBox:BoundingBox):DistanceResultReturns a DistanceResult object containing the distances from this bounding box center LatLon to the provided bounding box center LatLon.
ParametersboundingBox:BoundingBox |
DistanceResult |
See also
| toString | () | method |
public function toString():StringReturns a bbox string for use in location APIs such as Flickr.
ReturnsString |