Skip to content

Latest commit

 

History

History
59 lines (32 loc) · 1005 Bytes

Size.md

File metadata and controls

59 lines (32 loc) · 1005 Bytes

See html formatted version

Size class

google.maps.Size class

Constructor

undefined

Size(width, height[, widthUnit, heightUnit])

Parameters: 

  • width:  number
  • height:  number
  • widthUnit:  string optional
  • heightUnit:  string optional

Two-dimensional size, where width is the distance on the x-axis, and height is the distance on the y-axis.

Methods

undefined

equals(other)

Parameters: 

Return Value:  boolean

Compares two Sizes.

undefined

toString()

Parameters:  None

Return Value:  string

Returns a string representation of this Size.

Properties

undefined

Type:  number

The height along the y-axis, in pixels.

undefined

Type:  number

The width along the x-axis, in pixels.