Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Android Application Development Tutorial - 138 - Toggling Street and Satellite views

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,213
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 21, 2011

Check out the full series at http://www.thenewboston.com/

Here is a link to the mybringback YouTube Channel. Go and subscribe now!

http://www.youtube.com/user/mybringback

Also, the mybringback official website:

http://mybringback.com/

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • BTW, the method setStreetView(boolean) from the type MapView is now deprecated.

  • 2:55 It's fairly simple, but yeah it's pretty complicated. Haha Travis, you rule!

  • 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!

  • Thanks for these tutorials!

  • 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.

  • scrotum

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more