Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.InfoWindowContent


            lData.setRadius((int) slider.getCurrentValue() * 1000);
          }

        });

        InfoWindowContent iwc = new InfoWindowContent(slider);
        map.getInfoWindow().open(marker.getLatLng(), iwc);

      }

    });
View Full Code Here


    marker.addMarkerClickHandler(new MarkerClickHandler() {

      @SuppressWarnings("deprecation")
      public void onClick(MarkerClickEvent event) {
        widget.getInfoWindow().open(event.getSender().getPoint(),
            new InfoWindowContent(html));

      }

    });
View Full Code Here

    // 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"));

    final DockLayoutPanel dock = new DockLayoutPanel(Unit.PX);
    dock.addNorth(map, 500);

    // Add the map to the HTML host page
View Full Code Here

    // 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"));

    final DockLayoutPanel dock = new DockLayoutPanel(Unit.PX);
    dock.addNorth(map, 500);

    // Add the map to the HTML host page
View Full Code Here

    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()) {
View Full Code Here

            DivPanel rowB = new DivPanel(_css.paragraph());
            panel.add(rowB);
            rowB.add(new Anchor("jump to map", "index.html#m(location)lat("
                + point.getLatitude() + ")lon(" + point.getLongitude()
                + ")accuracy(4)"));
            window.open(point, new InfoWindowContent(panel));
          }
        });

        _map.addOverlay(marker);
      }
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

          _transitMapManager.showPlace(place, true,
              ShowPlacesOnMapToggleHandler.this);
        }
      });

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

      public void handleStopClicked(StopClickedEvent event) {
        StopBean stop = event.getStop();
        InfoWindow window = _map.getInfoWindow();
        LatLng point = LatLng.newInstance(stop.getLat(), stop.getLon());
        Widget widget = getStopInfoWindowWidget(stop,style);
        window.open(point, new InfoWindowContent(widget));
      }
    });
  }
View Full Code Here

            panel.add(new DivWidget("Trip: " + trip.getId()));
            panel.add(new DivWidget("Destination: "
                + bean.getTrip().getTripHeadsign()));

            InfoWindow window = _map.getInfoWindow();
            window.open(point, new InfoWindowContent(panel));
          }
        });

      }
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.InfoWindowContent

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.