Assuming you want to use spherical mercator (EPSG:900913), the native 
projection of the Google tiles, I recommend that you look at

http://localhost:8080/geoserver/gwc/demo

and start by copying that client and adding the google layer to it.

-Arne


On 11/23/10 10:38 AM, Sasikumar Kanniyappan wrote:
> Hello List,
>
>            I have a WMS layer which is from GeoServer, I can overlay 
> this WMS layer with Google layer and no issues.
>
> My Code for this:
> var sampleLayer = new OpenLayers.Layer.WMS(
>         "Sample",
>         "geoserver/wms",
>         { layers: 'LayerName', format: "image/png", transparent: "true" },
>         {'reproject': true}
>     );
>
>     var googlePhysicalMap = new OpenLayers.Layer.Google("Google 
> Physical",{type:G_PHYSICAL_MAP});
>
>          Due to performance issues I tried GWC, by changing my WMS 
> request to "geoserver/gwc/service/wms", i get GWC error 400: X,Y 
> values for the tile index were calculated to be {11.0, 
> 4.1600507697848315} which had to be rounded to {11, 4} and exceeds the 
> threshold of 10%. Perhaps the client is using the wrong origin ?
>
>          If I remove {'reproject': true} in WMS request the WMS is 
> coming, but it is not properly overlay with Google Maps.
>
>          I want to GWC with Google maps, I can't find how to use GWC 
> due to lack of knowledge. Can anyone help me out to solve this issue?
>
> Thanks in Advance,
> Sasikumar


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to