Example usage for com.google.gwt.maps.client MapUIOptions newInstance

List of usage examples for com.google.gwt.maps.client MapUIOptions newInstance

Introduction

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

Prototype

public static final native MapUIOptions newInstance(Size optSize) ;

Source Link

Document

Returns a new instance of GMapUIOptions with values set to defaults suitable for a map of the given size.

Usage

From source file:com.google.gwt.gadgets.sample.traveler.client.TravelMap.java

License:Apache License

private TravelMap(boolean doubleClickToZoom) {
    map = new MapWidget();
    map.setSize("100%", "100%");
    map.setCenter(zero, 0);/*from   w ww  . java  2s.  c o m*/
    MapUIOptions options = MapUIOptions.newInstance(Size.newInstance(200, 200));
    options.setDoubleClick(doubleClickToZoom);
    map.setUI(options);
    DockLayoutPanel panel = new DockLayoutPanel(Unit.PCT);
    panel.add(map);
    initWidget(panel);
}