Google Maps API Version 3 Primer

I number of people have asked me what is the difference between Version  2 and Version 3 of Google Maps API is.

Well for starters this is what Google says:

The primary motivation behind this new version was speed, especially for rendering maps on mobile browsers. Last year, several of us starting thinking about the possibility of getting the JavaScript Maps API to work on mobile devices. With the advent of powerful, fully functional browsers on devices such as the iPhone and the Android-based G1, why couldn’t we bring the flexibility and reach of modern web development to people who wanted to write maps mashups for mobile phones? While we’ve been able to get the existing v2 API working on mobile browsers, we found we were constrained when trying to reduce latency and we needed a new approach. And thus was born the idea for the next revision of the Maps API.

Aside from speed improvements, there has been a lot of work done to integrate mobile browsers (Phone Safari mobile and Chrome) and move to a Model View Controller (MVC) architecture. Why is this you ask?. Well, it is in recognition that the simple Desktop Browser is no longer the only option for displaying (rendering) output. The key idea is extraction of the execution components from the viewer (viewport), the controller (input management) and model (the process).

Basically this is the preparatory work for a host of new applications and services for the mobile world.

However, please note that Version 2 has not disappear. You can still use that version to test and develop on.

  1. Read the Developer’s Guide.
  2. Follow the V3 Tutorial.
  3. Consult the V3 Reference.

Related Posts:

Embedding Google Maps in 2 Easy Steps

mapper1 Embedding Google Maps in 2 Easy Steps

A common question is asked is how do I embed google maps into your blog posts. There are two answers, the easy answer (which is here) and the hard answer which means you need to be a programmer.

Google has a Mapping API that provides an extremely comprehensive way of embedding and manipulating maps. The book I recommend for this is Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional.

ap google map Embedding Google Maps in 2 Easy Steps

This is probably the most comprehensive but readable primer to developing using the Google Maps API version 2. Version 3 was released late last year and it importantly includes mobile support including getting location information for mobile applications. A new version of the book is due out soon that includes the new version 3.

Until recently, building interactive web-based mapping applications has been a cumbersome affair. This changed when Google released its powerful Maps API. Beginning Google Maps Applications with PHP and Ajax was written to help you take advantage of this technology in your own endeavorswhether you’re an enthusiast playing for fun or a professional building for profit. This book covers version 2 of the API, including Google’s new Geocoding service.

Authors Jeffrey Sambells, Cameron Turner, and Michael Purvis get rolling with examples that require hardly any code at all, but you’ll quickly become acquainted with many facets of the Maps API. They demonstrate powerful methods for simultaneously plotting large data sets, creating your own map overlays, and harvesting and geocoding sets of addresses. You’ll see how to set up alternative tile sets and where to access imagery to use for them. The authors even show you how to build your own geocoder from scratch, for those high-volume batch jobs.

The easy way is to use Google’s built in tools. If you look at the picture above you can see a link on the very right hand side.

So find the location that you want to map, then click on “Link”.

map2 Embedding Google Maps in 2 Easy Steps

This automatically creates the code you need to embed into your post. Either a link or it uses an iframe to embed some HTML into your post. Remember, before you insert switch to HTML mode in the editor.

If you want to customize the layout click on “Customize and preview embedded Map” and modify the settings. Then cut and paste into your post.¬† That’s it.

map31 Embedding Google Maps in 2 Easy Steps

Related Posts: