Example usage for com.google.gwt.maps.client.control HierarchicalMapTypeControl HierarchicalMapTypeControl

List of usage examples for com.google.gwt.maps.client.control HierarchicalMapTypeControl HierarchicalMapTypeControl

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.control HierarchicalMapTypeControl HierarchicalMapTypeControl.

Prototype

public HierarchicalMapTypeControl() 

Source Link

Document

Constructs the control.

Usage

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;
}