List of usage examples for com.google.gwt.maps.client.overlay PolyEditingOptions newInstance
public static native PolyEditingOptions newInstance(int maxVertices) ;
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)); }