PolylineOptions().geodesic(true).add(LatLng); PolylineOptions().geodesic(true).add(LatLng) .add(LatLng) .add(LatLng) .add(LatLng);
Use a streetViewPanoramaFragment
<fragment android:name="com.google.adroid.gms.maps.StreetViewPanoramaFragment" android:id="@+id/streetviewpanorama" android:layout_width="match_parent" android:layout_height="match_parent" />
StreetView Main Activity
Edit Activity
Implement OnStreetViewPanoramaReadyCallback
In OnCreate
Create a StreetViewPanoramaFragment Object
Call .getStreetViewPanoramaAsync(this) on it
Override onStreetViewPanoramaReady
Parameter: StreetViewPanorama
setPosition() for Location
Create a StreetViewPanoramaCamera
animate To(camera, ms)
@Override prtected void onCreate(Bundle savedInstanceState){ StreetViewPanoramaFragment StreetViewPanoramaFragment (StreetViewPanoramaFragment) getFragmentManager() .findFragmentById(R.id.streetviewpanorama); streetViewPanoramaFragment.getStreetViewPanoramaAsync(this); } @Override public void onStreetViewPanoramaReady(StreetViewPanorama panorama){ panorama.setPosition(new LatLng(36.0579667,-112.1430996)); StreetViewPanoramaCamera camera = new StreetViewPanoramaCamera.Builder() .bearing(180) .build(); panorama.animateTo(camera,1000); }