Your Mobile Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 17 December 2010

Under the hood of Google Maps 5.0 for Android

Posted on 12:45 by Unknown
[Cross-posted from the Official Google Blog]

Yesterday we introduced Google Maps 5.0 for Android with two significant new features: 3D interaction and offline reliability. In order to create these features, we rebuilt Maps using vector graphics to dynamically draw the map as you use it. Building a vector graphics engine capable of achieving the visual quality and performance level you expect from Google Maps was a major technical challenge and enables all sorts of future possibilities. So we wanted to give you a closer look under the hood at the technology driving the next generation of mobile maps.

Vector graphics
Before diving into how Maps uses vector graphics, it may be helpful to understand how maps were created before. Previously, Google Maps downloaded the map as sets of individual 256x256 pixel “image tiles.” Each pre-rendered image tile was downloaded with its own section of map imagery, roads, labels and other features baked right in. Google Maps would download each tile as you needed it and then stitch sets together to form the map you see. It takes more than 360 billion tiles to cover the whole world at 20 zoom levels!

Now, we use vector graphics to dynamically draw the map. Maps will download “vector tiles” that describe the underlying geometry of the map. You can think of them as the blueprints needed to draw a map, instead of static map images. Because you only need to download the blueprints, the amount of data needed to draw maps from vector tiles is drastically less than when downloading pre-rendered image tiles. Google Maps isn’t the first mobile app to use vector graphics—in fact, Google Earth and our Navigation (Beta) feature do already. But a combination of modern device hardware and innovative engineering allow us to stream vector tiles efficiently and render them smoothly, while maintaining the speed and readability we require in Google Maps. Just try it out and see for yourself!

See the difference between image tiles (left) and vector tiles (right) tilted to show 3D buildings.

One map, many perspectives
Using vector tiles instead of image tiles gives Maps the flexibility to re-draw the same map from different perspectives using the same set of data. Zooming is one example of this at work. If you magnify an map image tile by 2x, lines such as roads and text would get twice as wide and appear blurry. As a result, we had to constrain Maps to 20 fixed “zoom levels,” each one twice as close as the last. Every time you zoomed in further, you’d need to download a completely new set of image tiles. It took time to load new data over a mobile data connection, and would fail when you lost your connection in a subway or large building.

Compared to image tiles (left), vector tiles (right) keep lines and labels crisp as you zoom.

With vector graphics, you no longer need to “round” to the nearest zoom level and then download all the tiles for that level. One vector tile has the underlying vector data (or blueprints) to draw the map at many different levels of scale. So when you zoom, the map stops when your fingers stop, and roads and labels always stay crisp. This same technique powers the new 3D map interactions: tilt, rotate and compass mode. Just like with zooming, Maps uses the same vector data to draw the map from any angle or direction as you tilt or rotate.

We can also display entirely new levels of detail that weren’t possible with flat image tiles. For example, in the 100+ cities where we have 3D building data, each building is drawn in 3D using a polygonal building footprint and heights for different parts of the building. And with tilt and rotate, you can see them from a variety of different angles.

Reading the map
Just like other map features, labels are dynamically drawn so they continue to face you and stay legible if you rotate the rest of the map or use compass mode. Maps also “chooses” the best labels to show you based on several factors. You’ll notice labels fade in and out as you interact with the map so that the most useful ones appear and the map never gets too cluttered.

See the difference between rotating maps with static labels (left) and dynamic labels (right).

Vector graphics also allow us to draw additional data on the map more clearly. For example, traffic or transit lines no longer block the labels beneath them. We can also draw the same map in different styles—like “satellite view” where the roads are translucent over aerial imagery, or Navigation’s “night mode” where a darker palette helps your eyes adjust quickly in the lower light.

Previously, map features like labels and traffic could conflict (left) instead of blend seamlessly (right).

Offline reliability
Vector graphics also enable another significant new feature: the ability to continue viewing maps even when you have poor—or no—network connections. Because each vector tile works across multiple zoom levels, it requires more than 100 times less data to view maps across all zoom levels than before, allowing Maps to cache much larger areas of the map on your device.

With this first version, Maps proactively caches map data for the places you use Maps the most—where you’re actively using it as well as places for which you search or get directions. Then when you’re plugged in and connected over WiFi, caching happens automatically. Near your frequent places, you’ll get detailed vector tiles for city-sized regions so you can see every road labeled. Further away, you’ll have less detail but will typically have towns and highways labeled for miles. We’re continuing to work on these algorithms, so you’ll see improvements over time.

