Package com.google.maps.gwt.client

Examples of com.google.maps.gwt.client.InfoWindow$ContentChangedHandler


        LatLng pto = LatLng.create(new Double(trozos[0]), new Double(
            trozos[1]));

        InfoWindowOptions infoWindowOpts = InfoWindowOptions.create();
        infoWindowOpts.setContent("<h4>" + trozos[2] + "</h4>");
        final InfoWindow infoWindow = InfoWindow.create(infoWindowOpts);
        MarkerOptions markerOpts = MarkerOptions.create();
        markerOpts.setPosition(pto);
        markerOpts.setTitle(trozos[2]);
        markerOpts.setMap(map);
        final Marker marc = Marker.create(markerOpts);
        marc.addClickListener(new ClickHandler() {

          @Override
          public void handle(MouseEvent event) {
            infoWindow.open(map, marc);
          }

        });
      }
    }
View Full Code Here

TOP

Related Classes of com.google.maps.gwt.client.InfoWindow$ContentChangedHandler

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.