Universal Zoom Levels for Google Maps, Live Search Maps and Yahoo! Maps

by Joey deVilla on November 9, 2008

Google Maps, Live Search (a.k.a. Microsoft Virtual Earth) Maps and Yahoo! Maps are all based on Navteq’s mapping technologies. As a result, the tiles used in rendering the maps are the same size, and if you set the zoom to equivalent levels in each, you can seamlessly switch between the three. Take a look at the map below, which shows a map of Toronto as rendered by Google Maps, Live Search Maps and Yahoo! Maps:

Seamless stitched-together map of Toronto, with the left third rendered by Google Maps, the middle third rendered by Live Search Maps and the right third rendered by Yahoo! Maps

The article Switching Between Mapping APIs and Universal Zoom Levels at David Janes’ Code Weblog explains that the mapping systems differ in their zoom levels:

  • Google Maps has 20 levels of zoom, ranging from 0 (out in space) to 19 (pretty close to ground level).
  • Live Search Maps has 19 levels of zoom, ranging from 1 (out in space, but not as far out as Google Maps’ 0) to 19 (pretty close to ground level). Live Search Maps’ zoom levels are equivalent to Google Maps’; for example, zoom level 5 mean the same level of zoom in both Google Maps and Live Search Maps.
  • Yahoo! Maps provides the fewest level of zoom – a mere seventeen. Their counting system is the opposite of Google Maps’ and Live Search Maps; in the Yahoo! system, larger numbers mean farther away from the ground, not closer. The closest you can zoom in with Yahoo! Maps is zoom level 1 (street block level, equivalent to Google’s and Live Searh’s zoom level 17) and the farthest you can zoom out is zoom level 17 (equivalent to Google’s and Live Search’s zoom level 1).

David proposes a universal zoom level and provides code to do conversions between it and Google’s, Live Search’s and Yahoo!’s systems.

Links

{ 2 comments… read them below or add one }

1 David Janes November 9, 2008 at 11:24 am

Here’s a practical example of why this is useful, based on the InputEx Javascript forms library.

2 ab December 15, 2008 at 11:01 pm

Actually, for satellite images, Yahoo has added a few extra zoom levels, and inverted the order a few months back – see http://maps.yahoo.com/#mvt=s&lat=37.779171&lon=-122.419954&zoom=21&q1=san%2520francisco%252C%2520CA

Leave a Comment

{ 2 trackbacks }

Previous post:

Next post: