Constructors

Properties

Methods

Constructors

  • Constructor: OpenLayers.Size Create an instance of OpenLayers.Size

    Parameters: w - {Number} width h - {Number} height

    Parameters

    • w: number
    • h: number

    Returns Size

Properties

CLASS_NAME: string
h: number

APIProperty: h {Number} height

w: number

APIProperty: w {Number} width

Methods

  • APIMethod: clone Create a clone of this size object

    Returns: {<OpenLayers.Size>} A new OpenLayers.Size object with the same w and h values

    Returns Size

  • APIMethod: equals Determine where this size is equal to another

    Parameters: sz - {<OpenLayers.Size>|Object} An OpenLayers.Size or an object with a 'w' and 'h' properties.

    Returns: {Boolean} The passed in size has the same h and w properties as this one. Note that if sz passed in is null, returns false.

    Parameters

    Returns boolean

  • Method: toString Return the string representation of a size object

    Returns: {String} The string representation of OpenLayers.Size object. (e.g. "w=55,h=66")

    Returns string