List of usage examples for com.google.gwt.maps.client MapType getSatelliteMap
public static MapType getSatelliteMap()
From source file:com.google.gwt.maps.sample.hellomaps.client.CustomControlDemo.java
License:Apache License
public CustomControlDemo() { VerticalPanel vertPanel = new VerticalPanel(); vertPanel.setStyleName("hm-panel"); actionListBox = new ListBox(); for (ControlDemos cd : ControlDemos.values()) { actionListBox.addItem(cd.valueOf()); }//from w w w . j a va 2 s . co m actionListBox.addChangeListener(new ChangeListener() { public void onChange(Widget sender) { displayCustomControl(); } }); HorizontalPanel horizPanel = new HorizontalPanel(); horizPanel.add(new Label("Choose Action:")); horizPanel.add(actionListBox); horizPanel.setSpacing(10); vertPanel.add(horizPanel); map = new MapWidget(LatLng.newInstance(37.441944, -122.141944), 13); map.setSize("500px", "300px"); map.addMapType(MapType.getNormalMap()); map.addMapType(MapType.getSatelliteMap()); map.addMapType(MapType.getMarsVisibleMap()); map.addMapType(MapType.getMarsElevationMap()); map.addMapType(MapType.getMarsInfraredMap()); vertPanel.add(map); new Timer() { public void run() { displayCustomControl(); } }.schedule(250); initWidget(vertPanel); }
From source file:org.thechiselgroup.choosel.visualization_component.map.client.Map.java
License:Apache License
public String getMapType() { MapType mapType = map.getCurrentMapType(); if (MapType.getNormalMap().equals(mapType)) { return MAP_TYPE_NORMAL; } else if (MapType.getSatelliteMap().equals(mapType)) { return MAP_TYPE_SATELLITE; } else if (MapType.getPhysicalMap().equals(mapType)) { return MAP_TYPE_PHYSICAL; } else if (MapType.getHybridMap().equals(mapType)) { return MAP_TYPE_HYBRID; } else {/*w w w.j a va 2 s .co m*/ throw new RuntimeException("map type persistence not supported for type " + mapType.getName(false)); } }
From source file:org.thechiselgroup.choosel.visualization_component.map.client.Map.java
License:Apache License
public void setMapType(String mapTypeID) { if (MAP_TYPE_NORMAL.equals(mapTypeID)) { map.setCurrentMapType(MapType.getNormalMap()); } else if (MAP_TYPE_SATELLITE.equals(mapTypeID)) { map.setCurrentMapType(MapType.getSatelliteMap()); } else if (MAP_TYPE_PHYSICAL.equals(mapTypeID)) { map.setCurrentMapType(MapType.getPhysicalMap()); } else if (MAP_TYPE_HYBRID.equals(mapTypeID)) { map.setCurrentMapType(MapType.getHybridMap()); } else {//from w w w .j a v a 2 s .c o m throw new RuntimeException("map type persistence not supported for type " + mapTypeID); } }