Offline rerouting
With Google Maps Navigation (Beta), you’ll also see the benefits of additional caching with offline rerouting. This feature is only possible because Navigation caches not only map data but also data like turn restrictions for the areas surrounding your route. You’ll still need to be connected when you first start a trip to download and cache your route. But this way, even if you take a wrong turn after losing your connection, Navigation can use the cached data to get you back on your way. We will be rolling this feature out gradually over the next few weeks.

This is just the start, and we’re really excited about all the possible ways to use vector graphics technology for the next generation of Google Maps. So please stay tuned!

Posted by Andrew Miller, Software Engineer, Google Maps for mobile
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in 3D, imagery, Mobile | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Take off for the holidays with Google Street View
    Whether it’s touring the canals of Venice , swimming with the seals in the Galapagos or climbing the Burj Khalifa in Dubai, Street View ha...
  • A bird’s eye view of The Queen’s Diamond Jubilee procession
    Following the royal wedding in 2011, the eyes of the world will again be on London as we celebrate the Diamond Jubilee of Queen Elizabeth I...
  • New Maps domains in 11 countries in Middle East & North Africa
    [Cross-posted from the Google Arabia Blog - in Arabic] With the growing numbers of Internet users in the region, we noticed that a huge num...
  • Apply now to be the next Google Maps Trekker
    We’re working to build the very best map of the world, and we’d love your help to do it. Today we’re kicking off a pilot program that enable...
  • See the seafloor like never before on World Oceans Day
    Only a tiny fraction of our oceans have ever been explored. As a matter of fact, we know more about the surfaces of Mars and the Moon than w...
  • Get a better view of natural geography with Google Maps
    When you look at Google Maps, we want you to see the most comprehensive, accurate and easy-to-understand representation of the entire world....
  • Refocused Design Evolution, Continued
    In June we launched the start of a comprehensive visual redesign for Google Maps founded on three key principles: focus, elasticity, and ef...
  • Help improve the “blue dot” for people visiting your venue
    When we announced the availability of indoor maps for Android last November , we also introduced Google Maps Floor Plans as a tool for busi...
  • Google Map Maker now available in South Africa and Egypt, and coming soon to more corners of the globe
    From the wild grasslands of Kruger National Park to the the extraordinary pyramids of Giza, the world is ripe with wonders waiting to be exp...
  • Visit the Hiroshima Peace Memorial in Street View
    We’ve added many historic sites to Street View to let you explore these places online, and now we’ve included Street View imagery of the Hir...

