Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.MapWidget.addControl()


      LatLng cmu_information_systems = LatLng.newInstance(40.44152, -79.946123);
     
      final MapWidget map = new MapWidget(cmu_information_systems, 2);
      map.setSize("60em", "40em");
      // Add some controls for the zoom level
      map.addControl(new LargeMapControl());
      map.setZoomLevel(16);
      // Add a marker
      map.addOverlay(new Marker(cmu_information_systems));

      // Add an info window to highlight a point of interest
View Full Code Here


    LatLng nilesWest = LatLng.newInstance(42.02606, -87.77194);

    final MapWidget map = new MapWidget(nilesWest, 2);
    map.setSize("100%", "100%");
    // Add some controls for the zoom level
    map.addControl(new LargeMapControl());

    // Add a marker
    map.addOverlay(new Marker(nilesWest));

    // Add an info window to highlight a point of interest
View Full Code Here

    LatLng nilesWest = LatLng.newInstance(42.02606, -87.77194);

    final MapWidget map = new MapWidget(nilesWest, 2);
    map.setSize("100%", "100%");
    // Add some controls for the zoom level
    map.addControl(new LargeMapControl());

    // Add a marker
    map.addOverlay(new Marker(nilesWest));

    // Add an info window to highlight a point of interest
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

      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

    }

    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

    /**
     * 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

     * 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);
   
    mapOverlayManager.setMapWidget(mapWidget);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.