Friday, October 1, 2010

[Google Maps API v2] Re: API update is killing my maps

Hi Swiftless,

Please refer to the issue on the bug tracker:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2751

and previous thread on the matter:
http://groups.google.com/group/google-maps-api/browse_thread/thread/dead4944ff91b2e2?hl=en_US

In short, the Google AJAX API is no longer available from
maps.google.com and should be accessed through www.google.com. The URI
you are using was unsupported (and undocumented!).

Cheers
Chris

On Oct 2, 7:31 am, Swiftless <44swo...@gmail.com> wrote:
> I read the rules before posting, so I apologize in advance for
> breaking them but I'm in an odd situation.
>
> I'm working on a production system using the Google V=2.s command in
> the code and got caught by the update on the 15th. The system was
> confirmed working before the version/deprecation changes but now the
> web page doesn't load the map. Instead it just leaves a gray blank
> space and produces two 'onpage' errors. I've been poking around on the
> API docs and changelogs but I'm having a hard time figuring out why
> the update has killed map loading on the website.
>
> I ran the website through Firebug and it's giving me this:
>
> google is not defined
> [Break on this error] google.load("maps", "2.s",
> {"other_params":"sensor=false"});
> Google...ace.php (line 18)
> GBrowserIsCompatible is not defined
> [Break on this error] if (GBrowserIsCompatible() && (Gmap == null) )
> {
>
> Here's the code segment that it's referring to:
>
> <!-- register to access the Google facility -->
> <!-- this format uses the Google AJAX -->
>     <script type="text/javascript"
>                 src="http://maps.google.com/jsapi?key=<?php echo $GoogleKey; ?>">
>
>         </script>
>
> <!-- this uses the Google geocoder and reverse geocoder -->
>
>     <script type="text/javascript">
> // load the specific Google API for maps
> //old google.load("maps", "2");
> //asking for the stable version and indicating the sensor usage
> google.load("maps", "2.s",{"other_params":"sensor=false"});
> google.setOnLoadCallback(StartGoogleMaps);
>
> Normally I would leave a link to the site so you could take a look at
> it, but it's a secure system that I can't open up.
>
> Any suggestions on what the problem is or what I need to change?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate