}
@Override
protected Widget initialize(final MapWidget map) {
//GWT.log("initialize DrawingToolsControls with map=" + map);
final HandlerManager bus = this.eventBus;
Panel container = new FlowPanel();
lineButton = new Image(ToolResources.INSTANCE.lineUp());
lineButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
//GWT.log("create polyline...");
bus.fireEvent(new CreatePolyLineEvent());
}
});
shapeButton = new Image(ToolResources.INSTANCE.polygonUp());
shapeButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
//GWT.log("create polygon...");
bus.fireEvent(new CreatePolygonEvent());
}
});
HTML debug = new HTML("debug");
debug.addClickHandler(new ClickHandler() {