} else if (!map.isSatellite()) { map.setSatellite(true);
}
setStreetView will enable Street View availability (blue lines over the roads) layer. the default map view when satellite is set to false is the normal map tiles.
hope this helps anyone who couldn't get the button to work!
BTW, the method setStreetView(boolean) from the type MapView is now deprecated.
TheEricBrian 2 months ago
2:55 It's fairly simple, but yeah it's pretty complicated. Haha Travis, you rule!
empeypat 2 months ago in playlist More videos from thenewboston
code for your Toggle View button should be:
if (map.isSatellite()) { map.setSatellite(false);
} else if (!map.isSatellite()) { map.setSatellite(true);
}
setStreetView will enable Street View availability (blue lines over the roads) layer. the default map view when satellite is set to false is the normal map tiles.
hope this helps anyone who couldn't get the button to work!
fivelitersoffire 2 months ago
Thanks for these tutorials!
BobFinger 2 months ago
2:53 "Your going to be like, how in the world am I going to remember all these methods?" :-) lol - been thinking this for the past several tutorials.
robbielosee 4 months ago
scrotum
freetheyeast 4 months ago in playlist TheNewBoston - Android