Hi.
I would like to include Google layer using Java Script.
I added following:reference to the Google Map Api:
<
script
src
=
"<a href=“maps.google.com/maps/api/js?v=3.5&” tabindex=“0”>maps.google.com/maps/api/js?v=3.5&</a>;amp;sensor=false"
type
=
“text/javascript”
></
script
>
Here is the client script:
var googleLayer = new OpenLayers.Layer.Google(‘googleOverlay’,
{type: google.maps.MapTypeId.HYBRID,
numZoomLevels: 20});
Map1.addLayer(googleLayer);
Map1.setLayerIndex(googleLayer, 0);
Map1.redrawLayer(‘googleOverlay’);
Unfortunately the layer is not rendering…
Is something missing here?
Will this approach work?
Thank You.