GDraggableObject [class]-GoogleMaps/API/doc/ClassReference/44-GDraggableObject-N☆E 学習帳

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

Counter: 3766, today: 2, yesterday: 1

GDraggableObject [class]

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

Version 2 (Revision 2.59より 2006.7追加

This class makes a DOM element draggable. The static members for changing the drag cursors affect all subsequently created draggable objects, such as the map, zoom control slider, and overview map rectangles. The per-instance members affect only their particular instance. For example, before creating the map, you can call GDraggableObject.setDraggableCursor('default') and GDraggableObject.setDraggingCursor('move') to get the pre-API 2.56 style. Alternatively, the Map constructor can take options to set its DraggableObject's cursor style. See the W3C CSS specification for allowable cursor values.

Constructor

Constructor Description
GDraggableObject(src, opts?) Sets up event handlers so that the source element can be dragged. Left and top optionally position the element, and the optional container serves as a bounding box. (Since 2.59)

 

Static Methods

Static Methods Return Value Description
setDraggableCursor(cursor) none Sets the draggable cursor for subsequently created draggable objects. (Since 2.59)
setDraggingCursor(cursor) none Sets the dragging cursor for subsequently created draggable objects. (Since 2.59)

 

Methods

Methods Return Value Description
setDraggableCursor(cursor) none Sets the cursor when the mouse is over this draggable objects. (Since 2.59)
setDraggingCursor(cursor) none Sets the cursor when the mouse is held down, dragging this draggable object. (Since 2.59)

 

This class represents optional arguments to the GDraggableObject constructor. It has no constructor, but is instantiated as object literal.

 

Properties

Properties Type Description
left Number The left starting position of the object. (Since 2.59)
top Number The top starting position of the object. (Since 2.59)
container Node A DOM element that will act as a bounding box for the draggable object (Since 2.59)
draggableCursor String The cursor to show on mousover. (Since 2.59)
draggingCursor String The cursor to show while dragging. (Since 2.59)