Try this:
var gmap = new OpenLayers.Layer.Google("G_PHYSICAL_MAP",
{ sphericalMercator: true,
isBaseLayer: true} );
and don't forget the Javascript at the beginning:
Good luc
On Tuesday, March 2, 2010, shiv_sms wrote:
>
> Iam new to Openlayers.
>
> Iam trying to render google maps in openlayers. I have used the google maps
> example source code and replaced it with google maps api key for our domain.
>
> When i try to load the page i seem to get this error persistently
Iam new to Openlayers.
Iam trying to render google maps in openlayers. I have used the google maps
example source code and replaced it with google maps api key for our domain.
When i try to load the page i seem to get this error persistently and google
maps doesnt load,
"Error: G_PHYSICAL_MAP