Friday, December 17, 2010

Under the hood of Google Maps 5.0 for Android

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

Thursday, December 16, 2010

The “City of Love,” now in 3D

[Cross-posted from the Google SketchUp Blog]

To foreigners, Paris is the “city of love.” To Parisians, it’s the “city of lights” (La Ville-Lumière). Today, Paris is the “city in 3D.”

Sunrise in Paris

Often considered one of the top destinations for world travelers, Paris is known for landmarks like the Notre Dame Cathedral and the Arc de Triomphe, world-famous museums like the Louvre and the Musée d'Orsay, and hundreds of little bistros with French pastries so good they make your heart pop (literally and figuratively). Now all of these sites – and the many, many others that make Paris special – are available to tour in 3D in Google Earth.


With Google Earth’s “3D Buildings” layer turned on (or by using the Google Earth plug-in for Google Maps) you can wander the streets of the Montmartre district made famous by artists like Picasso, Van Gogh and Dalí from your living room. You can also see the Sacré-Cœur Basilica without having to climb the 237 steps to get there. Instead of waiting in line to see the view from the Eiffel tower, fly straight to the top in Google Earth and get a 360-degree view of Paris. Round out your tour by taking a peek at the Centre Pompidou, which turned the architectural world upside down (or perhaps inside out?) with its exposed skeleton and brightly colored building utilities.

Whether you’re an armchair tourist or planning your next vacation to France, take some time to tour the streets of the French capital and see the historic sites; after all, many of them were created by modelers just like you.

If you’d like to get involved in modeling your town (or any other location), we have several tools to get you started. With Google Building Maker, you can create and contribute a building in as little as 10 minutes. And if you’d like to refine your building, bring it into Google SketchUp for fine-tuning.

Happy touring!

Posted by Gopal Shah, Google SketchUp team

Send a message of holiday cheer with Google Maps

[Cross-posted from the Official Google Blog]

For me, celebrating the holidays is about spending time with family and friends. Along with sharing delicious meals and building snowmen in the backyard, getting into the season often means traveling to places both familiar and new, whether going to visit family or walking down the Champs-Élysées to see the holiday lights.

We’re sure many of you have holiday plans in the works, so we’ve designed greeting cards you can email to friends and family—to share those fun adventures or just to say hello from wherever you are around the world. In addition to choosing from 10 holiday covers and adding a personal message, you can include specific directions, a Street View image or a favorite place on the inside of the card.

Since I grew up in New England, the holidays always make me think of skiing. So I’ll send some of my friends cards with inspiring ski scenes in Street View, or directions to Squaw Valley for an upcoming ski trip.


Around this time of year, I also get nostalgic about specific places where great holiday memories were made, so the card I’ll send to my family will remind them of the amazing breakfasts we had at Lou’s during past holiday seasons. And the card to my friends in New York will suggest a restaurant we should try when I visit them in a couple of weeks.

Thanks to Christoph Niemann for inspiration

And of course, to share some winter weather with my friends in California, I’ll send a card with some wintry scenes of Antarctica and Whistler, and snowy greetings on the cover.


We hope these online cards help you stay connected and share holiday cheer with your loved ones, whether you send directions to a holiday party, winter imagery from Street View or the various places that signify the spirit of the season to you. Start sending at googlemapsholidays.appspot.com. Happy holidays!

The next generation of mobile maps

[Cross-posted from the Official Google Blog and Google Mobile Blog]

I’m excited to announce Google Maps 5.0 for Android, with two significant new features: 3D interaction and offline reliability.

We launched Google Maps for mobile a little more than five years ago. Since then, we’ve added dozens of features, and we’ve grown from a few thousand to more than 100 million users. Still, a couple of things have remained the same: a flat, north-up map and the need for a strong Internet connection. Today, we’re changing that for the first time.

Tilt while zoomed in (left) or use compass mode (right) to orient yourself with 3D buildings.

