Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a web site with an OpenLayers client. I also have a GeoServer running on the same domain. My OpenLayers uses services like WMS, GML, etc. from this GeoServer installation and everything runs fine.

Now, I want to add another WMS layer to my existing set of layers. This layer is provided by a third-party WMS (not owned by me). How can I add this layer to my OpenLayers by bypassing the cross-domain issue.

PS: I am aware that GeoServer allows adding third-party WMS as a new data store and lets me publish the available layers, but I am facing some projection issues there which I will be asking in a different question.

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

You only need a proxy if you are looking to do WFS or WMS GetFeatureInfo requests. Basic WMS requests should work out of the box in OpenLayers (or any other client).

share|improve this answer
add comment

I'm not sure about GeoServer, but in OpenLayers you can use 3rd party WMS directly. All you need is set up ProxyHost.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.