Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.MapWidget$MapPanel


            double longitude = Double.parseDouble(getParam("longitude"));

            LatLng collegeCenter = new LatLng(latitude, longitude);

            if (latitude == -1 && longitude == -1) {
                map = new MapWidget();
            } else {
                map = new MapWidget(collegeCenter, DEFAULT_ZOOM);
            }

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

            map.addControl(new SmallMapControl());
View Full Code Here


    private User user;

    public MyCollegeMap(ServiceCache serviceCache) {

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

        map.addControl(new SmallMapControl());
        map.addControl(new MapTypeControl());
        map.setScrollWheelZoomEnabled(true);
View Full Code Here

  private final LatLng start = LatLng.newInstance(37.4419, -122.1419);

  private final LatLng end = LatLng.newInstance(37.4569, -122.1569);

  public AnimateDemo() {
    map = new MapWidget(start, 13);
    map.setSize("500px", "300px");
    map.setUIToDefault();
    initWidget(map);
  }
View Full Code Here

  }

  private MapWidget map;

  public MarkerInfoWindowDemo() {
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    initWidget(map);
    map.setUIToDefault();
  }
View Full Code Here

  private boolean trafficShown;

  public TrafficOverlayDemo() {
    Panel panel = new FlowPanel();

    map = new MapWidget(LatLng.newInstance(40.652513, -73.936615), 12);
    map.setSize("640px", "480px");
    panel.add(map);
    Button toggleTraffic = new Button("Toggle Traffic");
    toggleTraffic.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
View Full Code Here

  private final Button removeAddButton;
  private final Button showHideButton;

  public KmlOverlayDemo() {
    Panel panel = new FlowPanel();
    map = new MapWidget(LatLng.newInstance(41.875696, -87.624207), 11);
    map.setSize("640px", "480px");
    map.setUIToDefault();
    panel.add(map);

    // Toggle the visibility of the overlays by
View Full Code Here

  private Button toggleButton;

  public GeoRssOverlayDemo() {
    Panel panel = new FlowPanel();

    map = new MapWidget(LatLng.newInstance(49.496675, -102.65625), 3);
    map.setSize("640px", "480px");
    map.setUIToDefault();
    panel.add(map);
    toggleButton = new Button("Toggle Markers");
    toggleButton.setEnabled(false);
View Full Code Here

    horizPanel.add(actionListBox);
    horizPanel.setSpacing(10);

    vertPanel.add(horizPanel);

    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    map.setUIToDefault();
    vertPanel.add(map);
    map.addMapType(MapType.getHybridMap());
    map.setCurrentMapType(MapType.getHybridMap());
View Full Code Here

  private MapWidget map;

  private boolean firstTime = true;

  public CustomOverlayDemo() {
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    map.setUIToDefault();
    initWidget(map);
  }
View Full Code Here

  public DragCursorDemo() {
    MapOptions options = MapOptions.newInstance();
    options.setDraggableCursor("crosshair");
    options.setDraggingCursor("text");
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13, options);
    map.setSize("500px", "300px");
    map.setUIToDefault();
    initWidget(map);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.MapWidget$MapPanel

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.