user415999
user415999

Reputation: 31

about android google api-streetview

How to display streetview in android AVD? I write map.setStreetView(true); but only display blue outline.

Upvotes: 3

Views: 9041

Answers (3)

Brian
Brian

Reputation: 135

Also here is a site with an example in use (scroll down to step 7): http://mobile.tutsplus.com/tutorials/android/android-sdk-quick-tip-launching-maps-in-app/

You have to build the string using your long and lat points, and then launch a new ACTION_VIEW intent.

For example:

Intent streetView = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ latitude+","+longitude+"&cbp=1,99.56,,1,-5.27&mz=21"));
startActivity(streetView);

Upvotes: 9

Marcelo
Marcelo

Reputation: 9407

You have to tell it where you want to view:

map.getStreetView().setPosition(latLng:LatLng);
map.getStreetView().setVisible(flag:boolean)

Upvotes: -1

Related Questions