title: How can I update the label of a Polygon Vector in OpenLayers after it has been drawn?
body: <p>I am quite new to OpenLayers. Right now, I have a polygon vector with some styling applied and a label. </p>
  
  <pre><code>var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']);
  style.pointRadius = 15;
  style.label = "My Polygon";
  style.fillColor = #f00;
  style.strokeColor = #000;
  
  var styleMap = new OpenLayers.StyleMap({"default" : style});
  
  var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer", {styleMap: styleMap});
  </code></pre>
  
  <p>At some point after doing some processing, I want to display the result as a label. How can I update the label? I figure it would be something like this, but this wasn't the way.</p>
  
  <pre><code>polygonLayer.options.styleMap.styles.label = "Updated label";
  </code></pre>
  
  <p>Thanks in advance.</p>