title: Polylines with start and end of location in Google maps v3
body: <p>I have drawing polylines as the following:</p>
  
  <pre><code>var data = JSON.parse(data);
       var LineCordinates = new Array();
       for (i=0; i&lt;data.length; i++){
       LineCordinates[i] = new google.maps.LatLng(data[i].fields.latitude, data[i].fields.longitude);
           }
        linePath = new google.maps.Polyline({
          path: LineCordinates,
          geodesic: true,
          strokeColor: '#FF0000',
          strokeOpacity: 1.0,
          strokeWeight: 2
        });
  
        linePath.setMap(map);
  
      }
  </code></pre>
  
  <p>I want to place a <code>marker</code> at the start of the <code>polygon line</code> and <code>end</code> of the polygon line. How to do that?</p>