Package com.google.gwt.maps.client.overlay

Examples of com.google.gwt.maps.client.overlay.Marker


      vp.add(new HTML("<i class = mapLocation >" + p.getLocationString() + "</i>"));
      hp.add(vp);
      hp.setWidth("300px");
      hp.setCellWidth(vp, "230px");
      LatLng point =LatLng.newInstance(p.getLatitude(), p.getLongitude());
      marker = new Marker(point);
      marker.setImage("images/marker.png");
      map.addOverlay(marker);
      listInfowindows.add(hp);
      listMarkers.add(marker);
     
View Full Code Here


          final String html = "<span>"
              + umarker.getStringAttribute("html") + "</span>";
          final double x = umarker.getDoubleAttribute("x");
          final double y = umarker.getDoubleAttribute("y");
          pos = LatLng.newInstance(x, y);
          final Marker marker = new Marker(pos);
          widget.addOverlay(marker);
          if (html != null) {
            addMarkerPopup(marker, html);
          }
        }
View Full Code Here

    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
    map.getInfoWindow().open(map.getCenter(),
        new InfoWindowContent("Niles West High School"));
View Full Code Here

    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
    map.getInfoWindow().open(map.getCenter(),
        new InfoWindowContent("Niles West High School"));
View Full Code Here

        map.checkResizeAndCenter();
        // checkResizeAndCenter() call added per comments in
        // http://code.google.com/p/gwt-google-apis/issues/detail?id=223
      }
      if (mapMarker == null) {
        mapMarker = new Marker(target);
        map.addOverlay(mapMarker);
      } else {
        mapMarker.setLatLng(target);
      }
    } catch (NumberFormatException e) {
View Full Code Here

    map.addControl(new SmallMapControl());
    map.setDoubleClickZoom(true);
    map.setDraggable(true);
    map.setScrollWheelZoomEnabled(true);
    if (!description.isEmpty()) {
      final Marker marker = new Marker(latLng);
      map.addOverlay(marker);
      final InfoWindowContent iwc = new InfoWindowContent(description);
      marker.addMarkerClickHandler(new MarkerClickHandler() {
        @Override
        public void onClick(MarkerClickEvent event) {
          InfoWindow infoWindow = map.getInfoWindow();
          if (infoWindow.isVisible()) {
            infoWindow.close();
View Full Code Here

        grid.setText(tableRow, 3, minLabel);
        grid.getCellFormatter().addStyleName(tableRow, 3, "ResultsTableWidget-ResultsTable-TimeColumn");

        grid.getRowFormatter().addStyleName(tableRow, "ResultsTableWidget-ResultsTable-ResultRow");

        Marker marker = getMarker(index, entry);
        marker.addMarkerClickHandler(handler);
        _mapOverlayManager.addOverlay(marker, 10, 20);
        _overlays.add(marker);

        index++;

        bounds.extend(marker.getLatLng());
      }

      if (!bounds.isEmpty()) {
        MapWidget map = _mapOverlayManager.getMapWidget();
        LatLngBounds currentView = map.getBounds();
View Full Code Here

      LatLng d = LatLng.newInstance(lb.getMinLat(), lb.getMaxLon());
      LatLng[] points = {a, b, c, d, a};
      Polyline line = new Polyline(points);
      _mapManager.addOverlay(line, 10, 20);

      Marker marker = new Marker(b);
      marker.addMarkerClickHandler(new MarkerClickHandler() {
        public void onClick(MarkerClickEvent event) {
          System.out.println(lb.getMinLat() + " " + lb.getMinLon());
          System.out.println(lb.getMaxLat() + " " + lb.getMaxLon());
        }
      });
View Full Code Here

    icon.setIconAnchor(Point.newInstance(12, 31));
    MarkerOptions opts = MarkerOptions.newInstance();
    opts.setClickable(true);
    opts.setIcon(icon);
    LatLng point = LatLng.newInstance(entry.getLat(), entry.getLon());
    return new Marker(point, opts);
  }
View Full Code Here

        final AgencyBean agency = agencyWithCoverage.getAgency();
        final LatLng point = LatLng.newInstance(agencyWithCoverage.getLat(),
            agencyWithCoverage.getLon());
        bounds.extend(point);

        Marker marker = new Marker(point);
        marker.addMarkerClickHandler(new MarkerClickHandler() {
          @Override
          public void onClick(MarkerClickEvent event) {
            InfoWindow window = _map.getInfoWindow();
            DivPanel panel = new DivPanel();
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.overlay.Marker

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.