About google android api-streetview

How to display street performance in Android AVD? I am writing map.setStreetView (true); but display only the blue outline.

+3
source share
3 answers

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

You need to build a string using your long and latin dots, and then run the new intent ACTION_VIEW.

For instance:

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); 
+9
source

You must indicate where you want to view:

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

Source: https://habr.com/ru/post/891893/


All Articles