You won't need proj4js. GeoServer can serve any layer in any SRS by default.

Set up your map like in this example: 
http://openlayers.org/dev/examples/google-v3.html

And then you simply do something like this:

map.addLayer(new OpenLayers.Layer.WMS(
    "mylayer", "http://path/to/geoserver/wms";,
    {layers: "mylayer", format: "image/png"}
);

Andreas.

On Jul 28, 2011, at 14:50 , Nicholas Efremov-Kendall wrote:

> Hi Jaishankar,
> 
> I don't know geoserver well, so I can't help you there. There should be 
> plenty of examples if you google for the the proj4.js library.
> Here's the link to the OL documentation, which has a basic example. 
> http://docs.openlayers.org/library/spherical_mercator.html?highlight=reprojection#working-with-projected-coordinates
> 
> 
> On Thu, Jul 28, 2011 at 6:46 AM, Jaishankar Madamshetty 
> <[email protected]> wrote:
> Hi Nicholas,
> 
>  
> 
> I have setup my WMS layers in Geoserver. Please can you send me the sample 
> code on how to do it in OL, otherwise please send me any links explaining 
> this process?
> 
>  
> 
> Regards,
> 
> Jaishankar
> 
>  
> 
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Nicholas 
> Efremov-Kendall
> Sent: Thursday, July 28, 2011 4:51 PM
> To: Jaishankar Madamshetty
> Cc: [email protected]
> Subject: Re: [OpenLayers-Users] overlay google map
> 
>  
> 
> Hi,
> 
>  
> 
> I don't know what you're using to set up the WMS, but you can use ogr2ogr to 
> reproject the raw data, or tinker with proj4.js to do it in OL.
> 
>  
> 
> On Thu, Jul 28, 2011 at 6:19 AM, Nicholas Efremov-Kendall 
> <[email protected]> wrote:
> 
> You have to reproject your WMS layers to the webmercator, OL only supports 
> EPSG 900913, and 4326, so your WMS wouldn't show correctly unless you were 
> using the Proj4.js
> 
> On Thu, Jul 28, 2011 at 5:08 AM, Jaishankar Madamshetty 
> <[email protected]> wrote:
> 
> Hi list,
> 
>  
> 
> I wanted to set Google map as my base layer. My WMS layers are configured 
> with EPSG: 32743. When I add Google map as given in the Open Layers example, 
> it showing Google map perfectly, but I am unable to find my WMS layers Data. 
> Even I tried with CQL filter on feature ID, but unable to locate any of the 
> feature from my WMS data. I think I need to re-project my data to match with 
> the Google map projections. Please can anyone let me know how to do it? And 
> one more query, how to set the zoomtoMaxExtent property such that the screen 
> should fit with my WMS layers extent with background Google map (I do not 
> want to set the Google map bounding box)
> 
>  
> 
> Thanks & Regards,
> 
> Jaishankar
> 
>  
> 
> DISCLAIMER:
> 
> This email may contain confidential information and is intended only for the 
> use of the specific individual(s) to which it is addressed. If you are not 
> the intended recipient of this email, you are hereby notified that any 
> unauthorized use, dissemination or copying of this email or the information 
> contained in it or attached to it is strictly prohibited. If you received 
> this message in error, please immediately notify the sender at Infotech or 
> [email protected] and delete the original message.
> 
>  
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 
>  
> 
>  
> 
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to