title: google map api polygon re-color
body: <p>I want to change polygon color after it is already set. but on user event.</p>
  
  <p>Once the route colors are set, it is not changing afterwards, which does not make since, because inside same function it will change but after that, it wont, even tho variable reference does exist.</p>
  
  <p>Here is fiddle demo:</p>
  
  <p><a href="http://jsfiddle.net/8xq4gd8y/15/" rel="nofollow">http://jsfiddle.net/8xq4gd8y/15/</a></p>
  
  <p>code</p>
  
  <pre><code>setTimeout (function () {
      console.log('run');
      console.log(directionsRenderer2); // &lt; exist in console log
          directionsRenderer2.setOptions({
              polylineOptions: {
                  strokeColor: 'gray'
              }
          });
    }, 90);
  </code></pre>