}
@Override
protected Widget initialize(final MapWidget map) {
ControlImageBundle imgBundle = GWT.create(ControlImageBundle.class);
Image trafficImage = new Image(imgBundle.traffic());
Image satelliteImage = new Image(imgBundle.moziconEarth());
Image zoomInImage = new Image(imgBundle.plus());
Image zoomOutImage = new Image(imgBundle.minus());
trafficImage.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
map.setCurrentMapType(MapType.getNormalMap());
}
});
satelliteImage.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
map.setCurrentMapType(MapType.getSatelliteMap());
}
});
zoomInImage.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
map.zoomIn();
}
});
zoomOutImage.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
map.zoomOut();
}
});