[OpenLayers-Users] Google help please

Adam Martin ajmartin.nz at gmail.com
Fri Feb 8 05:04:39 EST 2008


Hi guys (Gals),
I am trying to integrate google layer into my code.. but getting 
"G_HYBRID_MAP is not defined" - I have looked at the example files and 
can't see what i am doing wrong.
My code is:

<script 
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAtMNjJKdlzNOpMv5N7bI0wRSCLCxMNWkkK4j03YS7r0gx9Ss8NhRMBXQEt6coLX5gVwfc4_XCDByanA" 
type="text/javascipt"></script>
<script defer="defer" type="text/javascript">
        var map = new OpenLayers.Map('maincontent');
        var google = new OpenLayers.Layer.Google( "Google", { type: 
G_HYBRID_MAP } );
        map.addLayers([google]);
        map.zoomToMaxExtent();
    </script>

Any help would be appreciated.
Cheers
Adam



More information about the Users mailing list