Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.InfoWindow.open()


                info.close();
              }
            });
          }
        });
        info.open(marker, new InfoWindowContent("Hello World!"));
      }
    }, false);
  }

  public void testMarkerInfoWindowCloseTrigger() {
View Full Code Here


            assertEquals(event.getSender(), marker);
            finishTest();
          }

        });
        info.open(marker, new InfoWindowContent("Hello World!"));
      }
    }, false);
  }

  public void testMarkerInfoWindowOpenTrigger() {
View Full Code Here

    this(false);
    this.deleteHandler = deleteHandler;
    map.addMapDoubleClickHandler(new MapDoubleClickHandler() {
      public void onDoubleClick(MapDoubleClickEvent event) {
        InfoWindow info = map.getInfoWindow();
        info.open(event.getLatLng(), newLocationCreateForm(event.getLatLng(),
            createHandler, info));
      }
    });
  }
View Full Code Here

    LatLng latlng = LatLng.newInstance(loc.getLatitude(), loc.getLongitude());
    final Marker marker = new Marker(latlng);
    marker.addMarkerClickHandler(new MarkerClickHandler() {
      public void onClick(MarkerClickEvent event) {
        final InfoWindow info = map.getInfoWindow();
        info.open(marker, newLocationDescription(loc, info, marker));
      }
    });
    return marker;
  }
View Full Code Here

        @Override
        public void onMouseOver(MarkerMouseOverEvent event) {

          InfoWindowContent iwc = new InfoWindowContent(temp);
          InfoWindow info = map.getInfoWindow();
          info.open(event.getSender(), iwc);
        }
      });
    }
    marker = new Marker(searchLL);
    map.addOverlay(marker);
View Full Code Here

        public void onClick(MarkerClickEvent event) {
          InfoWindow infoWindow = map.getInfoWindow();
          if (infoWindow.isVisible()) {
            infoWindow.close();
          } else {
            infoWindow.open(marker, iwc);
          }
        }
      });
      map.setTitle(description);
    }
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));
  }

  private void fillEntryPanel(TimedLocalSearchResult result, FlowPanel panel) {

    LocalSearchResult entry = result.getLocalSearchResult();
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));
      }
    });
  }

  public void setStopFinder(StopFinderInterface stopFinder) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.