|
Follow us on GitHub |
|||||||||
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.mvc.MVCObject<Marker>
com.google.gwt.maps.client.overlays.Marker
public class Marker
Creates a marker with the options specified. If a map is specified, the marker is added to the map upon construction. Note that the position must be set for the marker to display.
This class extends MVCObject.
See Marker API Doc
Constructor Summary | |
---|---|
protected |
Marker()
Creates a marker with the options specified. |
Method Summary | |
---|---|
HandlerRegistration |
addAnimationChangeHandler(AnimationChangeMapHandler handler)
This event is fired when the marker's animation property changes. |
HandlerRegistration |
addClickableChangeHandler(ClickableChangeMapHandler handler)
This event is fired when the marker's clickable property changes. |
HandlerRegistration |
addClickHandler(ClickMapHandler handler)
This event is fired when the marker icon was clicked. |
HandlerRegistration |
addCursorChangeHandler(CursorChangeMapHandler handler)
This event is fired when the marker's cursor property changes. |
HandlerRegistration |
addDblClickHandler(DblClickMapHandler handler)
This event is fired when the marker icon was double clicked. |
HandlerRegistration |
addDragEndHandler(DragEndMapHandler handler)
This event is fired when the user stops dragging the marker. |
HandlerRegistration |
addDraggableChangeHandler(DraggableChangeMapHandler handler)
This event is fired when the marker's draggable property changes. |
HandlerRegistration |
addDragHandler(DragMapHandler handler)
This event is repeatedly fired while the user drags the marker. |
HandlerRegistration |
addDragStartHandler(DragStartMapHandler handler)
This event is fired when the user starts dragging the marker. |
HandlerRegistration |
addFlatChangeHandler(FlatChangeMapHandler handler)
This event is fired when the marker's flat property changes. |
HandlerRegistration |
addIconChangeHandler(IconChangeMapHandler handler)
This event is fired when the marker icon property changes. |
HandlerRegistration |
addMouseDownHandler(MouseDownMapHandler handler)
This event is fired for a mousedown on the marker. |
HandlerRegistration |
addMouseOutMoveHandler(MouseOutMapHandler handler)
This event is fired when the mouse leaves the area of the marker icon. |
HandlerRegistration |
addMouseOverHandler(MouseOverMapHandler handler)
This event is fired when the mouse enters the area of the marker icon. |
HandlerRegistration |
addMouseUpHandler(MouseUpMapHandler handler)
This event is fired for a mouseup on the marker. |
HandlerRegistration |
addProjectionChangeHandler(ProjectionChangeMapHandler handler)
This event is fired when the marker position property changes. |
HandlerRegistration |
addRightClickHandler(RightClickMapHandler handler)
This event is fired for a rightclick on the marker. |
HandlerRegistration |
addShadowChangeHandler(ShadowChangeMapHandler handler)
This event is fired when the marker's shadow property changes. |
HandlerRegistration |
addShapeChangeHandler(ShapeChangeMapHandler handler)
This event is fired when the marker's shape property changes. |
HandlerRegistration |
addTitleChangeHandler(TitleChangeMapHandler handler)
This event is fired when the marker title property changes. |
HandlerRegistration |
addVisibleChangeHandler(VisibleChangeMapHandler handler)
This event is fired when the marker's visible property changes. |
HandlerRegistration |
addZindexChangeHandler(ZindexChangeMapHandler handler)
This event is fired when the marker's zIndex property changes. |
void |
close()
close the marker |
Animation |
getAnimation()
get animation |
boolean |
getClickable()
get Clickable |
String |
getCursor()
get Cursor |
boolean |
getDraggable()
get Draggable |
boolean |
getFlat()
get Flat |
MarkerImage |
getIcon_MarkerImage()
get Icon (if it is a marker image) |
String |
getIcon_String()
get Icon (if its a string use this) |
StreetViewPanoramaWidget |
getMap_StreetViewPanorama()
get Map (if it is a pano) |
MapWidget |
getMap()
|
int |
getMax_Zindex()
The maximum default z-index that the API will assign to a marker. |
LatLng |
getPosition()
get Position |
MarkerImage |
getShadow_MarkerImage()
get Shadow (if it is a MarkerImage) |
String |
getShadow_String()
get Shadow (if it is a String) |
MarkerShape |
getShape()
get Shape |
String |
getTitle()
get Title |
boolean |
getVisible()
get Visible |
int |
getZindex()
get Z Index |
static Marker |
newInstance(MarkerOptions options)
Creates a marker with the options specified. |
void |
setAnimation(Animation animation)
set Animation |
void |
setClickable(boolean clickable)
set Clickable |
void |
setCursor(String cursor)
set Cursor |
void |
setDraggable(boolean draggable)
set Draggable |
void |
setFlat(boolean flat)
set Flat |
void |
setIcon(MarkerImage icon)
set Icon |
void |
setIcon(String icon)
set Icon |
void |
setMap(MapWidget mapWidget)
set Map |
void |
setMap(StreetViewPanoramaWidget pano)
set Map |
void |
setOptions(MarkerOptions options)
set Options |
void |
setPosition(LatLng latlng)
set Position |
void |
setShadow(MarkerImage markerImage)
set MarkerImage |
void |
setShadow(String shadow)
set Shadow |
void |
setShape(MarkerShape shape)
set Shape |
void |
setTitle(String title)
set Title |
void |
setVisible(boolean visible)
set Visible |
void |
setZindex(int number)
set Z index |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
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 Marker()
Method Detail |
---|
public static Marker newInstance(MarkerOptions options)
options
- MarkerOptions
public final Animation getAnimation()
public final boolean getClickable()
public final String getCursor()
public final boolean getDraggable()
public final boolean getFlat()
public final String getIcon_String()
public final MarkerImage getIcon_MarkerImage()
public final MapWidget getMap()
public final StreetViewPanoramaWidget getMap_StreetViewPanorama()
public final LatLng getPosition()
public final String getShadow_String()
public final MarkerImage getShadow_MarkerImage()
public final MarkerShape getShape()
public final String getTitle()
public final boolean getVisible()
public final int getZindex()
public final void setAnimation(Animation animation)
animation
- public final void setClickable(boolean clickable)
clickable
- public final void setCursor(String cursor)
cursor
- public final void setDraggable(boolean draggable)
draggable
- public final void setFlat(boolean flat)
flat
- public final void setIcon(String icon)
icon
- public final void setIcon(MarkerImage icon)
icon
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setMap(StreetViewPanoramaWidget pano)
pano
- public final void setOptions(MarkerOptions options)
options
- public final void setPosition(LatLng latlng)
latlng
- public final void setShadow(String shadow)
shadow
- public final void setShadow(MarkerImage markerImage)
markerImage
- public final void setShape(MarkerShape shape)
shape
- public final void setTitle(String title)
title
- public final void setVisible(boolean visible)
visible
- public final void setZindex(int number)
number
- public final int getMax_Zindex()
public final HandlerRegistration addAnimationChangeHandler(AnimationChangeMapHandler handler)
handler
- public final HandlerRegistration addClickHandler(ClickMapHandler handler)
handler
- public final HandlerRegistration addClickableChangeHandler(ClickableChangeMapHandler handler)
handler
- public final HandlerRegistration addCursorChangeHandler(CursorChangeMapHandler handler)
handler
- public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler)
handler
- public final HandlerRegistration addDragHandler(DragMapHandler handler)
handler
- public final HandlerRegistration addDragEndHandler(DragEndMapHandler handler)
handler
- public final HandlerRegistration addDraggableChangeHandler(DraggableChangeMapHandler handler)
handler
- public final HandlerRegistration addDragStartHandler(DragStartMapHandler handler)
handler
- public final HandlerRegistration addFlatChangeHandler(FlatChangeMapHandler handler)
handler
- public final HandlerRegistration addIconChangeHandler(IconChangeMapHandler handler)
handler
- public final HandlerRegistration addMouseDownHandler(MouseDownMapHandler handler)
handler
- public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler)
handler
- public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler)
handler
- public final HandlerRegistration addMouseUpHandler(MouseUpMapHandler handler)
handler
- public final HandlerRegistration addProjectionChangeHandler(ProjectionChangeMapHandler handler)
handler
- public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler)
handler
- public final HandlerRegistration addShadowChangeHandler(ShadowChangeMapHandler handler)
handler
- public final HandlerRegistration addShapeChangeHandler(ShapeChangeMapHandler handler)
handler
- public final HandlerRegistration addTitleChangeHandler(TitleChangeMapHandler handler)
handler
- public final HandlerRegistration addVisibleChangeHandler(VisibleChangeMapHandler handler)
handler
- public final HandlerRegistration addZindexChangeHandler(ZindexChangeMapHandler handler)
handler
- public final void close()
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |