http://www.google.com/apis/maps/documentation/
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 | 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 | 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 | 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 | 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) |