Methods
public add( x: number , y: number ) : Bounds
Defined in openlayers.d.ts:1274
Shifts the coordinates of the bound by the given horizontal and vertical
deltas.
Parameters
Returns
Bounds
public clone( ) : Bounds
Defined in openlayers.d.ts:1204
Create a cloned instance of this bounds.
Returns
Bounds
public contains( x: number , y: number , inclusive?: boolean ) : boolean
Defined in openlayers.d.ts:1314
Returns whether the bounds object contains the given x and y.
Parameters
x: number
y: number
inclusive?: boolean optional
Returns
boolean
public containsBounds( bounds: Bounds , partial: boolean , inclusive: boolean ) : boolean
Defined in openlayers.d.ts:1326
Returns whether the bounds object contains the given .
Parameters
partial: boolean
inclusive: boolean
Returns
boolean
public containsLonLat( ll: LonLat , options: BoundsOptions ) : boolean
Defined in openlayers.d.ts:1299
Returns whether the bounds object contains the given .
Parameters
Returns
boolean
public containsLonLat( ll: Object , options: BoundsOptions ) : boolean
Defined in openlayers.d.ts:1304
Returns whether the bounds object contains the given .
Parameters
Returns
boolean
public containsPixel( px: Pixel , inclusive: boolean ) : boolean
Defined in openlayers.d.ts:1309
Returns whether the bounds object contains the given .
Parameters
Returns
boolean
public determineQuadrant( lonlat: LonLat ) : string
Defined in openlayers.d.ts:1332
Returns the the quadrant ("br", "tr", "tl", "bl") in which the given
lies.
Parameters
Returns
string
public equals( bounds: Bounds ) : boolean
Defined in openlayers.d.ts:1209
Test a two bounds for equivalence.
Parameters
Returns
boolean
public extend( object: LonLat )
Defined in openlayers.d.ts:1279
Extend the bounds.
Parameters
public extend( object: Point )
Defined in openlayers.d.ts:1284
Extend the bounds.
Parameters
public extend( object: Bounds )
Defined in openlayers.d.ts:1289
Extend the bounds.
Parameters
public extendXY( x: number , y: number )
Defined in openlayers.d.ts:1294
Parameters
public static fromArray( bbox: Array<number> , reverseAxisOrder: boolean ) : Bounds
Defined in openlayers.d.ts:1355
Alternative constructor that builds a new OpenLayers.Bounds from an array.
Parameters
bbox: Array<number>
reverseAxisOrder: boolean
Returns
Bounds
public static fromSize( size: Size ) : Bounds
Defined in openlayers.d.ts:1360
Alternative constructor that builds a new OpenLayers.Bounds from a size.
Parameters
Returns
Bounds
public static fromString( str: string , reverseAxisOrder: boolean ) : Bounds
Defined in openlayers.d.ts:1350
Alternative constructor that builds a new OpenLayers.Bounds from a
parameter string.
Parameters
str: string
reverseAxisOrder: boolean
Returns
Bounds
public getCenterLonLat( ) : LonLat
Defined in openlayers.d.ts:1254
Returns the LonLat object which represents the center of the bounds.
Returns
LonLat
public getCenterPixel( ) : Pixel
Defined in openlayers.d.ts:1249
Returns the Pixel object which represents the center of the bounds.
Returns
Pixel
public getHeight( ) : number
Defined in openlayers.d.ts:1239
Returns the height of the bounds.
Returns
number
public getSize( ) : Size
Defined in openlayers.d.ts:1244
Returns
Size
public getWidth( ) : number
Defined in openlayers.d.ts:1234
Returns the width of the bounds.
Returns
number
public intersectsBounds( bounds: Bounds , options: BoundsOptions ) : boolean
Defined in openlayers.d.ts:1321
Determine whether the target bounds intersects this bounds. Bounds are
considered intersecting if any of their edges intersect or if one
bounds contains the other.
Parameters
Returns
boolean
public static oppositeQuadrant( quadrant: string ) : string
Defined in openlayers.d.ts:1365
Get the opposite quadrant for a given quadrant string.
Parameters
Returns
string
public scale( ratio: number , origin?: Pixel )
Defined in openlayers.d.ts:1261
Scales the bounds around a pixel or lonlat. Note that the new
bounds may return non-integer properties, even if a pixel
is passed.
Parameters
ratio: number
origin?: Pixel optional
public scale( ratio: number , origin?: LonLat )
Defined in openlayers.d.ts:1268
Scales the bounds around a pixel or lonlat. Note that the new
bounds may return non-integer properties, even if a pixel
is passed.
Parameters
ratio: number
origin?: LonLat optional
public toArray( reverseAxisOrder?: boolean ) : Array<number>
Defined in openlayers.d.ts:1219
Returns an array representation of the bounds object.
Parameters
reverseAxisOrder?: boolean optional
Returns
Array<number>
public toBBOX( decimal?: number , reverseAxisOrder?: boolean ) : string
Defined in openlayers.d.ts:1224
Returns a boundingbox-string representation of the bounds object.
Parameters
decimal?: number optional
reverseAxisOrder?: boolean optional
Returns
string
public toGeometry( ) : Polygon
Defined in openlayers.d.ts:1229
Create a new polygon geometry based on this bounds.
Returns
Polygon
public toString( ) : string
Defined in openlayers.d.ts:1214
Returns a string representation of the bounds object.
Returns
string
Defined in openlayers.d.ts:1337
Transform the Bounds object from source to dest.
Parameters
Returns
Bounds
Defined in openlayers.d.ts:1342
Wraps the bounds object around the dateline.
Parameters
Returns
Bounds