info("InfoWindow was opened");
target.addComponent(feedback);
}
});
map.addControl(GControl.GSmallMapControl);
map.getInfoWindow().open(new GLatLng(37.5, -122.1),
new GInfoWindowTab("One", new HelloPanel()),
new GInfoWindowTab("Two", new HelloPanel()));
add(map);
infoWindow = new Label("infoWindow", "openInfoWindow");
infoWindow.add(new AjaxEventBehavior("onclick")
{
private static final long serialVersionUID = 1L;
/**
* @see org.apache.wicket.ajax.AjaxEventBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
*/
@Override
protected void onEvent(AjaxRequestTarget target)
{
map.getInfoWindow().open(new GLatLng(37.5, -122.1), new HelloPanel());
}
});
add(infoWindow);
add(new Link<Object>("reload")
{