[OpenLayers-Users] Google help please

Linda Rawson linda.rawson at gmail.com
Fri Feb 8 13:57:57 EST 2008


Adam,

I think you need to be using the spherical mercator example.

http://www.openlayers.org/dev/examples/spherical-mercator.html

It shows this layer on the map.

Linda

On Feb 8, 2008 3:04 AM, Adam Martin <ajmartin.nz at gmail.com> wrote:

> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080208/52fc8228/attachment.html


More information about the Users mailing list