public void onUpdate(PolygonLineUpdatedEvent event) {
message2.setText(message2.getText() + " : Polygon Updated");
}
});
poly.addPolygonCancelLineHandler(new PolygonCancelLineHandler() {
public void onCancel(PolygonCancelLineEvent event) {
message2.setText(message2.getText() + " : Polygon Cancelled");
}
});