vp.add(hp);
final Button infoWindowButton = new Button("Show InfoWindow");
infoWindowButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
InfoWindow info = map.getInfoWindow();
InfoWindowContent content = new InfoWindowContent("Hello Maps!");
content.setMaxContent("Hello Maps - more content");
content.setMaxTitle("Hello Maps");
info.open(map.getCenter(), content);
}
});
hp.add(infoWindowButton);
final Button mInfoWindowButton = new Button("Marker InfoWindow");
mInfoWindowButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
InfoWindow info = map.getInfoWindow();
InfoWindowContent content = new InfoWindowContent("Hello Maps!");
content.setMaxContent("Hello Maps - more content");
content.setMaxTitle("Hello Maps");
info.open(marker, content);
}
});
hp.add(mInfoWindowButton);
final Button mapTypeButton = new Button("Add Map Type");