[OpenLayers-Users] Attempt to use Google Maps v2 API fails
because GMap2 is undefined
Andreas Hocevar
ahocevar at opengeo.org
Thu Aug 12 05:53:05 EDT 2010
Hi,
you should look at the google v2 example if you want to use the v2 api:
http://openlayers.org/dev/examples/google.html
Regards,
Andreas.
On Aug 12, 2010, at 11:12 , Guyren G Howe wrote:
> I'm doing what seems like an entirely straightforward extrapolation of the Google Maps v3 api example from the openlayers site. I load the same javascript files in the same order and make the same calls in my initialization code.
>
> But it fails with "The Google Layer was unable to load correctly".
>
> The point where it throws an exception is a little ways into loadMapObject, where it does:
> mapObject = new GMap2(div);
>
> This fails because it has no idea what GMap2 is. And I can't tell, even on the working OpenLayers example, where GMap2 gets defined...
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list