List of usage examples for com.google.gwt.maps.client.control SmallMapControl SmallMapControl
public SmallMapControl()
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 }