GSize [class]-GoogleMaps/API/doc/ClassReference/12-GSize-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]

Counter: 3015, today: 1, yesterday: 2

GSize [class]

http://www.google.com/apis/maps/docu­mentation/

Version 2 (2006.4)

A GSize is the size in pixels of a rectangular area of the map. The size object has two parameters, width and height. Width is a difference in the x-coordinate; height is a difference in the y-coordinate, of points.

Notice that while the two parameters of a GSize are accessible as properties width and height, it is better to never modify them, but to create a new object with different paramaters instead.

Constructor

Constructor Description
GSize(width, height) Creates a GSize object.

 

Properties

Properties Type Description
width Number The width parameter.
height Number The height parameter.

 

Methods

Methods Return Value Description
equals(other) Boolean Returns true iff the other size has exactly equal components.
toString() String Returns a string that contains the wdith and height parameter, in this order, separated by a comma.

 

Version 1

GSize represents a 2-dimensional size measurement. If a GSize represents a lat/lng span, width is to the number longitude degrees, and y is the number of latitude degrees.

Constructor

Constructor Description
GSize(width, height) Creates a new size with the given measurement values

 

Properties

Property Description
width The width measurement
height The height measurement