OpenSpace. MapSize

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

Inherits

Summary
Instances of this class represent a width/height pair in map units
{Number} The spatial reference system
Create an instance of OpenSpace.MapSize
Create a clone of this size object
Determine 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

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.

clone:function()
Create a clone of this size object
equals:function(sz)
Determine if this map size is equal to another map size
Instances of this class represent a width/height pair
Create an instance of OpenSpace.MapSize