title: Cannot style a LineString
body: <p>I'm trying to style a LineString, but it doesn't seem to work. This is my code:</p>
  
  <pre><code>function connectStationFeatures(feat1, feat2){
      var lineLayer = getLinesLayer();
      var point1 = feat1.geometry;
      var point2 = feat2.geometry;
      var style = new OpenLayers.StyleMap({
          'fillColor':"#FF8C00",
          'strokeWidth':10,
          'strokeDashstyle':"dashdot"
      });
      var line = new OpenLayers.Geometry.LineString([point1, point2]);
  
      lineLayer.addFeatures([new OpenLayers.Feature.Vector(line, {styleMap:style})]);
  }
  </code></pre>
  
  <p>Alternatively I tried:</p>
  
  <pre><code>function connectStationFeatures(feat1, feat2){
      var lineLayer = getLinesLayer();
      var point1 = feat1.geometry;
      var point2 = feat2.geometry;
      var style = new OpenLayers.StyleMap({
          'fillColor':"#FF8C00",
          'strokeWidth':10,
          'strokeDashstyle':"dashdot"
      });
      var line = new OpenLayers.Geometry.LineString([point1, point2]);
      var lineFeat = new OpenLayers.Feature.Vector(line);
      lineFeat.styleMap = style;
      lineLayer.addFeatures([lineFeat]);
   }
  </code></pre>
  
  <p>Any help is greately appreciated! THX</p>