Example usage for com.google.gwt.maps.client.overlay PolyEditingOptions newInstance

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

Introduction

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

Prototype

public static native PolyEditingOptions newInstance(int maxVertices) ;

Source Link

Document

Create a PolyEditingOptions object.

Usage

From source file:com.google.gwt.maps.sample.hellomaps.client.DrawingOverlayDemo.java

License:Apache License

private void editPolygon() {
    if (lastPolygon == null) {
        return;/*w  w  w  .  ja v  a2 s  . co  m*/
    }
    // allow up to 10 vertices to exist in the polygon.
    lastPolygon.setEditingEnabled(PolyEditingOptions.newInstance(10));
}

From source file:com.google.gwt.maps.sample.hellomaps.client.DrawingOverlayDemo.java

License:Apache License

private void editPolyline() {
    if (lastPolyline == null) {
        return;//from ww  w. j a  va  2s.  c  om
    }
    // allow up to 10 vertices to exist in the line.
    lastPolyline.setEditingEnabled(PolyEditingOptions.newInstance(10));
}