|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.overlay.MarkerOptions
public final class MarkerOptions
Instances of this class are used in the Marker
constructor
options
argument.
Constructor Summary | |
---|---|
protected |
MarkerOptions()
JavaScript overlays require a protected constructor. |
Method Summary | |
---|---|
static MarkerOptions |
newInstance()
|
static MarkerOptions |
newInstance(Icon icon)
|
void |
setAutoPan(boolean autoPan)
Auto-pan the map as you drag the marker near the edge. |
void |
setBounceGravity(double bounceGravity)
When finishing dragging, this number is used to define the acceleration rate of the marker during the bounce down to earth. |
void |
setBouncy(boolean bouncy)
Toggles whether or not the marker should bounce up and down after it finishes dragging. |
void |
setClickable(boolean clickable)
Toggles whether or not the marker is clickable. |
void |
setDragCrossMove(boolean dragCrossMove)
When dragging markers normally, the marker floats up and away from the cursor. |
void |
setDraggable(boolean draggable)
Toggles whether or not the marker will be draggable by users. |
void |
setIcon(Icon icon)
Chooses the Icon for this class. |
void |
setTitle(java.lang.String title)
This string will appear as tooltip on the marker, i.e. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected MarkerOptions()
Method Detail |
---|
public static MarkerOptions newInstance()
public static MarkerOptions newInstance(Icon icon)
public void setAutoPan(boolean autoPan)
autoPan
- true
to turn on auto pan.public void setBounceGravity(double bounceGravity)
bounceGravity
- number used to define the acceleration rate of the
marker during the bounce.public void setBouncy(boolean bouncy)
false
bouncy
- true
to set the marker to be bouncy.public void setClickable(boolean clickable)
true
, i.e.
if the option is not specified, the marker will be clickable.
clickable
- whether or not the marker is clickable.public void setDragCrossMove(boolean dragCrossMove)
dragCrossMove
- set to true
to keep the marker underneath
the cursor when dragged.public void setDraggable(boolean draggable)
false
- Parameters:
draggable
- whether or not the marker will be draggable by users.
public void setIcon(Icon icon)
Icon.DEFAULT_ICON
is used.
icon
- sets the icon for this class.public void setTitle(java.lang.String title)
title
- a string to set as the tooltip on the marker.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |