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

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

Introduction

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

Prototype

public SmallMapControl() 

Source Link

Document

Creates a control with buttons to pan in four directions, and zoom in and zoom out.

Usage

From source file:org.thechiselgroup.choosel.visualization_component.map.client.Map.java

License:Apache License

@Override
public Widget createWidget() {
    map = new MapWidget();

    DOM.setStyleAttribute(map.getElement(), CSS.OVERFLOW, CSS.HIDDEN);

    map.setWidth("100%");
    map.setHeight("100%");

    map.addControl(new SmallMapControl());
    map.addControl(new MapTypeControl());

    map.addMapType(MapType.getPhysicalMap());
    map.setCurrentMapType(MapType.getPhysicalMap());
    map.setScrollWheelZoomEnabled(true);

    renderer.init(map, this);

    return map;//w  w w. j  a  v a  2s. co m
}