Return to Video

Make The Map Move

  • 0:01 - 0:03
    This app was built using the animate
    camera method that you saw in
  • 0:03 - 0:05
    the previous video.
  • 0:05 - 0:06
    Note that it has three buttons,
  • 0:06 - 0:09
    just like in a previous
    application that you built, and
  • 0:09 - 0:13
    each of these buttons animates map
    movement to a different location.
  • 0:13 - 0:15
    So, for example, I'm now looking
    at a map of the United States, but
  • 0:15 - 0:19
    if I tap on Seattle you see
    the camera is going to animate.
  • 0:19 - 0:22
    As I zoom into Seattle,
    taking a few seconds to do so.
  • 0:22 - 0:23
    It's a really cool effect.
  • 0:25 - 0:29
    So once I'm in on Seattle, there you
    can see some of Seattle, including,
  • 0:29 - 0:33
    you can even see here an indoor map of
    the Pacific Science Center in Seattle.
  • 0:33 - 0:35
    I can for example then touch on Tokyo.
  • 0:35 - 0:39
    And you'll see I'll fly up and
    out into orbit, and
  • 0:39 - 0:45
    then back down over the Pacific
    until I land on Tokyo, like so.
  • 0:45 - 0:47
    And again,
    you can see I'm now in downtown Tokyo.
  • 0:47 - 0:51
    And if I so desire,
    I can also go to Dublin.
  • 0:51 - 0:54
    Now here there's a case of I haven't
    pre-cached some of these tiles, so
  • 0:54 - 0:57
    you're just seeing blank
    as it's flying over.
  • 0:57 - 0:58
    And it'll soon land on Dublin.
  • 0:59 - 1:03
    So if I zoom out of Dublin, you can
    see those tiles are getting cached.
  • 1:04 - 1:07
    So none of these tiles were
    pre-cached for testing the video,
  • 1:07 - 1:11
    and that's why we couldn't see
    when we flew from Tokyo to Dublin.
  • 1:12 - 1:15
    If I just zoom out and
    effectively cache the tiles,
  • 1:15 - 1:18
    I'm not doing anything
    myself to cache them.
  • 1:18 - 1:20
    This is just how
    the application is running.
  • 1:20 - 1:24
    And so the map fragment itself
    will cache the tiles for you.
  • 1:24 - 1:29
    So here you can see Japan, and
    if I go back somewhere over Ireland and
  • 1:29 - 1:33
    now I tap on Tokyo, you'll see
    that the orbit will change, and
  • 1:33 - 1:35
    I'll drop down onto Tokyo.
  • 1:40 - 1:44
    And now if I try to go to Dublin,
    you'll see I fly out of Japan,
  • 1:44 - 1:48
    up over the surface of the Earth,
    over Asia, over China,
  • 1:48 - 1:52
    back over western Europe before
    dropping down and onto Dublin.
  • 1:53 - 1:56
    So you know have everything you need
    to build this application yourself.
  • 1:56 - 1:58
    You've all the tools.
  • 1:58 - 1:59
    Why don't you give it a shot?
  • 1:59 - 2:02
    If you have any trouble, the source
    code is linked to the speaker nodes.
Tytuł:
Make The Map Move
Opis:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
ud876-4 - Google Play Services - Maps
Duration:
02:03

English subtitles

Revisions Compare revisions