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

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

Introduction

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

Prototype

public static List<MapType> getSkyMapTypes() 

Source Link

Document

Turns G_SKY_MAP_TYPES into an immutable list 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);// w w  w . j  a va2 s.c  o  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);
}