Home > google maps navigation > Under the hood of Google Maps 5.0 for Android
Under the hood of Google Maps 5.0 for Android
Posted on Friday, December 17, 2010 by android apps market for tablests
(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!
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.
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.
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.
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!
Update (12:47pm PST): Tweaked the description of the difference between image maps zoom levels.
Posted by Andrew Miller, Software Engineer, Google Maps for mobile
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.
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).
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!
Update (12:47pm PST): Tweaked the description of the difference between image maps zoom levels.
Posted by Andrew Miller, Software Engineer, Google Maps for mobile
Category Article Android, google maps for mobile, google maps navigation
Powered by Blogger.
Blog Archive
-
▼
2010
(1682)
-
▼
December
(306)
- Print Pictures from Web Pages
- How to speed up your slow internet connection?
- How to Customize Your Browser Toolbar?
- How to display the hidden settings of LG handsets?
- How to display the hidden settings of Nokia mobiles?
- How to display the hidden settings of Samsung mobi...
- How to use Bluetooth technology to connect laptop ...
- Cara Hack Game Ninja Saga
- Cara Daftar Gamescool Point Blank PB Indonesia Online
- Cheat Point Blank PB 01012011Neutron Update Terbar...
- Cheat Point Blank 1 Januari 2011 Scarletze.V.1
- Happy New Year To All iphoneland.de.lv Readers !
- iPhone Apps May be Spying on You [Warning]
- Cheat Point Blank 01012011 5Nutzer A.1.2 1 Januari...
- Cheat Point Blank 01012011 NEW aJiE Underground 2 ...
- Cheat Point Blank 31122010 PigyBinz TimNas Garuda ...
- Cheat Point Blank SNUTZTRILOGY
- Cheat Point Blank Neutron V.1 Fix
- Cheat Point Blank 27122010 Viper + Hide + headgear...
- Redsn0w 0.9.7b4 to Untethered Jailbreak Without th...
- myTouch Slide and myTouch 4G Store
- This iPod nano 6th-Gen Hack Can Lead To A Possible...
- How To Remove Apps and Add Spaces To iPod Nano 6G ...
- iPod nano 6G DFU Mode Discovered ! Possibilities O...
- Rubyra1n Jailbreak ?
- iPad 2 with Wi-Fi, UMTS and CDMA Models
- iPad not charging when connected to computer
- How to change iTunes credit card info on iPad
- Utilising Unused Space in Blogger Header
- Redsn0w 0.9.7b4 will Include USBMuxd and Beta 5 wi...
- 1 Million Apple TVs Sold in Three Months
- The Monster at the End of This Book for iPad
- iPad backup session failed
- iPad 2 will feature a dual-core processor
- iFixit - Repair Manual app for iPad
- How to disable iPad's Picture Frame
- BackBoard Makes Switching Between Themes A Breeze!
- Download i-Funbox V1.1.407.389
- The 10 Best Jailbreak Apps of 2010
- Recovery Mode Helper Tool RecBoot 2.0 Now Availabl...
- Download Icon Renamer 1.0 [Video]
- Redsn0w 0.9.7b3 is Out ! Fixes TaskSwitcher and Ap...
- Sn0wbreeze 2.2 to Offer Baseband Preservation Mode
- Bluetooth, Music and iTunes Stuck After Jailbreaki...
- Blogger New Year Banner
- [Update]HOW TO: Jailbreak iOS 4.2.1 Untethered wit...
- Download Redsn0w 0.9.7b1 to Untether iOS 4.2.1 Jai...
- Merry Christmas
- What Happens When You Steal a Hacker's Computer [V...
- Happy Holidays from the Hotpot Team
- Awesome Note for iPad (+Todo)
- iPad Sleep/Wake button not working
- Pictureka! for iPad
- Avast!.Antivirus.5.0.584.Pre-Release FREE DOWNLOAD
- Download BitDefender Total Security 2011
- Download Bitdefender Internet Security 2011
- Review Kaspersky Internet Security 2011
- iPhone App Piracy Tool IPA God is Now Open Source[...
- Last-Minute Shopping in Portland, Powered by Hotpot
- Redsn0w Untethered Jailbreak (Backup Plan) for iOS...
- The untethered jailbreak firmware 4.2.1 developed ...
- Everything About Apple's 2010 Year in a Video !
- The lights of a Christmas tree controlled by an iP...
- Merged Places Pages to Unmerge "Facebook Allows It...
- Angry Birds is updated "the Mighty Eagle finally" ...
- Earphone jack problems with iPad
- Backup session cannot be started with iPad
- AirPlay no sound from iPad to Airport Express
- �Pull To Refresh Safari� Makes it Fresh to Reload ...
- Highlight Blogger Author Comments
- Dashing through the snow... with NORAD and Google
- Dashing through the snow... with NORAD and Google
- Apple's Remote App Supports AirPlay
- AirPlay icon missing on iPad How to Fix
- AirPrint not working on my iPad
- Camera+ Gets Back 4 Free Here with a Major Update !
- Comex Untethered Jailbreak is Not Ready for Christ...
- SHAtter Bootrom Jailbreak Exploit Has Been Leaked
- CopyTrans TuneSwift Simplifies iTunes Migration !
- Skyfire for iPad Hits the App Store
- Play Flash video on iPad with Skyfire Web Browser
- Christmas Gifts for iPad Lovers
- iPad no message selected when saved mail
- Info Complete Specification "Motorola Citrus WX445...
- Got Android? Start Rating Even Faster!
- Android In Spaaaace!
- Android In Spaaaace!
- �SB 2 Cloud� Jailbreak Tweak cracked and Free at C...
- Apple iPhoto 9.1.1 [Download]
- How to rename calendars on iPad
- info Specification and View "HTC 7 Pro CDMA" New ...
- WeBe++ Transforms your iPhone into a Bluetooth Key...
- Meet Your (Hotpot) Neighbors: James and Sara Ebenger
- How An iPhone App Can See Your Location Without As...
- Downgrade 6.15.00 Baseband Task Will Start After R...
- Apple Pulled WikiLeaks App Out the App Store[We st...
- Untethered Jailbreak 4.2.1 with Redn0w will not On...
- Info Specification GSM Candybar Phone "Samsung C35...
- 360 Web Browser: A powerful browser with advanced ...
- Navigon's MobileNavigator Updates with iPad Support
-
▼
December
(306)







