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

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

Introduction

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

Prototype

PanoramaIdHandler

Source Link

Usage

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

License:Apache License

private void setupStartingMarker() {
    String pano = wStreetPano.getPano();
    if (pano == null) {
        // TODO hmmmm.... i need a slight delay while everything sets up
        return;/*from w  w  w  .ja  v a 2s. c  o m*/
    }
    service.getPanoramaById(pano, new PanoramaIdHandler() {
        public void onCallback(StreetViewPanoramaData data, StreetViewStatus status) {
            LatLng latlng = wStreetPano.getPosition();
            processPanoSearch(latlng, data, status);
        }
    });
}