Package com.google.gwt.maps.client.event

Examples of com.google.gwt.maps.client.event.MapClickHandler


        });
      }
        break;

      case MAP_CLICK_HANDLER: {
        final MapClickHandler h = new MapClickHandler() {

          public void onClick(MapClickEvent e) {
            String additionalText = "";
            if (e.getOverlay() != null) {
              additionalText = " Overlay clicked" + e.getOverlayLatLng();
View Full Code Here


   */
  public void testMapClickTrigger() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        m.addMapClickHandler(new MapClickHandler() {
          public void onClick(MapClickEvent event) {
            Overlay o = event.getOverlay();
            LatLng p = event.getLatLng();
            assertEquals(event.getSender(), m);
            assertNotNull("maker is null", o);
View Full Code Here

    panorama = new StreetviewPanoramaWidget(options);
    panorama.setSize("500px", "300px");

    map = new MapWidget(tenthStreet, 16);
    map.setSize("500px", "300px");
    map.addMapClickHandler(new MapClickHandler() {
      public void onClick(MapClickEvent event) {
        LatLng point = event.getLatLng() == null ? event.getOverlayLatLng()
            : event.getLatLng();
        if (point != null) {
          svClient.getNearestPanoramaLatLng(point,
View Full Code Here

    // Workaround for bug with click handler & setUItoDefaults() - see issue 260
    MapUIOptions opts = map.getDefaultUI();
    opts.setDoubleClick(false);
    map.setUI(opts);

    map.addMapClickHandler(new MapClickHandler() {
      public void onClick(MapClickEvent e) {
        MapWidget sender = e.getSender();
        Overlay overlay = e.getOverlay();
        LatLng point = e.getLatLng();
View Full Code Here

    // Workaround for bug with click handler & setUItoDefaults() - see issue 260
    MapUIOptions opts = map.getDefaultUI();
    opts.setDoubleClick(false);
    map.setUI(opts);

    map.addMapClickHandler(new MapClickHandler() {

      public void onClick(final MapClickEvent event) {
        // Do not mis-interpret clicks on the info window and marker as
        // map click events to be reverse geocoded.
        if (event.getOverlay() != null) {
View Full Code Here

    marker.setDraggingEnabled(true);

    if (needSlider) {
      addMouseOverHandler();
    }
    map.addMapClickHandler(new MapClickHandler() {

      @Override
      public void onClick(MapClickEvent event) {
        if (marker == null) {
          marker = new Marker(LatLng.newInstance(event.getLatLng()
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.event.MapClickHandler

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.