Package com.google.gwt.maps.client.control

Examples of com.google.gwt.maps.client.control.SmallMapControl


                map = new MapWidget(collegeCenter, DEFAULT_ZOOM);
            }

            map.setSize("300px", "250px");

            map.addControl(new SmallMapControl());
            map.addControl(new MapTypeControl());
            map.setScrollWheelZoomEnabled(true);
            map.clearOverlays();

            map.addOverlay(new Marker(collegeCenter));
View Full Code Here


    public MyCollegeMap(ServiceCache serviceCache) {

        map = new MapWidget(middleAmerica, 4);       
        map.setPixelSize(760, 300);

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

        SimplePanel sizeCorrector = new SimplePanel();
        sizeCorrector.add(map);
View Full Code Here

  public ControlsDemo() {
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    initWidget(map);
    map.addControl(new SmallMapControl());
    map.addControl(new MapTypeControl());

    Timer timer = new Timer() {

      @Override
View Full Code Here

        new MercatorProjection(maxZoom - minZoom + 1), name);
  }

  private Control newControl(MapControl control) {
    if (control.equals(MapControl.SmallMapControl)) {
      return new SmallMapControl();
    }
    if (control.equals(MapControl.HierarchicalMapTypeControl)) {
      return new HierarchicalMapTypeControl();
    }
    if (control.equals(MapControl.LargeMapControl)) {
View Full Code Here

  public VGoogleMap() {
    initWidget(widget);
    setWidth("200px");
    setHeight("200px");
    setStyleName(CLASSNAME);
    widget.addControl(new SmallMapControl());

  }
View Full Code Here

        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);
View Full Code Here

    AjaxLoader.loadApi("maps", "2", new Runnable() {
      @Override
      public void run() {
        map = new MapWidget();
        map.setSize(MAP_WIDTH + "px", MAP_HEIGHT + "px");
        map.addControl(new SmallMapControl());
        map.setDoubleClickZoom(true);
        map.setDraggable(true);
        map.setScrollWheelZoomEnabled(true);
        map.setZoomLevel(MAP_ZOOM);
        map.setVisible(false);
View Full Code Here

    final String description = location.getDescription();
    LatLng latLng = LatLng.newInstance(location.getLatitude(), location.getLongitude());
   
    final MapWidget map = new MapWidget(latLng, MAPS_ZOOM);
    map.setSize(MAPS_WIDTH + "px", MAPS_HEIGHT + "px");
    map.addControl(new SmallMapControl());
    map.setDoubleClickZoom(true);
    map.setDraggable(true);
    map.setScrollWheelZoomEnabled(true);
    if (!description.isEmpty()) {
      final Marker marker = new Marker(latLng);
View Full Code Here

      System.out.println("you didn't include a div with the id of \"agencies_map\"");
      return;
    }

    MapWidget map = new MapWidget();
    map.addControl(new SmallMapControl());
    map.addControl(new MapTypeControl());
    map.addControl(new ScaleControl());
    map.setScrollWheelZoomEnabled(true);
    panel.add(map);
   
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.control.SmallMapControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.