Follow us on GitHub

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

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlays.MarkerOptions

public class MarkerOptions
extends JavaScriptObject

create Marker Options

See MarkerOptions API Doc


Constructor Summary
protected MarkerOptions()
          create Marker Options use newInstance();
 
Method Summary
 Animation getAnimation()
          gets Which animation to play when marker is added to a map.
 boolean getClickable()
          gets If true, the marker receives mouse and touch events.
 String getCursor()
          gets Mouse cursor to show on hover
 boolean getDraggable()
          gets If true, the marker can be dragged.
 boolean getFlat()
          gets If true, the marker shadow will not be displayed.
 MarkerImage getIcon_MarkerImage()
          gets Map on which to display Marker.
 String getIcon_String()
          gets Icon for the foreground
 StreetViewPanoramaWidget getMapStreetViewPanoramaWidget()
          gets Map on which to display Marker.
 MapWidget getMapWidget()
          gets Map on which to display Polyline.
 boolean getOptimized()
          gets Optimization renders many markers as a single static element.
 LatLng getPosition()
          gets Marker position.
 boolean getRaiseOnDrag()
          gets If false, disables raising and lowering the marker on drag.
 MarkerImage getShadow_MarkerImage()
          gets Shadow image
 String getShadow_String()
          gets Shadow image
 MarkerShape getShape()
          gets Image map region definition used for drag/click.
 String getTitle()
          gets Rollover text
 boolean getVisible()
          gets If true, the marker is visible
 int getZindex()
          gets All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values.
static MarkerOptions newInstance()
          create Marker Options
 void setAnimation(Animation animation)
          sets Which animation to play when marker is added to a map.
 void setClickable(boolean clickable)
          sets If true, the marker receives mouse and touch events.
 void setCursor(String cursor)
          sets Mouse cursor to show on hover
 void setDraggable(boolean draggable)
          sets If true, the marker can be dragged.
 void setFlat(boolean flat)
          sets If true, the marker shadow will not be displayed.
 void setIcon(MarkerImage icon)
          sets Map on which to display Marker.
 void setIcon(String icon)
          sets Icon for the foreground
 void setMap(MapWidget mapWidget)
          sets Map on which to display Polyline.
 void setMap(StreetViewPanoramaWidget streetViewPanoramaWidget)
           
 void setOptimized(boolean optimized)
          sets Optimization renders many markers as a single static element.
 void setPosition(LatLng position)
          sets Marker position.
 void setRaiseOnDrag(boolean raiseOnDrag)
          sets If false, disables raising and lowering the marker on drag.
 void setShadow(MarkerImage shadow)
          sets Shadow image
 void setShadow(String shadow)
          sets Shadow image
 void setShape(MarkerShape shape)
          sets Image map region definition used for drag/click.
 void setTitle(String title)
          sets Rollover text
 void setVisible(boolean visible)
          sets If true, the marker is visible
 void setZindex(int zIndex)
          sets All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values.
 
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

MarkerOptions

protected MarkerOptions()
create Marker Options use newInstance();

Method Detail

newInstance

public static final MarkerOptions newInstance()
create Marker Options


setAnimation

public final void setAnimation(Animation animation)
sets Which animation to play when marker is added to a map.

Parameters:
animation -

getAnimation

public final Animation getAnimation()
gets Which animation to play when marker is added to a map.


setClickable

public final void setClickable(boolean clickable)
sets If true, the marker receives mouse and touch events. Default value is true.

Parameters:
clickable -

getClickable

public final boolean getClickable()
gets If true, the marker receives mouse and touch events. Default value is true.


setCursor

public final void setCursor(String cursor)
sets Mouse cursor to show on hover

Parameters:
cursor -

getCursor

public final String getCursor()
gets Mouse cursor to show on hover


setDraggable

public final void setDraggable(boolean draggable)
sets If true, the marker can be dragged. Default value is false.

Parameters:
draggable -

getDraggable

public final boolean getDraggable()
gets If true, the marker can be dragged. Default value is false.


setFlat

public final void setFlat(boolean flat)
sets If true, the marker shadow will not be displayed.

Parameters:
flat -

getFlat

public final boolean getFlat()
gets If true, the marker shadow will not be displayed.


setIcon

public final void setIcon(String icon)
sets Icon for the foreground

Parameters:
icon -

getIcon_String

public final String getIcon_String()
gets Icon for the foreground


setIcon

public final void setIcon(MarkerImage icon)
sets Map on which to display Marker.

Parameters:
icon -

getIcon_MarkerImage

public final MarkerImage getIcon_MarkerImage()
gets Map on which to display Marker.


setMap

public final void setMap(MapWidget mapWidget)
sets Map on which to display Polyline.

Parameters:
mapWidget -

getMapWidget

public final MapWidget getMapWidget()
gets Map on which to display Polyline.


setMap

public final void setMap(StreetViewPanoramaWidget streetViewPanoramaWidget)

getMapStreetViewPanoramaWidget

public final StreetViewPanoramaWidget getMapStreetViewPanoramaWidget()
gets Map on which to display Marker.


setOptimized

public final void setOptimized(boolean optimized)
sets Optimization renders many markers as a single static element. Optimized rendering is enabled by default. Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only).

Parameters:
optimized -

getOptimized

public final boolean getOptimized()
gets Optimization renders many markers as a single static element. Optimized rendering is enabled by default. Disable optimized rendering for animated GIFs or PNGs, or when each marker must be rendered as a separate DOM element (advanced usage only).


setPosition

public final void setPosition(LatLng position)
sets Marker position. Required.

Parameters:
position -

getPosition

public final LatLng getPosition()
gets Marker position. Required.


setRaiseOnDrag

public final void setRaiseOnDrag(boolean raiseOnDrag)
sets If false, disables raising and lowering the marker on drag. This option is true by default.

Parameters:
raiseOnDrag -

getRaiseOnDrag

public final boolean getRaiseOnDrag()
gets If false, disables raising and lowering the marker on drag. This option is true by default.


setShadow

public final void setShadow(String shadow)
sets Shadow image

Parameters:
shadow -

getShadow_String

public final String getShadow_String()
gets Shadow image


setShadow

public final void setShadow(MarkerImage shadow)
sets Shadow image

Parameters:
shadow -

getShadow_MarkerImage

public final MarkerImage getShadow_MarkerImage()
gets Shadow image


setShape

public final void setShape(MarkerShape shape)
sets Image map region definition used for drag/click.

Parameters:
shape -

getShape

public final MarkerShape getShape()
gets Image map region definition used for drag/click.


setTitle

public final void setTitle(String title)
sets Rollover text

Parameters:
title -

getTitle

public final String getTitle()
gets Rollover text


setVisible

public final void setVisible(boolean visible)
sets If true, the marker is visible

Parameters:
visible -

getVisible

public final boolean getVisible()
gets If true, the marker is visible


setZindex

public final void setZindex(int zIndex)
sets All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.

Parameters:
zIndex -

getZindex

public final int getZindex()
gets All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.



Follow us on GitHub

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