You also might check out using GeoWebCache, since if you use straight WMS
with GWC you can swamp your server with requests pretty fast.

See http://geowebcache.sourceforge.net/docs/current/services/gmaps.html

All GeoServers ship with GWC, at geoserver/gwc, like
http://suite.opengeo.org/geoserver/gwc

So you should be able to do something like:

var tilelayer = new GTileLayer(null, null, null, {
      tileUrlTemplate:
'http://localhost:8080/geoserver/gwc/service/gmaps?layers=layer-name&zoom={Z}&x={X}&y={Y}&format=image/png',
      isPng:true,
      opacity:0.5 } );

(There's a slight chance that needs to be updated for v3, but I think it
should work ok)

C



On Tue, Nov 2, 2010 at 12:20 PM, David Winslow <[email protected]> wrote:

> I'd recommend searching for information on using WMS with Google Maps,
> searching for GeoServer specifically might be a bit too specific (and get
> drowned out by the Google Earth section of the manual, etc.)
>
> A quick check on google seems to show lots of relevant results.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Tue, Nov 2, 2010 at 11:14 AM, Rickard Pettersson <
> [email protected]> wrote:
>
>> Hello, i am new to GeoServer and i whant to use GeoServer as WMS server to
>> a Google Maps i developing.
>>
>> But i can not find any good example codes for GeoServer with Google Maps
>> V3, someone that has done this and can give me code example?
>>
>> Kind regards
>> Rickard Pettersson
>>
>>
>> ------------------------------------------------------------------------------
>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to