Search code examples
androidmapsgoogle-street-view

how can i set Street view for Google map in Android?


For Displaying the street view in the map i am putting the following code:

mapView.setStreetView(true);

But, it is not executed it shows the following message when i write the method.

The method setStreetView(boolean) from the type MapView is deprecated

Is there any alternative for that?


Solution

  • No other alternative yet in place of setStreetView(boolean) method from google api 11 onwards, but if you read document carefully, it will show you blue line if street view is available of particular place