First Look at Google Maps API v3

May 28, 2009

Google announced version 3 of the google maps API.

Some things I noticed right away:

The only thing I couldn’t figure out is where is the directions object? A lot of my maps applications use driving directions, so I’ll be holding off on migrating over until I figure that out with the new API.

10 comments

#1. Pamela Fox on May 31, 2009

Hey Marc-

The sensor parameter is actually required (but not enforceably so) in API v2 as well. You need to use it to tell us whether your app is using a sensor to show the user’s location – we won’t do any sensing of our own. So, it can be either true or false, depending on your app.

Should we clarify some part of the docs to make that more clear?

#2. Marc Grabanski on June 01, 2009

It was probably just an oversight on my part. Since I haven’t done any location-based mobile work, I missed that part of API v2.

#3. James on June 12, 2009

API3 appears to be backwards compatible. Nice job.

#4. BB on October 28, 2009

HI there.

based on your earlier tutorial I’m trying to add a custom infowindow to my marker using the getPane() function but it seems like getPane() is not available anymore in v3.

do you have any tip?

thx.

BB.

#5. Marc Grabanski on October 28, 2009

I haven’t used v3 to build anything yet, so please post the solution if you find it.

#6. Kevin Sheedy on December 26, 2009

I’m trying to put together a simple webpage for Safari on iPhone (ie not using the iPhone SDK). Anyone seen any relevant info or a ‘hello world’ page for iPhone?

Thanks

Kev

#7. Haseeb on November 26, 2010

I wan to shift from V2 to V3. What changes i need to do in existing code? or google maps are Backward compatible?

#8. Marc Grabanski on November 26, 2010

Haseeb, the biggest difference is MVC Objects that Google maps now has. Where you copy out their object and then extend it with your own methods. For instance, if you make a new overlay object and attach it to the map, the “draw” method will be called whenever the map zooms or determines it needs to redraw, so you need to do MyOverlay.prototype.draw = function(){ … }.

#9. Avishek on March 22, 2011

Hi,

I am using GMap V3. We have to enable the GPS functionality. Even after following the following steps, the GPS functionality is not working:-
1.BOTH
===

<script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=true">
google.load("maps","3.x", {"other_params":"sensor=true"});

2.ONLY JS
==

<script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=true">

3. ONLY LOAD
=

google.load("maps","3.x", {"other_params":"sensor=true"});  

3.1 ONLY LOAD
==

google.load("maps","3", {other_params:"sensor=true"});  

Kindly tell me what shall I do and which one to use.

Regards,
Avishek

#10. Nikola on October 22, 2011

Hi marc, maybe you or anybody can help me achieve this with gmaps v3:
http://www.radionica.biz/map/bgml.htm

Leave a comment

Comment in textile images by gravatar