title: Change polyline options leaflet
body: <p>I want to change the options assigned to a Leaflet polyline (and then render it) after building it:</p>
  
  <pre><code>// Add polyline
  var polyline = L.polyline([], {weight:weight, opacity:1, color:'gray'}).addTo(map);
  
  // Attempts to change color
  polyline.options.color = 'blue' // doesn't render
  polyline.options.color('blue') // throws error
  polyline({color:'blue'}) // throws error
  polyline._updateStyle(polyline) // throws error: not sure how exactly this works
  polyline._updateStyle() // throws error
  polyline({color:blue}) // throws error
  </code></pre>
  
  <p>Is this possible?</p>