Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are four parameters for WMS Layers : Name, URL, Server Side Params, OpenLayer Options. And Transparent Parameter comes under Server Side Params. Does it mean that transparent images are pre-cached in the GeoServer and return to browser on request. Can transparency be a OpenLayer Property too?

Where can I see all possible server side parameters in OpenLayers?

share|improve this question
up vote 2 down vote accepted

When you are dealing with WMS services, you need to pass it certain parameters in the GetMap request. with Openlayers, you usually pass it to the params object.

The WMS class Documentation says:

Properties added to this object will be added to the WMS GetMap requests used for this layer’s tiles. The only mandatory parameter is “layers”. Other common WMS params include “transparent”, “styles” and “format”.

So if you pass transparent:true parameter to your layer, it actually passes the parameter to the WMS server, which returns transparent PNG Tiles.

I have also tested sending different parameters like sld and bgcolor for my Geoserver, since these parameters are used by the WMS GetMap request.

share|improve this answer
can I use only format/png property without mentioning transparent:true? – Jeevan Patnaik Feb 23 '13 at 10:24
Yes; You can do so by using format:'image/png' – Devdatta Tengshe Feb 23 '13 at 10:34

Your Answer


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.