Follow us on GitHub

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

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

public class PolylineOptions
extends JavaScriptObject

polyline options

See PolygonOptions API Doc


Constructor Summary
protected PolylineOptions()
          use newInstance();
 
Method Summary
 boolean getClickable()
          gets Indicates whether this Polyline handles click events.
 boolean getGeodesic()
          gets When true, render each edge as a geodesic (a segment of a "great circle").
 MapWidget getMapWidget()
          gets Map on which to display Polyline.
 JsArray<LatLng> getPath_JsArray()
          gets The ordered sequence of coordinates of the Polyline.
 MVCArray<LatLng> getPath_MVCArray()
          gets The ordered sequence of coordinates of the Polyline.
 String getStrokeColor()
          gets The stroke color.
 double getStrokeOpacity()
          gets The stroke opacity between 0.0 and 1.0
 int getStrokeWeight()
          gets The stroke width in pixels.
 int getZindex()
          gets The zIndex compared to other polys.
static PolylineOptions newInstance()
          creates a new instance of options
 void setClickable(boolean clickable)
          sets Indicates whether this Polyline handles click events.
 void setGeodesic(boolean geodesic)
          sets When true, render each edge as a geodesic (a segment of a "great circle").
 void setMap(MapWidget mapWidget)
          sets Map on which to display Polyline.
 void setPath(JsArray<LatLng> path)
          sets The ordered sequence of coordinates of the Polyline.
 void setPath(MVCArray<LatLng> path)
          sets The ordered sequence of coordinates of the Polyline.
 void setStrokeColor(String strokeColor)
          sets The stroke color.
 void setStrokeOpacity(double strokeOpacity)
          sets The stroke opacity between 0.0 and 1.0
 void setStrokeWeight(int strokeWeight)
          sets The stroke width in pixels.
 void setZindex(int zIndex)
          sets The zIndex compared to other polys.
 
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

PolylineOptions

protected PolylineOptions()
use newInstance();

Method Detail

newInstance

public static final PolylineOptions newInstance()
creates a new instance of options


setClickable

public final void setClickable(boolean clickable)
sets Indicates whether this Polyline handles click events. Defaults to true.

Parameters:
clickable -

getClickable

public final boolean getClickable()
gets Indicates whether this Polyline handles click events. Defaults to true.


setGeodesic

public final void setGeodesic(boolean geodesic)
sets When true, render each edge as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth. When false, render each edge as a straight line on screen. Defaults to false.

Parameters:
geodesic -

getGeodesic

public final boolean getGeodesic()
gets When true, render each edge as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth. When false, render each edge as a straight line on screen. Defaults to false.


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.


setPath

public final void setPath(MVCArray<LatLng> path)
sets The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.

Parameters:
path -

setPath

public final void setPath(JsArray<LatLng> path)
sets The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.

Parameters:
path -

getPath_MVCArray

public final MVCArray<LatLng> getPath_MVCArray()
gets The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.


getPath_JsArray

public final JsArray<LatLng> getPath_JsArray()
gets The ordered sequence of coordinates of the Polyline. This path may be specified using either a simple array of LatLngs, or an MVCArray of LatLngs. Note that if you pass a simple array, it will be converted to an MVCArray Inserting or removing LatLngs in the MVCArray will automatically update the polyline on the map.


setStrokeColor

public final void setStrokeColor(String strokeColor)
sets The stroke color. All CSS3 colors are supported except for extended named colors.

Parameters:
strokeColor -

getStrokeColor

public final String getStrokeColor()
gets The stroke color. All CSS3 colors are supported except for extended named colors.


setStrokeOpacity

public final void setStrokeOpacity(double strokeOpacity)
sets The stroke opacity between 0.0 and 1.0

Parameters:
strokeOpacity -

getStrokeOpacity

public final double getStrokeOpacity()
gets The stroke opacity between 0.0 and 1.0


setStrokeWeight

public final void setStrokeWeight(int strokeWeight)
sets The stroke width in pixels.

Parameters:
strokeWeight -

getStrokeWeight

public final int getStrokeWeight()
gets The stroke width in pixels.


setZindex

public final void setZindex(int zIndex)
sets The zIndex compared to other polys.

Parameters:
zIndex -

getZindex

public final int getZindex()
gets The zIndex compared to other polys.



Follow us on GitHub

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