List of usage examples for com.google.gwt.maps.client.control HierarchicalMapTypeControl HierarchicalMapTypeControl
public HierarchicalMapTypeControl()
From source file:com.google.gwt.maps.sample.hellomaps.client.CustomControlDemo.java
License:Apache License
/** * Provide access to the HierarchicalMapTypeControl singleton. * //from w w w. j a v a2 s .c o m * @return an instance of the control is created if necessary. */ private static HierarchicalMapTypeControl getHierarchicalMapTypeControl() { if (hControl != null) { return hControl; } hControl = new HierarchicalMapTypeControl(); hControl.addRelationship(MapType.getNormalMap(), MapType.getMarsVisibleMap(), "Mars visible"); hControl.addRelationship(MapType.getNormalMap(), MapType.getMarsInfraredMap(), "Mars infrared"); hControl.addRelationship(MapType.getNormalMap(), MapType.getMarsElevationMap(), "Mars elevation", true); return hControl; }