com.google.android.gms.maps.model.StreetViewPanoramaOrientation Java Examples
The following examples show how to use
com.google.android.gms.maps.model.StreetViewPanoramaOrientation.
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: StreetViewPanoramaEventsDemoActivity.java From android-samples with Apache License 2.0 | 5 votes |
@Override public void onStreetViewPanoramaClick(StreetViewPanoramaOrientation orientation) { Point point = streetViewPanorama.orientationToPoint(orientation); if (point != null) { panoClickTimes++; panoClickTextView.setText( "Times clicked=" + panoClickTimes + " : " + point.toString()); streetViewPanorama.animateTo( new StreetViewPanoramaCamera.Builder() .orientation(orientation) .zoom(streetViewPanorama.getPanoramaCamera().zoom) .build(), 1000); } }
Example #3
Source File: StreetViewPanoramaEventsDemoActivity.java From android-samples with Apache License 2.0 | 5 votes |
@Override public void onStreetViewPanoramaLongClick(StreetViewPanoramaOrientation orientation) { Point point = streetViewPanorama.orientationToPoint(orientation); if (point != null) { panoLongClickTimes++; panoLongClickTextView.setText( "Times long clicked=" + panoLongClickTimes + " : " + point.toString()); } }
Example #4
Source File: StreetViewEventsActivity.java From Complete-Google-Map-API-Tutorial with Apache License 2.0 | 4 votes |
@Override public void onStreetViewPanoramaClick(StreetViewPanoramaOrientation streetViewPanoramaOrientation) { Log.d(MainActivity.TAG, "onStreetViewPanoramaClick() called with: streetViewPanoramaOrientation = [" + streetViewPanoramaOrientation + "]"); }
Example #5
Source File: StreetViewEventsActivity.java From Complete-Google-Map-API-Tutorial with Apache License 2.0 | 4 votes |
@Override public void onStreetViewPanoramaLongClick(StreetViewPanoramaOrientation streetViewPanoramaOrientation) { Log.d(MainActivity.TAG, "onStreetViewPanoramaLongClick() called with: streetViewPanoramaOrientation = [" + streetViewPanoramaOrientation + "]"); }