setStreetView() in android 4.0

SetStreetView() method in Android 4.0 is deprecated. So can anyone tell if there is any alternative in Android 4.0 or we can't set the mode to setStreetView() anymore? Thanks in advance.

Answers


On the Android Map API, there is no way of switching the device to the famous "Street View". The only options available to us developer (on the Android platform) are the classic 2D view and the Satellite view which can be enabled with the setSatellite(true) method.

If you read closely the setStreetView method doesn't actually switch to Street View, it simply shows the blue line on the streets and boulevards where Street View is actually available:

Control whether Street View availability (blue outlines) is shown on the map. This is incompatible with Traffic indicators, so they will be deactivated if necessary. Street View availability can be drawn over map tiles or over satellite tiles; however, they are optimized for map tiles.

If your intention was to only show the blue lines, well the method has been deprecated and there are no known alternatives to this method.


Try this via a toggle button, works for me.

if(map.isSatellite())
{                       
      map.setSatellite(false);                          
}
else
{
      map.setSatellite(true);
}

Need Your Help

How fork() function works in this program?

c linux ubuntu process fork

I'm having some trouble with this program. I know what a fork() function does. It is used to create a new process from an existing process. The new process is called the child process, and the exis...

DataTable.Merge and DataTable.ImportRow does not change RowState

.net ado.net oledb

I am having issues with ADO.NET 2.0 merging/importing data. I need to update/insert data from one generic table to another table with both tables maintaining an identical schema. The following code