|
|||||||||
| 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 class MarkerOptions
Instances of this class are used in the Marker constructor
options argument.
| Nested Class Summary | |
|---|---|
static interface |
MarkerOptions.ZIndexProcess
Interface defining function changing default z-Index order of the markers |
| 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. it will work just as the title attribute on HTML elements. |
void |
setZIndexProcess(MarkerOptions.ZIndexProcess process)
This function is used for changing the z-Index order of the markers when they are overlaid on the map and is also called when their infowindow is opened. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, 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 final void setAutoPan(boolean autoPan)
autoPan - true to turn on auto pan.public final void setBounceGravity(double bounceGravity)
bounceGravity - number used to define the acceleration rate of the
marker during the bounce.public final void setBouncy(boolean bouncy)
false
bouncy - true to set the marker to be bouncy.public final 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 final void setDragCrossMove(boolean dragCrossMove)
dragCrossMove - set to true to keep the marker underneath
the cursor when dragged.public final void setDraggable(boolean draggable)
false
- Parameters:
draggable - whether or not the marker will be draggable by users.
public final void setIcon(Icon icon)
Icon.DEFAULT_ICON is used.
icon - sets the icon for this class.public final void setTitle(java.lang.String title)
title - a string to set as the tooltip on the marker.public final void setZIndexProcess(MarkerOptions.ZIndexProcess process)
process - function used for changing the z-Index order of the markers
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||