Explore maps in 3D
Until now, Google Maps has always downloaded the map as a set of small, square images that we stitch together to form the map you see. (You’ve probably seen those gray squares getting filled in, block-by-block, as the images load over the network.) Starting today, we’ll use vector graphics to dynamically draw the map on your device as you use it, allowing you to interact with it in new ways:
  • Tilting: Drag down with two fingers to tilt the map. Tilt while zoomed in on one of the 100+ cities around the world with 3D buildings to see a skyline spring to life.
  • Rotating: Twist with two fingers to rotate the map. After tilting to see 3D buildings, rotate around them to gain a new perspective from any direction.
  • Smooth zooming: Slide two fingers together or apart, and see the map and labels continuously scale to any zoom level, stopping when your fingers stop.
  • Compass mode: Center the map on your location, and then tap the compass button in the top right corner. The map will flip into 3D mode and start rotating to match your perspective, while still keeping all the labels upright and readable.
I found 3D buildings especially useful on a recent trip to New York. From my hotel to the Google office in Chelsea and bars on the Lower East Side, this richer representation of the real world made the map much more helpful. And whenever I walked out of a building or subway station, I used compass mode to get myself quickly oriented and on my way. Check out the video below to see tilt, rotation, zoom and compass mode in action, or see more pictures.



Offline reliability
Google Maps has always been, and continues to be, a fundamentally Internet-connected experience, meaning you always get the freshest map and place data, search and voice search, live traffic conditions, satellite and Street View imagery, and much more. Still, we understand that mobile Internet connections aren’t 100% reliable. So today we’re happy to take the first steps toward greater offline reliability, so you can find your way even if you lose your connection.

In the past, you’ve probably had frustrating moments when you get stranded without a map, whether ducking into the subway, sitting at the back of a restaurant or traveling anywhere with a flaky Internet connection. But dynamically drawing maps requires 100 times less data to get maps across all zoom levels, so now we’re able to proactively cache (or store) large areas on your device based on where you use Maps the most. This way, you can rely on having fast, robust maps available to you where you’re most likely to need them.

For example, I live in San Francisco and work in Mountain View, so Maps makes sure I can always pull up detailed street maps of each city and area maps for the whole San Francisco Bay Area. When I do have an Internet connection, I still get live traffic, imagery, richer map details and all the other features I’m used to with Google Maps.

Rather than having a static set of maps when installed, Maps will automatically start caching the areas you visit the most when your device is plugged in and connected to WiFi (e.g., the nightly charge). We’re already hard at work improving the algorithms and technology behind these features, so over time you can expect to see maps work better in more offline situations.

Offline rerouting
If you’re one of the more than 10 million people relying on Google Maps Navigation (Beta), our free turn-by-turn GPS navigation feature, losing your Internet connection can be particularly painful. (This happened to me on a recent ski trip to Tahoe, and I was left trying to manually find my way back to my route.) So we’re also introducing offline rerouting. You’ll still need a connection to start a route, but if you miss a turn along the way, we’ll quickly get you back on track, even if you don’t have an Internet connection. We’ll be rolling this feature out gradually over the next few weeks.

Google Maps Navigation now automatically reroutes you, even if you lose your connection.

These new features are just the first steps in maximizing dynamic map drawing technology to create a faster, more interactive experience where efficiency really matters: mobile devices. For example, we estimate that viewing maps now requires almost 70% less mobile network data overall than before. We can’t wait to take the next steps in making Google Maps faster, more reliable and even more useful no matter where you take it.

Get Google Maps for mobile 5.0 by searching for Google Maps in Android Market (or tap on this link if you’re on your phone). Android 1.6+ devices can get Maps 5.0, but 3D and offline features require Android 2.0+, and some features may not be supported for all devices or countries.

So try it out. Wander around in compass mode, explore 3D buildings—even dare to open Maps on the subway! I hope you enjoy all the new features as much as we do.

