Follow us on GitHub

com.google.gwt.maps.client.overlays
Class Marker

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.mvc.MVCObject<Marker>
          extended by com.google.gwt.maps.client.overlays.Marker

public class Marker
extends MVCObject<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

Marker

protected 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. use newInstance();

Method Detail

newInstance

public static Marker newInstance(MarkerOptions options)
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.

Parameters:
options - MarkerOptions

getAnimation

public final Animation getAnimation()
get animation


getClickable

public final boolean getClickable()
get Clickable


getCursor

public final String getCursor()
get Cursor


getDraggable

public final boolean getDraggable()
get Draggable


getFlat

public final boolean getFlat()
get Flat


getIcon_String

public final String getIcon_String()
get Icon (if its a string use this)


getIcon_MarkerImage

public final MarkerImage getIcon_MarkerImage()
get Icon (if it is a marker image)


getMap

public final MapWidget getMap()

getMap_StreetViewPanorama

public final StreetViewPanoramaWidget getMap_StreetViewPanorama()
get Map (if it is a pano)


getPosition

public final LatLng getPosition()
get Position


getShadow_String

public final String getShadow_String()
get Shadow (if it is a String)


getShadow_MarkerImage

public final MarkerImage getShadow_MarkerImage()
get Shadow (if it is a MarkerImage)


getShape

public final MarkerShape getShape()
get Shape


getTitle

public final String getTitle()
get Title


getVisible

public final boolean getVisible()
get Visible


getZindex

public final int getZindex()
get Z Index


setAnimation

public final void setAnimation(Animation animation)
set Animation

Parameters:
animation -

setClickable

public final void setClickable(boolean clickable)
set Clickable

Parameters:
clickable -

setCursor

public final void setCursor(String cursor)
set Cursor

Parameters:
cursor -

setDraggable

public final void setDraggable(boolean draggable)
set Draggable

Parameters:
draggable -

setFlat

public final void setFlat(boolean flat)
set Flat

Parameters:
flat -

setIcon

public final void setIcon(String icon)
set Icon

Parameters:
icon -

setIcon

public final void setIcon(MarkerImage icon)
set Icon

Parameters:
icon -

setMap

public final void setMap(MapWidget mapWidget)
set Map

Parameters:
mapWidget -

setMap

public final void setMap(StreetViewPanoramaWidget pano)
set Map

Parameters:
pano -

setOptions

public final void setOptions(MarkerOptions options)
set Options

Parameters:
options -

setPosition

public final void setPosition(LatLng latlng)
set Position

Parameters:
latlng -

setShadow

public final void setShadow(String shadow)
set Shadow

Parameters:
shadow -

setShadow

public final void setShadow(MarkerImage markerImage)
set MarkerImage

Parameters:
markerImage -

setShape

public final void setShape(MarkerShape shape)
set Shape

Parameters:
shape -

setTitle

public final void setTitle(String title)
set Title

Parameters:
title -

setVisible

public final void setVisible(boolean visible)
set Visible

Parameters:
visible -

setZindex

public final void setZindex(int number)
set Z index

Parameters:
number -

getMax_Zindex

public final int getMax_Zindex()
The maximum default z-index that the API will assign to a marker. You may set a higher z-index to bring a marker to the front.


addAnimationChangeHandler

public final HandlerRegistration addAnimationChangeHandler(AnimationChangeMapHandler handler)
This event is fired when the marker's animation property changes.

Parameters:
handler -

addClickHandler

public final HandlerRegistration addClickHandler(ClickMapHandler handler)
This event is fired when the marker icon was clicked.

Parameters:
handler -

addClickableChangeHandler

public final HandlerRegistration addClickableChangeHandler(ClickableChangeMapHandler handler)
This event is fired when the marker's clickable property changes.

Parameters:
handler -

addCursorChangeHandler

public final HandlerRegistration addCursorChangeHandler(CursorChangeMapHandler handler)
This event is fired when the marker's cursor property changes.

Parameters:
handler -

addDblClickHandler

public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler)
This event is fired when the marker icon was double clicked.

Parameters:
handler -

addDragHandler

public final HandlerRegistration addDragHandler(DragMapHandler handler)
This event is repeatedly fired while the user drags the marker.

Parameters:
handler -

addDragEndHandler

public final HandlerRegistration addDragEndHandler(DragEndMapHandler handler)
This event is fired when the user stops dragging the marker.

Parameters:
handler -

addDraggableChangeHandler

public final HandlerRegistration addDraggableChangeHandler(DraggableChangeMapHandler handler)
This event is fired when the marker's draggable property changes.

Parameters:
handler -

addDragStartHandler

public final HandlerRegistration addDragStartHandler(DragStartMapHandler handler)
This event is fired when the user starts dragging the marker.

Parameters:
handler -

addFlatChangeHandler

public final HandlerRegistration addFlatChangeHandler(FlatChangeMapHandler handler)
This event is fired when the marker's flat property changes.

Parameters:
handler -

addIconChangeHandler

public final HandlerRegistration addIconChangeHandler(IconChangeMapHandler handler)
This event is fired when the marker icon property changes.

Parameters:
handler -

addMouseDownHandler

public final HandlerRegistration addMouseDownHandler(MouseDownMapHandler handler)
This event is fired for a mousedown on the marker.

Parameters:
handler -

addMouseOutMoveHandler

public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler)
This event is fired when the mouse leaves the area of the marker icon.

Parameters:
handler -

addMouseOverHandler

public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler)
This event is fired when the mouse enters the area of the marker icon.

Parameters:
handler -

addMouseUpHandler

public final HandlerRegistration addMouseUpHandler(MouseUpMapHandler handler)
This event is fired for a mouseup on the marker.

Parameters:
handler -

addProjectionChangeHandler

public final HandlerRegistration addProjectionChangeHandler(ProjectionChangeMapHandler handler)
This event is fired when the marker position property changes.

Parameters:
handler -

addRightClickHandler

public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler)
This event is fired for a rightclick on the marker.

Parameters:
handler -

addShadowChangeHandler

public final HandlerRegistration addShadowChangeHandler(ShadowChangeMapHandler handler)
This event is fired when the marker's shadow property changes.

Parameters:
handler -

addShapeChangeHandler

public final HandlerRegistration addShapeChangeHandler(ShapeChangeMapHandler handler)
This event is fired when the marker's shape property changes.

Parameters:
handler -

addTitleChangeHandler

public final HandlerRegistration addTitleChangeHandler(TitleChangeMapHandler handler)
This event is fired when the marker title property changes.

Parameters:
handler -

addVisibleChangeHandler

public final HandlerRegistration addVisibleChangeHandler(VisibleChangeMapHandler handler)
This event is fired when the marker's visible property changes.

Parameters:
handler -

addZindexChangeHandler

public final HandlerRegistration addZindexChangeHandler(ZindexChangeMapHandler handler)
This event is fired when the marker's zIndex property changes.

Parameters:
handler -

close

public final void close()
close the marker



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.