Example usage for com.google.gwt.maps.client.streetview PanoramaByLocationHandler PanoramaByLocationHandler

List of usage examples for com.google.gwt.maps.client.streetview PanoramaByLocationHandler PanoramaByLocationHandler

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.streetview PanoramaByLocationHandler PanoramaByLocationHandler.

Prototype

PanoramaByLocationHandler

Source Link

Usage

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

License:Apache License

/**
 * get pano data for nearest position/*www  .  ja  va 2  s .  co  m*/
 * 
 * @param latlng
 */
private void processClick(final LatLng latlng) {
    double radius = 50;

    service.getPanoramaByLocation(latlng, radius, new PanoramaByLocationHandler() {
        public void onCallback(StreetViewPanoramaData data, StreetViewStatus status) {
            processPanoSearch(latlng, data, status);
        }
    });
}