map.setUIToDefault();
map.addMapType(MapType.getEarthMap());
map.setCurrentMapType(MapType.getEarthMap());
panel.add(map);
initWidget(panel);
map.getEarthInstance(new EarthInstanceHandler() {
public void onEarthInstance(EarthInstanceEvent event) {
final JavaScriptObject earth = event.getEarthInstance();
if (earth == null) {
Window.alert("Failed to init earth plugin");