Constructors

  • Construct a new bounds object. Coordinates can either be passed as four arguments, or as a single argument.

    Parameters

    • Optionalleft: number
    • Optionalbottom: number
    • Optionalright: number
    • Optionaltop: number

    Returns Bounds

  • Construct a new bounds object. Coordinates can either be passed as four arguments, or as a single argument.

    Parameters

    • bounds: number[]

    Returns Bounds

Properties

bottom: number

Minimum vertical coordinate.

left: number

Minimum horizontal coordinate.

right: number

Maximum horizontal coordinate.

top: number

Maximum vertical coordinate.

CLASS_NAME: string

Methods

  • Shifts the coordinates of the bound by the given horizontal and vertical deltas.

    Parameters

    • x: number
    • y: number

    Returns Bounds

  • Create a cloned instance of this bounds.

    Returns Bounds

  • Returns whether the bounds object contains the given x and y.

    Parameters

    • x: number
    • y: number
    • Optionalinclusive: boolean

    Returns boolean

  • Returns whether the bounds object contains the given <OpenLayers.Bounds>.

    Parameters

    • bounds: Bounds
    • Optionalpartial: boolean
    • Optionalinclusive: boolean

    Returns boolean

  • Returns whether the bounds object contains the given <OpenLayers.LonLat>.

    Parameters

    Returns boolean

  • Returns whether the bounds object contains the given <OpenLayers.LonLat>.

    Parameters

    Returns boolean

  • Returns whether the bounds object contains the given <OpenLayers.Pixel>.

    Parameters

    • px: Pixel
    • inclusive: boolean

    Returns boolean

  • Returns the the quadrant ("br", "tr", "tl", "bl") in which the given <OpenLayers.LonLat> lies.

    Parameters

    Returns string

  • Test a two bounds for equivalence.

    Parameters

    Returns boolean

  • Extend the bounds.

    Parameters

    Returns void

  • Extend the bounds.

    Parameters

    Returns void

  • Extend the bounds.

    Parameters

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Returns the LonLat object which represents the center of the bounds.

    Returns LonLat

  • Returns the Pixel object which represents the center of the bounds.

    Returns Pixel

  • Returns the height of the bounds.

    Returns number

  • Returns the width of the bounds.

    Returns number

  • 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

  • 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
    • Optionalorigin: Pixel

    Returns Bounds

  • 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
    • Optionalorigin: LonLat

    Returns Bounds

  • Returns an array representation of the bounds object.

    Parameters

    • OptionalreverseAxisOrder: boolean

    Returns number[]

  • Returns a boundingbox-string representation of the bounds object.

    Parameters

    • Optionaldecimal: number
    • OptionalreverseAxisOrder: boolean

    Returns string

  • Create a new polygon geometry based on this bounds.

    Returns Polygon

  • Returns a string representation of the bounds object.

    Returns string

  • Alternative constructor that builds a new OpenLayers.Bounds from an array.

    Parameters

    • bbox: number[]
    • reverseAxisOrder: boolean

    Returns Bounds

  • Alternative constructor that builds a new OpenLayers.Bounds from a size.

    Parameters

    Returns Bounds

  • Alternative constructor that builds a new OpenLayers.Bounds from a parameter string.

    Parameters

    • str: string
    • reverseAxisOrder: boolean

    Returns Bounds

  • Get the opposite quadrant for a given quadrant string.

    Parameters

    • quadrant: string

    Returns string