Adam
It looks like you're using API v2 code with the API v3.  The Google Maps API
v2 had a LOT of global variables (GBrowserIsCompatible, GMap2, GMarker,
etc).  At v3 everything involved with maps is in the google.maps.*
namespace.  For example what was GMarker at v2 is now google.maps.Marker.
You will have to make some code changes for your page to work but it's
nothing a little find and replace can't fix.

I hope that helps
Jason

On Sun, Apr 25, 2010 at 4:40 AM, Adam Chapman <
[email protected]> wrote:

> Hi,
>
> 've recently tried to change my page to employ v3 of the google maps
> API (was previously v2),  and im getting an "object expected" error on
> the line:
>
> if (GBrowserIsCompatible()) {
>
> this is line 21 and the link to my page is
> http://busplanner.mywebcommunity.org/mymapoptimisedroute.html .
>
> I thought it might be because I was forcing IE8 into emulation mode
> due to some errors attached to v2 of the API.
>
> Does anyone have a solution to this problem?
>
> Any help is greatly appreciated
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to