@Wire
private Openlayers map;
public void doAfterCompose(Window comp) throws Exception {
super.doAfterCompose(comp);
map.addLayer(new VirtualEarth("Shaded", toMap(pair("type",
VirtualEarth.Type.SHADED))));
map.addLayer(new VirtualEarth("Hybrid", toMap(pair("type",
VirtualEarth.Type.HYBRID))));
map.addLayer(new VirtualEarth("Aerial", toMap(pair("type",
VirtualEarth.Type.AERIAL))));
map.addControl(new LayerSwitcher());
map.setCenter(new LonLat(-110, 45), 3, false, false);