I have some vector layers on top of a tiled layer and a checkbox for each vector layer. I want a layer to be visible if its checkbox is checked and vanish if it gets unchecked.
I tried to call a function with the onchange attribute of the checkbox. It should set the visibility of the layer according to the (un)checked state of the checkbox.
This is my fiddle but unfortunately the checkboxes don't change anything.
edit: updated the code..