Example usage for com.google.gwt.maps.client MapType getMarsMapTypes

List of usage examples for com.google.gwt.maps.client MapType getMarsMapTypes

Introduction

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

Prototype

public static List<MapType> getMarsMapTypes() 

Source Link

Document

Turns G_MARS_MAP_TYPES into an immutable of MapType objects.

Usage

From source file:com.google.gwt.maps.sample.hellomaps.client.MapTypeDemo.java

License:Apache License

public MapTypeDemo() {

    VerticalPanel vertPanel = new VerticalPanel();
    vertPanel.setStyleName("hm-panel");

    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "500px");

    // Add in all the map types we know about.
    for (MapType mt : MapType.getDefaultMapTypes()) {
        map.addMapType(mt);/*from ww w .  j a  v a2  s .co m*/
    }
    map.addMapType(MapType.getPhysicalMap());
    map.addMapType(MapType.getEarthMap());

    for (MapType mt : MapType.getMoonMapTypes()) {
        map.addMapType(mt);
    }

    for (MapType mt : MapType.getMarsMapTypes()) {
        map.addMapType(mt);
    }

    for (MapType mt : MapType.getSkyMapTypes()) {
        map.addMapType(mt);
    }

    map.addControl(new DemoCustomMapTypeControl());
    map.addControl(new LargeMapControl());
    vertPanel.add(map);

    initWidget(vertPanel);
}