Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

The example provided in shows all overlayes are checked but how do I make these overlayes unchecked while page is loaded?

share|improve this question
up vote 1 down vote accepted

When you make a call to the (WMS) layer and specify the parameters & options, you can set the visibility to false -

    wmsLayer = new OpenLayers.Layer.WMS("wms", "",
                layers: "layer 1",
                format: 'image/png'
            {singleTile: true, isBaseLayer: false, buffer: 0, **visibility: false**}

I hope this helps.

share|improve this answer


<input class="x-tree-node-cb" type="checkbox" checked="">


<input class="x-tree-node-cb" type="checkbox">

Recommend you use Firefox and Firebug to view the source live when and can interactively select objects and change their state and see the source code change.

enter image description here

share|improve this answer

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.