Example usage for com.google.gwt.maps.client.events.panoramiomouse PanoramioMouseMapEvent getInfoWindowHtml

List of usage examples for com.google.gwt.maps.client.events.panoramiomouse PanoramioMouseMapEvent getInfoWindowHtml

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.events.panoramiomouse PanoramioMouseMapEvent getInfoWindowHtml.

Prototype

public String getInfoWindowHtml() 

Source Link

Document

Pre-rendered HTML content, as placed in the infowindow by the default UI.

Usage

From source file:com.google.gwt.maps.testing.client.maps.PanoramioMapWidget.java

License:Apache License

private void drawPanoramio() {
    PanoramioLayerOptions optionsPano = PanoramioLayerOptions.newInstance();
    optionsPano.setClickable(true);/*from   www  .  j  a v  a 2 s  .  com*/
    optionsPano.setMap(mapWidget);
    optionsPano.setSuppressInfoWindows(false);
    // optionsPano.setTag("hawaii");
    // optionsPano.setUserId("2597317");
    panoramioLayer = PanoramioLayer.newInstance(optionsPano);

    panoramioLayer.addClickHandler(new PanoramioMouseMapHandler() {
        @Override
        public void onEvent(PanoramioMouseMapEvent event) {

            @SuppressWarnings("unused")
            PanoramioFeature feature = event.getFeatureDetails();

            @SuppressWarnings("unused")
            String info = event.getInfoWindowHtml();

            @SuppressWarnings("unused")
            LatLng latlng = event.getLatLng();

            @SuppressWarnings("unused")
            Size pixeloffset = event.getPixelOffset();
        }
    });
}