title: OpenLayers checkbox to remove label
body: <p>I have a problem understanding, I have a dot with vector and a label above it which tells its <code>$name</code>.</p>
  
  <p>What I need now, is a checkbox, which hides the label when uncheck it.</p>
  
  <pre><code>toggleLabel: function(element) {
              if(element.value == "showLabel"){
                  this.viewModel.label.setVisibility(false);
              }
              else {
  
              }
          },
  </code></pre>
  
  <p>And then in my html I got the following checkbox</p>
  
  <pre><code>&lt;input type='checkbox' name='overlay' value='showLabel' id='showLabels' onclick='toggleLabel(this);' autocomplete='off' checked&gt;&lt;/input&gt;
  </code></pre>
  
  <p>What am I missing? </p>
  
  <p>EDIT: I do not want to remove the whole layer since I still want the vector to stay(the dot on map) but just hide the label set. Does setvisibility not work on label?</p>