OpenSpace.MapSize

Instances of this class represent a width/height pair in map units

Inherits

  • <OpenLayers.Size>
Summary
OpenSpace.MapSizeInstances of this class represent a width/height pair in map units
Properties
srs{Number} The spatial reference system
Constructor
OpenSpace.MapSizeCreate an instance of OpenSpace.MapSize
Functions
toStringReturn the string representation of a map size object
cloneCreate a clone of this size object
equalsDetermine if this map size is equal to another map size

Properties

srs

{Number} The spatial reference system

Constructor

OpenSpace.MapSize

Create an instance of OpenSpace.MapSize

Parameters

w{Float} width
h{Float} height

Functions

toString

toString:function()

Return the string representation of a map size object

Returns

{String} The string representation of OpenSpace.MapSize object.  (ex.  <i>”w=1230,h=860”</i>)

clone

clone:function()

Create a clone of this size object

Returns

{OpenSpace.MapSize} A new OpenSpace.MapSize object with the same w and h values

equals

equals:function(sz)

Determine if this map size is equal to another map size

Parameters

sz{OpenSpace.MapSize}

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.

toString:function()
Return the string representation of a map size object
clone:function()
Create a clone of this size object
equals:function(sz)
Determine if this map size is equal to another map size
Create an instance of OpenSpace.MapSize
Close