Categories

  • #treasuremap
  • +1
  • 3D
  • 8bitmaps
  • Adwords Express
  • Africa
  • Amazon
  • Andorra
  • Android
  • api
  • Art Project
  • Audi
  • biking
  • Boost
  • Boulder
  • Brazil
  • Bulgaria
  • Business Photos
  • Canada
  • check-in
  • community
  • competition
  • contest
  • crisis response
  • Culture
  • custom maps
  • developer
  • Developers
  • directions
  • disaster response
  • discovery
  • Download Free Nokia 6680 PC Suite
  • Download Micromax pc suite
  • Download Micromax pc suite for window
  • Download micromax Q5 Pc suite
  • Download PC suite
  • Download Samsung Mobile Pc Suite
  • earth outreach
  • education
  • Enterprise
  • Estonia
  • Europe
  • Fusion Tables
  • galaxy s2
  • Gibraltar
  • GMM
  • google
  • Google Earth
  • Google Earth Engine
  • Google Map Maker
  • Google Maps
  • Google Maps API
  • Google Maps Engine
  • Google Maps for Mobile
  • Google Maps Navigation
  • Google Maps Transit
  • Google Places
  • Google Plus
  • Google Search
  • Google Street View
  • google.org
  • Google+
  • googlenew
  • Grand Canyon
  • ground truth
  • Halloween
  • historical
  • history
  • Hotpot
  • HTC PC Suite Download
  • HTC PC suite for WIN 7
  • HTC PC Suite Free Download
  • HTC sync Downlaod
  • HTC Sync Download for windows
  • HTC Sync Free Download
  • Hungary
  • imager
  • imagery
  • Indoor Maps
  • iPhone
  • Iraq
  • Japan
  • Latitude
  • Latvia
  • layers
  • LG Mobile PC Suite
  • LG Mobile Support Tool
  • LG PC suite Download
  • Lithuania
  • London
  • Malaysia
  • Mall of America
  • Map Maker
  • mapsgl
  • Matt Harding
  • Mexico
  • Micromax A110
  • Micromax Canvas 2
  • Micromax pc suite download
  • Micromax PC suite for windows
  • Micromax Q5 FB PC Suite Free Download
  • Micromax Q5 FB PC Suite Free Download For Windows
  • Mircromax Q3 PC Suite Download for windows
  • Mobile
  • Monticello
  • My Maps
  • my places
  • my tracks
  • navigation
  • new Google Maps
  • Nokia 5250 PC Suite Free Download
  • Nokia 5530 PC Suite Free Download
  • Nokia 5610 PC Suite Free Download
  • Nokia 5800 PC Suite Free Download
  • Nokia 6030 PC Suite Free Download
  • Nokia 6680 PC Suite Download for windows
  • Nokia 6680 PC suite free Download
  • Nokia Asha 305
  • Nokia Asha 306 PC Suite download
  • Nokia C3-01
  • Nokia Free Suite
  • Nokia Mobile PC suite Download
  • oblique imagery
  • ocean
  • offline maps
  • Outreach
  • Pakistan
  • Panoramio
  • Parks Canada
  • Pegman
  • photo tours
  • photos
  • picasa
  • Quiz
  • real estate
  • Russia
  • Samsung C3322 PC Suite Free Download
  • Samsung C6712 PC Suite Free Download
  • Samsung Corby 2 PC Suite Free Download
  • Samsung Galaxy
  • Samsung Galaxy 5830 PC Suite Download
  • Samsung Galaxy Ace Hugo Boss
  • Samsung Galaxy Ace PC Suite Download
  • Samsung galaxy I8190 S III PC Suite Download
  • samsung galaxy mega
  • Samsung Galaxy Mega 5.8
  • Samsung Galaxy Mega 6.3
  • samsung galaxy s2
  • Samsung Galaxy Stratosphere II I415
  • samsung GT-I9100 pc suite
  • Samsung GT-S6102 Galaxy Y Duos PC Suite Download
  • Samsung GT-S6102 PC Suite Download
  • Samsung I9000 Galaxy S PC Suite Download
  • Samsung mobile pc suite downlaod
  • samsung mobile pc suite download for Windows 7 ad XP
  • samsung mobile pc suite download for Windows 7 and XP
  • Samsung N7100
  • Samsung Note 2
  • Samsung Note II
  • Samsung PC Suite Download.
  • Samsung Wave Y Drivers Download
  • Samsung Wave Y PC Suite Free Download
  • Santa
  • Santa Tracker
  • search stories
  • SketchUp
  • Slovakia
  • Slovenia
  • Sony PC Companion Free Download
  • Sony PC Suite Free Download
  • South Sudan
  • space
  • Spain
  • sports
  • Street View
  • Sumsang C3322 Drivers Download
  • SXSW
  • Tags
  • Thomas Jefferson
  • Thomas Jefferson Foundation
  • Tip of the week
  • tour guide
  • traffic
  • Train
  • Transit
  • trees
  • Trekker
  • U.S. National Park Service
  • Ukraine
  • University of Virginia
  • voice search
  • walking
  • Waze
  • weather
  • webgl
  • Xperia PC Suite Download
  • zagat

Blog Archive

  • ►  2013 (87)
    • ►  November (7)
    • ►  October (3)
    • ►  September (4)
    • ►  August (9)
    • ►  July (13)
    • ►  June (12)
    • ►  May (10)
    • ►  April (9)
    • ►  March (11)
    • ►  February (2)
    • ►  January (7)
  • ►  2012 (192)
    • ►  December (9)
    • ►  November (5)
    • ►  October (24)
    • ►  September (13)
    • ►  August (15)
    • ►  July (18)
    • ►  June (21)
    • ►  May (17)
    • ►  April (19)
    • ►  March (26)
    • ►  February (12)
    • ►  January (13)
  • ►  2011 (234)
    • ►  December (13)
    • ►  November (17)
    • ►  October (19)
    • ►  September (15)
    • ►  August (23)
    • ►  July (25)
    • ►  June (20)
    • ►  May (20)
    • ►  April (23)
    • ►  March (24)
    • ►  February (18)
    • ►  January (17)
  • ▼  2010 (21)
    • ▼  December (21)
      • Dashing through the snow... with NORAD and Google
      • Holiday trees in 3D
      • Tips for creating a free business listing in Googl...
      • Lunar Eclipse Live
      • Imagery Update - Week of December 12th
      • Under the hood of Google Maps 5.0 for Android
      • The “City of Love,” now in 3D
      • Send a message of holiday cheer with Google Maps
      • The next generation of mobile maps
      • Announcing Google Earth Enterprise 4.1
      • Building Maker: 109 cities and counting
      • Deep sea exploration with the joint Indonesia-USA ...
      • Introducing the Google Latitude app for iPhone
      • Directions, the way you want them
      • How to find directions online (and 50 other things...
      • Trailblazing in Portland
      • Street View in Romania
      • Cricket Season Has Begun!
      • Rediscover Historical Imagery in Google Earth 6
      • How Local Search Ranking Works
      • Mapping Korogocho
Powered by Blogger.

About Me

Unknown
View my complete profile