if (isFirefoxOnWindows()) {
return;
}
loadApi(new Runnable() {
public void run() {
final LatLng tenthStreet = LatLng.newInstance(33.7814839, -84.3879353);
final Pov pov = Pov.newInstance();
pov.setPitch(-5).setYaw(180).setZoom(2);
StreetviewPanoramaOptions options = StreetviewPanoramaOptions.newInstance();
options.setLatLng(tenthStreet);
options.setPov(pov);
panorama = new StreetviewPanoramaWidget(options);
panorama.setSize("500px", "300px");
panorama.addInitializedHandler(new StreetviewInitializedHandler() {
public void onInitialized(StreetviewInitializedEvent event) {
LatLng point = panorama.getLatLng();
assertEquals(tenthStreet.getLatitude(), point.getLatitude(), 1e-2);
assertEquals(tenthStreet.getLongitude(), point.getLongitude(), 1e-2);
Pov actualPov = panorama.getPov();
assertEquals(pov.getPitch(), actualPov.getPitch(), 1e-2);
assertEquals(pov.getYaw(), actualPov.getYaw(), 1e-2);
// Intentionally not testing zoom, as it behaves unpredictably