com.mapitz.gwt.googleMaps.client
Class GPolyline

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GOverlay
          extended by com.mapitz.gwt.googleMaps.client.GPolyline

public class GPolyline
extends GOverlay

This is a map overlay that draws a polyline on the map, using the vector drawing facilities of the browser if they are available, or an image overlay from Google servers otherwise.

Author:
aglaforge

Method Summary
static GPolyline create(GLatLng[] points)
          Creates a polyline from an array of vertices.
static GPolyline create(GLatLng[] points, java.lang.String color)
          Creates a polyline from an array of vertices.
static GPolyline create(GLatLng[] points, java.lang.String color, int weight)
          Creates a polyline from an array of vertices.
static GPolyline create(GLatLng[] points, java.lang.String color, int weight, double opacity)
          Creates a polyline from an array of vertices.
 GLatLng getVertex(int index)
          getVertex(index) GLatLng Returns the vertex with the given index in the polyline.
 int getVertexCount()
          getVertexCount() Number Returns the number of vertices in the polyline.
 
Methods inherited from class com.mapitz.gwt.googleMaps.client.GOverlay
Copy, GetZIndex, Initialize, Redraw, Remove
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GPolyline create(GLatLng[] points,
                               java.lang.String color,
                               int weight,
                               double opacity)
Creates a polyline from an array of vertices. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width of the line in pixels. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.


create

public static GPolyline create(GLatLng[] points,
                               java.lang.String color,
                               int weight)
Creates a polyline from an array of vertices. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width of the line in pixels. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.


create

public static GPolyline create(GLatLng[] points,
                               java.lang.String color)
Creates a polyline from an array of vertices. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width of the line in pixels. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.


create

public static GPolyline create(GLatLng[] points)
Creates a polyline from an array of vertices. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB. The weight is the width of the line in pixels. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.


getVertexCount

public int getVertexCount()
getVertexCount() Number Returns the number of vertices in the polyline. (Since 2.46)


getVertex

public GLatLng getVertex(int index)
getVertex(index) GLatLng Returns the vertex with the given index in the polyline. (Since 2.46)