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

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


            }

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

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

            map.addOverlay(new Marker(collegeCenter));
            Log.debug("Show CollegeBound");
View Full Code Here


        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);
        sizeCorrector.setPixelSize(760,300);
View Full Code Here

    };

    MapType mapType = new MapType(new TileLayer[] {tileLayer},
        new MercatorProjection(20), "MyMap");
    map.addMapType(mapType);
    map.addControl(new MapTypeControl());

    vertPanel.add(map);

    initWidget(vertPanel);
  }
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
      public void run() {
View Full Code Here

    }
    if (control.equals(MapControl.LargeMapControl)) {
      return new LargeMapControl();
    }
    if (control.equals(MapControl.MapTypeControl)) {
      return new MapTypeControl();
    }
    if (control.equals(MapControl.MenuMapTypeControl)) {
      return new MenuMapTypeControl();
    }
    if (control.equals(MapControl.OverviewMapControl)) {
View Full Code Here

        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

      return;
    }

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

    /**
     * View Layer
     */
    MapWidget mapWidget = new MapWidget(LatLng.newInstance(47.601533, -122.32933), 11);
    mapWidget.addControl(new LargeMapControl());
    mapWidget.addControl(new MapTypeControl());
    mapWidget.addControl(new ScaleControl());
   
    ColorGradientControl colorGradient = new ColorGradientControl();
    mapWidget.addControl(colorGradient);
   
View Full Code Here

  public StopFinderWidget() {
    initWidget(_uiBinder.createAndBindUi(this));

    _map.addControl(new LargeMapControl());
    _map.addControl(new MapTypeControl());
    _map.addControl(new ScaleControl());
    _map.setScrollWheelZoomEnabled(true);
   

    // We delay initialization of the map
View Full Code Here

    for (Widget widget : _resultPanelWidgets)
      _resultsPanel.add(widget);

    _map.addControl(new LargeMapControl());
    _map.addControl(new MapTypeControl());
    _map.addControl(new ScaleControl());
    _map.setScrollWheelZoomEnabled(true);

    // We delay initialization of the map
    DeferredCommand.addCommand(new Command() {
View Full Code Here

TOP

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

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.