Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.InfoWindow$VirtualPanel


  }

  private void hideInfoWindow() {
    // Hide that info window if need be
    MapWidget map = _mapOverlayManager.getMapWidget();
    InfoWindow window = map.getInfoWindow();
    window.close();
  }
View Full Code Here


    LocalSearchResult entry = result.getLocalSearchResult();

    LatLng point = LatLng.newInstance(entry.getLat(), entry.getLon());
    MapWidget map = _mapOverlayManager.getMapWidget();
    InfoWindow window = map.getInfoWindow();
    window.open(point, new InfoWindowContent(panel));
  }
View Full Code Here

   * Private Methods
   ****/

  private void showPlaceInfoWindow(Place place, boolean includeSelectionLink) {
    LatLng p = place.getLocation();
    InfoWindow window = _map.getInfoWindow();

    FlowPanel panel = new FlowPanel();

    FlowPanel rowA = new FlowPanel();
    panel.add(rowA);
    rowA.add(new SpanWidget(place.getName()));

    if (includeSelectionLink) {
      FlowPanel rowB = new FlowPanel();
      panel.add(rowB);
      Anchor anchor = new Anchor("Show nearby stops");
      anchor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent arg0) {

        }
      });
      rowB.add(anchor);
    }

    window.open(p, new InfoWindowContent(panel));
  }
View Full Code Here

      DivPanel anchorRow = new DivPanel();
      panel.add(anchorRow);
      anchorRow.add(anchor);

      InfoWindow window = _map.getInfoWindow();
      LatLng point = LatLng.newInstance(stop.getLat(), stop.getLon());
      window.open(point, new InfoWindowContent(panel));
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.InfoWindow$VirtualPanel

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.