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

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


            map.addControl(new SmallMapControl());
            map.addControl(new MapTypeControl());
            map.setScrollWheelZoomEnabled(true);
            map.clearOverlays();

            map.addOverlay(new Marker(collegeCenter));
            Log.debug("Show CollegeBound");

            show(map);

        } catch (Exception e) {
View Full Code Here


                .getLongitude());
        if (point.getLatitude() == -1 && point.getLongitude() == -1) {
            return null;
        }

        final Marker marker = new Marker(point);
        marker.addMarkerClickListener(new MarkerClickListener() {
            public void onClick(Marker sender) {
                InfoWindow info = map.getInfoWindow();
                info.open(sender, new InfoWindowContent(new SchoolLink(
                        school)));
            }
View Full Code Here

            load(user);

            map.clearOverlays();
            for (Application app : user.getSchoolRankings()) {

                Marker marker = createMarker(app.getSchool());
                if (marker != null) {
                    map.addOverlay(marker);
                }
            }
        }
View Full Code Here

      map.addOverlay(createMarker(point, i + 1));
    }
  }

  private Marker createMarker(LatLng point, final int number) {
    final Marker marker = new Marker(point);
   
    marker.addMarkerClickHandler(new MarkerClickHandler() {
      public void onClick(MarkerClickEvent event) {
        InfoWindow info = map.getInfoWindow();
        info.open(marker,
            new InfoWindowContent("Marker #<b>" + number + "</b>"));
      }
View Full Code Here

    switch (selected) {
      case TEST_TEN_MARKERS: {
        // Add markers in random locations on the map
        for (int i = 0; i < NUM_POINTS; i++) {
          map.addOverlay(new Marker(points[i]));
        }
      }
        break;

      case TEST_POLYLINE_ONE: {
View Full Code Here

    options.setIcon(icon);
    for (int i = 0; i < 10; i++) {
      LatLng point = LatLng.newInstance(southWest.getLatitude() + latSpan
          * Math.random(), southWest.getLongitude() + lngSpan * Math.random());

      map.addOverlay(new Marker(point, options));
    }
  }
View Full Code Here

    map.setSize("500px", "300px");
    map.setUIToDefault();

    MarkerOptions opt = MarkerOptions.newInstance();
    opt.setDraggable(true);
    marker = new Marker(ATLANTA, opt);

    Panel hp1 = createActionButtons();

    HorizontalPanel hp2 = createListenerListBox();
View Full Code Here

  public void testMapAddOverlayEvent() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Marker marker = new Marker(LatLng.newInstance(0.0, 0.0));
        m.addMapAddOverlayHandler(new MapAddOverlayHandler() {
          public void onAddOverlay(MapAddOverlayEvent event) {
            assertEquals(event.getSender(), m);
            assertEquals(event.getOverlay(), marker);
            finishTest();
View Full Code Here

  public void testMapAddOverlayTrigger() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Marker marker = new Marker(LatLng.newInstance(0.0, 0.0));
        m.addMapAddOverlayHandler(new MapAddOverlayHandler() {
          public void onAddOverlay(MapAddOverlayEvent event) {
            assertEquals(event.getSender(), m);
            assertEquals(event.getOverlay(), marker);
            finishTest();
View Full Code Here

   */
  public void testMapClearOverlayEvent() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Marker marker = new Marker(LatLng.newInstance(0.0, 0.0));
        m.addMapClearOverlaysHandler(new MapClearOverlaysHandler() {
          public void onClearOverlays(MapClearOverlaysEvent event) {
            assertEquals(event.getSender(), m);
            finishTest();
          }
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.