Wednesday, December 15, 2010

Announcing Google Earth Enterprise 4.1

[Cross-posted from the Enterprise Blog]

Back in August we announced Google Earth Enterprise 4.0. This version introduced the new Google Earth Portable Solution, and a Google Earth Android Client, for enterprise use. Since then, we’ve been speaking with numerous customers about the release, learning all about the compelling ways they’re using our portable and mobile technologies and listening to their helpful feedback. We’ve made additional developments based on that feedback, and today we’re pleased to announce an update to Google Earth Enterprise (GEE). The new version 4.1 brings with it:
  • 2D Map Cutting and 2D Map Portable Serving: Google Earth now supports cutting and serving 2D (Mercator) maps.
  • Google Maps API V3 on Google Earth Enterprise Solution: Developers can now use the Maps API V3 to build and serve mapping applications.
  • Customized search services for Google Earth: Search tabs on the portable server can be extended via Python search scripts that you bundle with the server for distribution.
Thanks again to all our customers and partners who provided us with great feedback over the past few months and we look forward to hearing more from you.

Posted by Dylan Lorimer, Enterprise Earth/Maps Product Manager

Tuesday, December 14, 2010

Building Maker: 109 cities and counting

[Cross-posted from the Google SketchUp Blog]

Today’s Google Building Maker imagery update is our last one for 2010 – you can now use our purpose-built geo-modeling tool in any of 109 cities around the world. We’ve just released imagery for:
  • Oklahoma City, Oklahoma
  • Oslo, Norway
  • The Hague, The Netherlands
San Antonio, Texas is one of the newest additions to Building Maker.

We also greatly expanded the coverage areas for San Diego, California and Portland, Oregon. And in case you missed the update two weeks ago, we also released imagery for:

  • San Antonio, Texas
  • Tucson, Arizona
  • Norfolk, Virginia
  • Salt Lake City, Utah
Norfolk, Virginia is itchin' to be modeled.

Still waiting for your city to be added to Building Maker? You can request it; in the meantime, try modeling in one of these new cities to help get them on the 3D map.

Deep sea exploration with the joint Indonesia-USA Ocean Expedition


Come on a tour to never-before explored Indonesian waters. The INDEX-SATAL 2010 Expedition is the first-ever joint ocean research voyage by the Republic of Indonesian and the United States. To experience it yourself, watch a Google Earth YouTube video tour here or explore the area more interactively with the Google Earth plug-in on our Ocean Showcase.


The colored surface areas seen in the video represent underwater terrain data collected during the expedition. The data, highlight photos and videos have been incorporated into Google Earth so you can now explore them on your own by diving under the surface.

Much of the Coral Triangle remains unexplored, and this partnership aims to help reverse the decline of coral reefs in the area and to protect natural resources. The expedition began in the SATAL region around two island chains stretching north of Sulawesi. It was undertaken by scientists from the USA National Oceanic and Atmospheric Administration, Indonesia’s Ministry of Marine Affairs and Fisheries, and the Indonesian Agency for the Assessment and Application of Technology.

“Telepresence” was used to send data in real time to scientists who stood watch at Exploration Command Centers in Jakarta and Seattle. This same technology brought the excitement of the expedition to visitors at the Exploratorium in San Francisco as well.

Little Hercules, a remotely operated exploration vehicle, descended 6000 feet under the sea to capture images and videos of exciting sights like hydrothermal vents and creatures like the deep sea octopus seen below:


Mapping and discovery data from expeditions like this will help all organizations involved better understand ocean resources and how to protect them. More information about the still mysterious ocean will ultimately further economic and environmental initiatives such as the management of sustainable fisheries, the conservation of the marine environment and the preservation of fragile corals.

Dive deeper at Oceanexplorer.noaa.gov, or download this KML for viewing in Google Earth.

By Jenifer Austin Foulkes, Product Manager, Ocean in Google Earth and Maps