com.google.android.gms.maps.model.StreetViewSource Java Examples
The following examples show how to use
com.google.android.gms.maps.model.StreetViewSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivity.java From journaldev with MIT License | 6 votes |
@Override public void onStreetViewPanoramaReady(StreetViewPanorama streetViewPanorama) { mStreetViewPanorama = streetViewPanorama; if (secondLocation) { streetViewPanorama.setPosition(new LatLng(51.52887, -0.1726073), StreetViewSource.OUTDOOR); } else { streetViewPanorama.setPosition(new LatLng(51.52887, -0.1726073)); } streetViewPanorama.setStreetNamesEnabled(true); streetViewPanorama.setPanningGesturesEnabled(true); streetViewPanorama.setZoomGesturesEnabled(true); streetViewPanorama.setUserNavigationEnabled(true); streetViewPanorama.animateTo( new StreetViewPanoramaCamera.Builder(). orientation(new StreetViewPanoramaOrientation(20, 20)) .zoom(streetViewPanorama.getPanoramaCamera().zoom) .build(), 2000); streetViewPanorama.setOnStreetViewPanoramaChangeListener(panoramaChangeListener); }
Example #2
Source File: StreetViewSettingsActivity.java From Complete-Google-Map-API-Tutorial with Apache License 2.0 | 5 votes |
@Override public void onStreetViewPanoramaReady(StreetViewPanorama streetView) { streetViewPanorama = streetView; streetViewPanorama.setPosition(SYDNEY); streetViewPanorama.setStreetNamesEnabled(true); streetViewPanorama.setPosition(SYDNEY, StreetViewSource.DEFAULT); // streetViewPanorama.setPosition(SAN_FRANSISCO,StreetViewSource.OUTDOOR); streetViewPanorama.setUserNavigationEnabled(true); streetViewPanorama.setZoomGesturesEnabled(true); streetViewPanorama.setPanningGesturesEnabled(true); }
Example #3
Source File: StreetViewPanoramaOptionsDemoActivity.java From android-samples with Apache License 2.0 | 5 votes |
private void setPosition() { streetViewPanorama.setPosition( SAN_FRAN, RADIUS, outdoorCheckbox.isChecked() ? StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT ); }