Example usage for com.google.gwt.maps.client.overlay Polyline Polyline

List of usage examples for com.google.gwt.maps.client.overlay Polyline Polyline

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlay Polyline Polyline.

Prototype

public Polyline(LatLng[] points, String color, int weight) 

Source Link

Document

Create a new polyline.

Usage

From source file:es.upm.fi.dia.oeg.map4rdf.client.view.v2.GoogleMapLayer.java

License:Open Source License

@Override
public HasClickHandlers drawPolyline(StyleMapShape<PolyLine> geometry) {
    Polyline line = new Polyline(GoogleMapsAdapters.getLatLngs((geometry.getMapShape()).getPoints()),
            geometry.getStrokeColor(), geometry.getStrokeWidth());
    addOverlay(line);//  ww  w  .  ja  v  a 2s . c  o  m
    return new PolylineClickHandlerWrapper(line);
}